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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.648/1.648, allocations: 171.3 MB / 179.2 MB, free: 7.512 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.882e-05/1.887e-05, allocations: 4 kB / 222.5 MB, free: 8.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06925/0.06929, allocations: 38.75 MB / 261.3 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2789/0.3482, allocations: 69.82 MB / 331.1 MB, free: 2.559 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.3485, allocations: 65.41 kB / 331.2 MB, free: 2.527 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06298/0.4115, allocations: 15.68 MB / 346.8 MB, free: 5.289 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4115, allocations: 0 / 346.8 MB, free: 5.289 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.562e-05/0.4116, allocations: 24 kB / 346.9 MB, free: 5.266 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.003617/0.4152, allocations: 1.224 MB / 348.1 MB, free: 4.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.4153, allocations: 19.95 kB / 348.1 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003644/0.4157, allocations: 106.8 kB / 348.2 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.4167, allocations: 0.5168 MB / 348.7 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.4168, allocations: 28 kB / 348.7 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001893/0.417, allocations: 48 kB / 348.8 MB, free: 3.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002226/0.4192, allocations: 0.8418 MB / 349.6 MB, free: 2.926 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002052/0.4213, allocations: 0.8341 MB / 350.5 MB, free: 2.344 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.4213, allocations: 0 / 350.5 MB, free: 2.344 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/0.4215, allocations: 4 kB / 350.5 MB, free: 2.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.404e-05/0.4215, allocations: 20 kB / 350.5 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007768/0.4293, allocations: 3.366 MB / 353.9 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001916/0.4312, allocations: 0.7745 MB / 354.6 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.4323, allocations: 434.5 kB / 355.1 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.449e-05/0.4323, allocations: 20.55 kB / 355.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.4324, allocations: 47.05 kB / 355.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 4.153e-06/0.4324, allocations: 0 / 355.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.006017/0.4384, allocations: 1.974 MB / 357.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.4385, allocations: 60.19 kB / 357.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006848/0.4392, allocations: 406.1 kB / 357.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.4393, allocations: 29.7 kB / 357.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003599/0.4397, allocations: 445.8 kB / 358 MB, free: 10.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.44, allocations: 248.3 kB / 358.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.535e-05/0.4401, allocations: 0 / 358.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.4403, allocations: 334.8 kB / 358.6 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008996/0.4412, allocations: 358.6 kB / 358.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009978/0.4422, allocations: 461.5 kB / 359.4 MB, free: 9.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.4434, allocations: 392.4 kB / 359.8 MB, free: 8.984 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.4434, allocations: 4 kB / 359.8 MB, free: 8.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003019/0.4464, allocations: 1.043 MB / 360.8 MB, free: 7.922 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.4465, allocations: 8 kB / 360.8 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.4465, allocations: 0 / 360.8 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007403/0.4472, allocations: 164.8 kB / 361 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/0.449, allocations: 299.6 kB / 361.3 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004769/0.4538, allocations: 2.53 MB / 363.8 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.4552, allocations: 115.8 kB / 363.9 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.4553, allocations: 32.05 kB / 364 MB, free: 4.664 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 () * 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.0002843/0.4556, allocations: 124.8 kB / 364.1 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002111/0.4558, allocations: 75.16 kB / 364.1 MB, free: 4.461 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.4561, allocations: 78.33 kB / 364.2 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.4561, allocations: 8 kB / 364.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.4562, allocations: 0 / 364.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.4562, allocations: 3.984 kB / 364.2 MB, free: 4.371 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001625/0.4578, allocations: 0.8929 MB / 365.1 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.475e-06/0.4578, allocations: 0 / 365.1 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/0.4594, allocations: 243.7 kB / 365.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008179/0.4603, allocations: 176.8 kB / 365.5 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.4604, allocations: 19.97 kB / 365.6 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00463/0.465, allocations: 2.518 MB / 368.1 MB, free: 380 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.424e-06/0.4651, allocations: 0 / 368.1 MB, free: 380 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004079/0.4692, allocations: 1.533 MB / 369.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005721/0.4698, allocations: 244.2 kB / 369.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/0.47, allocations: 4 kB / 369.9 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.4712, allocations: 139.9 kB / 370 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.4714, allocations: 56.64 kB / 370 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.4715, allocations: 19.98 kB / 370.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005351/0.472, allocations: 315 kB / 370.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.86e-07/0.4721, allocations: 0 / 370.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001106/0.4732, allocations: 212 kB / 370.6 MB, free: 13.83 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 () * 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.0002757/0.4735, allocations: 127.3 kB / 370.7 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002856/0.4763, allocations: 1.061 MB / 371.8 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.161e-06/0.4764, allocations: 0 / 371.8 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.4782, allocations: 0.6458 MB / 372.4 MB, free: 11.97 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007459/0.4789, allocations: 82.17 kB / 372.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004018/0.483, allocations: 1.698 MB / 374.2 MB, free: 10.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007779/0.4838, allocations: 0.9735 MB / 375.2 MB, free: 9.152 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005762/0.4844, allocations: 63.39 kB / 375.2 MB, free: 9.09 MB / 314.7 MB Notification: Performance of SimCode: time 1.716e-06/0.4844, allocations: 0 / 375.2 MB, free: 9.09 MB / 314.7 MB Notification: Performance of Templates: time 0.02596/0.5103, allocations: 14.26 MB / 389.5 MB, free: 10.83 MB / 330.7 MB