Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadModel(Modelica): time 1.766/1.766, allocations: 171.2 MB / 186.8 MB, free: 1.027 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003534, allocations: 8 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06783/0.06821, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.287/0.3553, allocations: 70.56 MB / 342.6 MB, free: 3.32 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.3555, allocations: 66.91 kB / 342.6 MB, free: 3.285 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06493/0.4205, allocations: 15.81 MB / 358.4 MB, free: 5.727 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.267e-06/0.4205, allocations: 0 / 358.4 MB, free: 5.727 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.461e-05/0.4206, allocations: 27.94 kB / 358.5 MB, free: 5.699 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.00371/0.4243, allocations: 1.311 MB / 359.8 MB, free: 4.391 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.4244, allocations: 8.031 kB / 359.8 MB, free: 4.383 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003089/0.4247, allocations: 106.8 kB / 359.9 MB, free: 4.277 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009862/0.4257, allocations: 0.5194 MB / 360.4 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.4258, allocations: 60.62 kB / 360.5 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002049/0.426, allocations: 93.64 kB / 360.6 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003335/0.4293, allocations: 1.155 MB / 361.7 MB, free: 2.902 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.4294, allocations: 11.92 kB / 361.7 MB, free: 2.891 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.4295, allocations: 34.31 kB / 361.8 MB, free: 2.883 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.533e-05/0.4296, allocations: 20 kB / 361.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004303/0.4339, allocations: 1.302 MB / 363.1 MB, free: 1.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007934/0.4419, allocations: 3.494 MB / 366.6 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003725/0.4456, allocations: 1.198 MB / 367.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.145e-05/0.4457, allocations: 20.41 kB / 367.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.4458, allocations: 39 kB / 367.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 3.624e-06/0.4458, allocations: 0 / 367.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.01153/0.4573, allocations: 3.504 MB / 371.3 MB, free: 11.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.4574, allocations: 60.06 kB / 371.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008096/0.4583, allocations: 469.4 kB / 371.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.4584, allocations: 43.83 kB / 371.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003229/0.4588, allocations: 436 kB / 372.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.4591, allocations: 251 kB / 372.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.244e-05/0.4592, allocations: 13.5 kB / 372.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.4594, allocations: 351.1 kB / 372.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.4613, allocations: 0.5621 MB / 373.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001984/0.4633, allocations: 0.6812 MB / 374.2 MB, free: 9.355 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.4652, allocations: 0.5869 MB / 374.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.768e-06/0.4652, allocations: 0 / 374.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.004972/0.4702, allocations: 1.517 MB / 376.3 MB, free: 7.422 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.4702, allocations: 8 kB / 376.3 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.4703, allocations: 0 / 376.3 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007642/0.471, allocations: 186.7 kB / 376.5 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00176/0.4728, allocations: 287.6 kB / 376.7 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005221/0.4781, allocations: 2.664 MB / 379.4 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.4795, allocations: 132 kB / 379.5 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.4797, allocations: 31.98 kB / 379.6 MB, free: 3.988 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006024/0.4803, allocations: 222.2 kB / 379.8 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.4805, allocations: 71.16 kB / 379.9 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002575/0.4808, allocations: 90.45 kB / 379.9 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.4808, allocations: 4 kB / 379.9 MB, free: 3.594 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.4808, allocations: 4 kB / 379.9 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.4808, allocations: 3.984 kB / 380 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.4827, allocations: 1.013 MB / 381 MB, free: 2.523 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.018e-06/0.4827, allocations: 0 / 381 MB, free: 2.523 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001633/0.4843, allocations: 239.7 kB / 381.2 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007413/0.4851, allocations: 188.5 kB / 381.4 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.4852, allocations: 27.94 kB / 381.4 MB, free: 2.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005026/0.4903, allocations: 2.659 MB / 384.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.4903, allocations: 0 / 384.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006917/0.4972, allocations: 2.185 MB / 386.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006207/0.4979, allocations: 248.3 kB / 386.5 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001732/0.4981, allocations: 16 kB / 386.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.4993, allocations: 147.9 kB / 386.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.4995, allocations: 56.56 kB / 386.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.4996, allocations: 27.97 kB / 386.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006525/0.5003, allocations: 362.8 kB / 387.1 MB, free: 12.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.16e-07/0.5003, allocations: 0 / 387.1 MB, free: 12.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001168/0.5015, allocations: 248 kB / 387.3 MB, free: 11.97 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002945/0.5018, allocations: 131.3 kB / 387.5 MB, free: 11.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005008/0.5068, allocations: 1.526 MB / 389 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.838e-06/0.5069, allocations: 8.188 kB / 389 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00285/0.5097, allocations: 0.8811 MB / 389.9 MB, free: 9.398 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008713/0.5106, allocations: 107.4 kB / 390 MB, free: 9.293 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005808/0.5165, allocations: 2.628 MB / 392.6 MB, free: 6.629 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007825/0.5173, allocations: 0.9736 MB / 393.6 MB, free: 5.629 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005891/0.5179, allocations: 63.39 kB / 393.6 MB, free: 5.566 MB / 314.7 MB Notification: Performance of SimCode: time 1.711e-06/0.5179, allocations: 0 / 393.6 MB, free: 5.566 MB / 314.7 MB Notification: Performance of Templates: time 0.02606/0.544, allocations: 14.61 MB / 408.3 MB, free: 6.965 MB / 330.7 MB