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.614/1.614, allocations: 171.2 MB / 184.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.369e-05/2.374e-05, allocations: 4 kB / 228.8 MB, free: 15.44 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2022, allocations: 38.77 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.3069, allocations: 70.47 MB / 338.1 MB, free: 2.848 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/0.3071, allocations: 67.97 kB / 338.1 MB, free: 2.781 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06614/0.3733, allocations: 15.83 MB / 354 MB, free: 2.891 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.877e-06/0.3733, allocations: 0 / 354 MB, free: 2.891 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.63e-05/0.3734, allocations: 27.98 kB / 354 MB, free: 2.863 MB / 298.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.003606/0.377, allocations: 1.224 MB / 355.2 MB, free: 1.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.3771, allocations: 16.03 kB / 355.2 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002721/0.3774, allocations: 103 kB / 355.3 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3784, allocations: 0.5198 MB / 355.8 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.064e-05/0.3785, allocations: 65.94 kB / 355.9 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002291/0.3787, allocations: 80 kB / 356 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1774/0.5562, allocations: 0.9432 MB / 356.9 MB, free: 73.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.412e-05/0.5562, allocations: 0 / 356.9 MB, free: 73.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00016/0.5564, allocations: 36.81 kB / 357 MB, free: 73.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-05/0.5565, allocations: 20.28 kB / 357 MB, free: 73.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002678/0.5592, allocations: 0.8884 MB / 357.9 MB, free: 73.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007084/0.5663, allocations: 3.494 MB / 361.4 MB, free: 72.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.5682, allocations: 0.8149 MB / 362.2 MB, free: 72.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009374/0.5691, allocations: 458.3 kB / 362.6 MB, free: 72.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.152e-05/0.5692, allocations: 14.31 kB / 362.6 MB, free: 72.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.5692, allocations: 42 kB / 362.7 MB, free: 72.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 3.572e-06/0.5692, allocations: 0 / 362.7 MB, free: 72.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.005003/0.5743, allocations: 2.066 MB / 364.8 MB, free: 71.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.5743, allocations: 63.11 kB / 364.8 MB, free: 71.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006399/0.575, allocations: 463.5 kB / 365.3 MB, free: 70.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.562e-05/0.5751, allocations: 41.39 kB / 365.3 MB, free: 70.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.5753, allocations: 435.9 kB / 365.7 MB, free: 70.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/0.5755, allocations: 248.2 kB / 366 MB, free: 70.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.412e-05/0.5756, allocations: 15.5 kB / 366 MB, free: 70.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.276e-05/0.5757, allocations: 339.8 kB / 366.3 MB, free: 70.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009179/0.5766, allocations: 374.3 kB / 366.7 MB, free: 69.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009849/0.5776, allocations: 479.8 kB / 367.2 MB, free: 69.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009435/0.5786, allocations: 392.2 kB / 367.5 MB, free: 69.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.5786, allocations: 0 / 367.5 MB, free: 69.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002703/0.5813, allocations: 1.107 MB / 368.6 MB, free: 68.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.5813, allocations: 4.844 kB / 368.7 MB, free: 68.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.5814, allocations: 7.906 kB / 368.7 MB, free: 68.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007372/0.5821, allocations: 179.5 kB / 368.8 MB, free: 68.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.5839, allocations: 284.1 kB / 369.1 MB, free: 68.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004267/0.5882, allocations: 2.597 MB / 371.7 MB, free: 66.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.5896, allocations: 122 kB / 371.8 MB, free: 66.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.5898, allocations: 40.86 kB / 371.9 MB, free: 66.9 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.0002664/0.5901, allocations: 143.3 kB / 372 MB, free: 66.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.5903, allocations: 73.88 kB / 372.1 MB, free: 66.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002426/0.5905, allocations: 85.22 kB / 372.2 MB, free: 66.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.5905, allocations: 13.34 kB / 372.2 MB, free: 66.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.5906, allocations: 7.859 kB / 372.2 MB, free: 66.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.5906, allocations: 3.844 kB / 372.2 MB, free: 66.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.5921, allocations: 1.007 MB / 373.2 MB, free: 66.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.127e-06/0.5921, allocations: 4.438 kB / 373.2 MB, free: 66.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/0.5939, allocations: 240.1 kB / 373.4 MB, free: 66.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007359/0.5947, allocations: 182.7 kB / 373.6 MB, free: 66.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.5948, allocations: 28.53 kB / 373.6 MB, free: 66.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004178/0.599, allocations: 2.582 MB / 376.2 MB, free: 64.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.238e-06/0.599, allocations: 6.297 kB / 376.2 MB, free: 64.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/0.6027, allocations: 1.581 MB / 377.8 MB, free: 63.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005163/0.6032, allocations: 244.1 kB / 378 MB, free: 62.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.6034, allocations: 14.48 kB / 378.1 MB, free: 62.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.6046, allocations: 158.4 kB / 378.2 MB, free: 62.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.6048, allocations: 47.53 kB / 378.3 MB, free: 62.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.461e-05/0.6049, allocations: 24.27 kB / 378.3 MB, free: 62.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004886/0.6054, allocations: 357.4 kB / 378.6 MB, free: 62.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.6054, allocations: 0 / 378.6 MB, free: 62.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001013/0.6064, allocations: 248.8 kB / 378.9 MB, free: 62.11 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 () * 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.0002328/0.6067, allocations: 128.1 kB / 379 MB, free: 61.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002608/0.6093, allocations: 1.115 MB / 380.1 MB, free: 60.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.901e-06/0.6093, allocations: 4 kB / 380.1 MB, free: 60.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.611, allocations: 0.6794 MB / 380.8 MB, free: 60.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007217/0.6117, allocations: 107.5 kB / 380.9 MB, free: 60.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.6151, allocations: 1.719 MB / 382.6 MB, free: 58.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.6156, allocations: 0.9774 MB / 383.6 MB, free: 57.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005135/0.6161, allocations: 67.48 kB / 383.7 MB, free: 57.69 MB / 298.7 MB Notification: Performance of SimCode: time 1.959e-06/0.6161, allocations: 0 / 383.7 MB, free: 57.69 MB / 298.7 MB Notification: Performance of Templates: time 0.01936/0.6355, allocations: 14.63 MB / 398.3 MB, free: 44.66 MB / 298.7 MB