Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadModel(Modelica): time 1.819/1.819, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005511/0.0005513, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08156/0.08215, allocations: 44.51 MB / 308.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006477/0.08867, allocations: 4.644 MB / 313 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003431/0.09215, allocations: 1.537 MB / 314.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005877/0.09278, allocations: 20 kB / 314.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.09305, allocations: 111.1 kB / 314.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008213/0.09389, allocations: 323 kB / 315 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008763/0.09478, allocations: 263.6 kB / 315.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001426/0.09623, allocations: 0.863 MB / 316.1 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005877/0.09684, allocations: 296.2 kB / 316.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006848/0.09754, allocations: 430.7 kB / 316.8 MB, free: 8.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008014/0.09836, allocations: 0.5331 MB / 317.3 MB, free: 7.984 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001746/0.09855, allocations: 68 kB / 317.4 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002453/0.09881, allocations: 76 kB / 317.5 MB, free: 7.844 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.09905, allocations: 199.2 kB / 317.7 MB, free: 7.648 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.09934, allocations: 201.3 kB / 317.9 MB, free: 7.445 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001566/0.1009, allocations: 1.212 MB / 319.1 MB, free: 6.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.339e-06/0.101, allocations: 0 / 319.1 MB, free: 6.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.068e-06/0.101, allocations: 0 / 319.1 MB, free: 6.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.469e-05/0.101, allocations: 0 / 319.1 MB, free: 6.23 MB / 266.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.003761/0.1048, allocations: 1.321 MB / 320.4 MB, free: 4.859 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.1048, allocations: 16.03 kB / 320.4 MB, free: 4.844 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000307/0.1052, allocations: 102.8 kB / 320.5 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.1062, allocations: 0.5158 MB / 321 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.367e-05/0.1063, allocations: 62 kB / 321.1 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002139/0.1065, allocations: 83.98 kB / 321.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003337/0.1098, allocations: 1.173 MB / 322.3 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/0.1099, allocations: 0 / 322.3 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.11, allocations: 36 kB / 322.4 MB, free: 2.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.744e-05/0.1101, allocations: 20 kB / 322.4 MB, free: 2.801 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00442/0.1145, allocations: 1.296 MB / 323.7 MB, free: 1.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008181/0.1227, allocations: 3.493 MB / 327.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003907/0.1267, allocations: 1.197 MB / 328.4 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.038e-05/0.1268, allocations: 24.53 kB / 328.4 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/0.1269, allocations: 39.12 kB / 328.5 MB, free: 12.61 MB / 282.7 MB Notification: Performance of pre-optimization done (n=67): time 3.684e-06/0.1269, allocations: 0 / 328.5 MB, free: 12.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=71): time 0.01128/0.1382, allocations: 3.388 MB / 331.8 MB, free: 9.168 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.1383, allocations: 60.06 kB / 331.9 MB, free: 9.098 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009019/0.1392, allocations: 0.5184 MB / 332.4 MB, free: 8.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.1393, allocations: 33.7 kB / 332.4 MB, free: 8.531 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003736/0.1397, allocations: 437.8 kB / 332.9 MB, free: 8.098 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003138/0.14, allocations: 260.3 kB / 333.1 MB, free: 7.84 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.694e-05/0.1401, allocations: 16 kB / 333.1 MB, free: 7.824 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.1404, allocations: 346.7 kB / 333.5 MB, free: 7.477 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001952/0.1423, allocations: 0.5641 MB / 334.1 MB, free: 6.914 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002042/0.1444, allocations: 0.6884 MB / 334.7 MB, free: 6.188 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/0.1464, allocations: 0.5847 MB / 335.3 MB, free: 5.602 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.716e-06/0.1464, allocations: 0 / 335.3 MB, free: 5.602 MB / 282.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.004939/0.1514, allocations: 1.521 MB / 336.8 MB, free: 4.074 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.1514, allocations: 4 kB / 336.8 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.1515, allocations: 4 kB / 336.9 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007547/0.1522, allocations: 172.7 kB / 337 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/0.154, allocations: 291.6 kB / 337.3 MB, free: 3.609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00519/0.1592, allocations: 2.655 MB / 340 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.1605, allocations: 131.9 kB / 340.1 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.1607, allocations: 31.98 kB / 340.1 MB, free: 0.6602 MB / 282.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.0005451/0.1612, allocations: 218.2 kB / 340.3 MB, free: 448 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.1614, allocations: 71.25 kB / 340.4 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002349/0.1617, allocations: 86.3 kB / 340.5 MB, free: 284 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.1617, allocations: 8.125 kB / 340.5 MB, free: 276 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/0.1617, allocations: 8 kB / 340.5 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.1617, allocations: 3.984 kB / 340.5 MB, free: 264 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.1635, allocations: 1.009 MB / 341.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.1636, allocations: 0 / 341.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/0.1652, allocations: 239.7 kB / 341.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007721/0.1659, allocations: 192.9 kB / 341.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/0.1661, allocations: 15.98 kB / 342 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005089/0.1712, allocations: 2.655 MB / 344.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.623e-06/0.1712, allocations: 4 kB / 344.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006875/0.1781, allocations: 2.185 MB / 346.8 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.1784, allocations: 136.2 kB / 346.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/0.1786, allocations: 16 kB / 346.9 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.1798, allocations: 151.9 kB / 347.1 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.18, allocations: 48.61 kB / 347.1 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.1801, allocations: 31.97 kB / 347.2 MB, free: 9.359 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000614/0.1808, allocations: 362.9 kB / 347.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.17e-07/0.1808, allocations: 0 / 347.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001117/0.1819, allocations: 236 kB / 347.8 MB, free: 8.777 MB / 298.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.0002813/0.1822, allocations: 137.2 kB / 347.9 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00498/0.1872, allocations: 1.529 MB / 349.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.148e-06/0.1872, allocations: 0 / 349.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002905/0.1902, allocations: 0.8895 MB / 350.3 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008432/0.191, allocations: 114.2 kB / 350.4 MB, free: 6.082 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005797/0.1969, allocations: 2.611 MB / 353 MB, free: 3.438 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007893/0.1977, allocations: 0.9772 MB / 354 MB, free: 2.434 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005847/0.1983, allocations: 59.39 kB / 354.1 MB, free: 2.375 MB / 298.7 MB Notification: Performance of SimCode: time 1.569e-06/0.1983, allocations: 0 / 354.1 MB, free: 2.375 MB / 298.7 MB Notification: Performance of Templates: time 0.02628/0.2246, allocations: 14.65 MB / 368.7 MB, free: 3.727 MB / 314.7 MB