Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadModel(Modelica): time 2.183/2.183, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003943, allocations: 12 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1441, allocations: 44.5 MB / 309 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4735/0.6177, allocations: 75.79 MB / 384.8 MB, free: 15.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.6181, allocations: 75.59 kB / 384.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06807/0.6862, allocations: 15.56 MB / 400.5 MB, free: 13.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.6862, allocations: 4 kB / 400.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.543e-05/0.6863, allocations: 27.31 kB / 400.5 MB, free: 13.48 MB / 314.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.00493/0.6912, allocations: 1.3 MB / 401.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.6913, allocations: 11.62 kB / 401.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003218/0.6916, allocations: 105.4 kB / 401.9 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009486/0.6926, allocations: 0.5143 MB / 402.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.324e-05/0.6927, allocations: 63.5 kB / 402.5 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002306/0.6929, allocations: 81.38 kB / 402.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003906/0.6968, allocations: 1.168 MB / 403.7 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.049e-05/0.6969, allocations: 0 / 403.7 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.6971, allocations: 32.28 kB / 403.8 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.6971, allocations: 23.52 kB / 403.8 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005589/0.7027, allocations: 1.31 MB / 405.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009628/0.7124, allocations: 3.501 MB / 408.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005059/0.7175, allocations: 1.187 MB / 409.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.7177, allocations: 15.41 kB / 409.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.7177, allocations: 46.58 kB / 409.9 MB, free: 9.797 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 3.997e-06/0.7177, allocations: 0 / 409.9 MB, free: 9.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.01534/0.7331, allocations: 3.501 MB / 413.4 MB, free: 8.754 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.7332, allocations: 63.86 kB / 413.4 MB, free: 8.688 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008777/0.7341, allocations: 0.5196 MB / 413.9 MB, free: 8.492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002494/0.7343, allocations: 38.67 kB / 414 MB, free: 8.461 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.7346, allocations: 408.9 kB / 414.4 MB, free: 8.207 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/0.7349, allocations: 249.9 kB / 414.6 MB, free: 8.023 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.735, allocations: 16.62 kB / 414.6 MB, free: 8.023 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.7351, allocations: 381.2 kB / 415 MB, free: 7.688 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/0.7377, allocations: 0.5618 MB / 415.6 MB, free: 7.594 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002569/0.7403, allocations: 0.6827 MB / 416.2 MB, free: 7.387 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/0.7428, allocations: 0.5874 MB / 416.8 MB, free: 7.309 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.7429, allocations: 7.938 kB / 416.8 MB, free: 7.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.006388/0.7493, allocations: 1.552 MB / 418.4 MB, free: 6.953 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.7494, allocations: 3.812 kB / 418.4 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.7494, allocations: 3.844 kB / 418.4 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00088/0.7503, allocations: 182.5 kB / 418.6 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/0.753, allocations: 288.4 kB / 418.9 MB, free: 6.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005512/0.7586, allocations: 2.667 MB / 421.5 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/0.7607, allocations: 123.7 kB / 421.7 MB, free: 5.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/0.761, allocations: 33.48 kB / 421.7 MB, free: 5.234 MB / 314.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.0006299/0.7616, allocations: 218.9 kB / 421.9 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/0.7619, allocations: 74.17 kB / 422 MB, free: 5.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002911/0.7622, allocations: 83 kB / 422.1 MB, free: 5.055 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.7622, allocations: 19.83 kB / 422.1 MB, free: 5.043 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/0.7622, allocations: 3.844 kB / 422.1 MB, free: 5.043 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.457e-06/0.7623, allocations: 4 kB / 422.1 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001764/0.764, allocations: 1.001 MB / 423.1 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.7641, allocations: 0 / 423.1 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002423/0.7665, allocations: 236.9 kB / 423.3 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008938/0.7674, allocations: 191.1 kB / 423.5 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002202/0.7677, allocations: 27.3 kB / 423.5 MB, free: 4.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005197/0.7729, allocations: 2.649 MB / 426.2 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.7729, allocations: 0 / 426.2 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009856/0.7828, allocations: 2.181 MB / 428.4 MB, free: 2.215 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.7832, allocations: 147.6 kB / 428.5 MB, free: 2.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003663/0.7836, allocations: 11.81 kB / 428.5 MB, free: 2.062 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001998/0.7856, allocations: 152.6 kB / 428.7 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.7858, allocations: 47.92 kB / 428.7 MB, free: 1.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.786, allocations: 29.3 kB / 428.7 MB, free: 1.965 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006052/0.7866, allocations: 361.5 kB / 429.1 MB, free: 1.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7866, allocations: 0 / 429.1 MB, free: 1.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001349/0.788, allocations: 250 kB / 429.3 MB, free: 1.715 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.0003452/0.7883, allocations: 129.7 kB / 429.5 MB, free: 1.605 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00649/0.7948, allocations: 1.524 MB / 431 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.7949, allocations: 3.875 kB / 431 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003968/0.7989, allocations: 0.8986 MB / 431.9 MB, free: 380 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.8001, allocations: 113.6 kB / 432 MB, free: 312 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007494/0.8077, allocations: 2.585 MB / 434.6 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007107/0.8084, allocations: 0.9757 MB / 435.6 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001089/0.8095, allocations: 84.19 kB / 435.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004573/0.81, allocations: 58.53 kB / 435.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of SimCode: time 1.753e-06/0.81, allocations: 0 / 435.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of Templates: time 0.03246/0.8425, allocations: 10.39 MB / 446.1 MB, free: 3.898 MB / 330.7 MB