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.772/1.772, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003567, allocations: 12 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0791/0.07948, allocations: 44.51 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3867/0.4663, allocations: 75.79 MB / 384.2 MB, free: 18.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4665, allocations: 71.5 kB / 384.3 MB, free: 18.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05981/0.5263, allocations: 15.55 MB / 399.9 MB, free: 17.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.994e-06/0.5264, allocations: 0 / 399.9 MB, free: 17.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.88e-05/0.5265, allocations: 26.69 kB / 399.9 MB, free: 17.37 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.005704/0.5322, allocations: 1.308 MB / 401.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.5323, allocations: 9.25 kB / 401.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004949/0.5328, allocations: 109 kB / 401.3 MB, free: 16.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001487/0.5343, allocations: 0.5178 MB / 401.8 MB, free: 16.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.458e-05/0.5344, allocations: 59.81 kB / 401.9 MB, free: 16.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003324/0.5348, allocations: 87.2 kB / 402 MB, free: 16.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005468/0.5403, allocations: 1.16 MB / 403.1 MB, free: 16.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.101e-05/0.5403, allocations: 3.984 kB / 403.1 MB, free: 16.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002226/0.5406, allocations: 35.97 kB / 403.2 MB, free: 16.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.245e-05/0.5406, allocations: 27.23 kB / 403.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00697/0.5476, allocations: 1.3 MB / 404.5 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01168/0.5594, allocations: 3.509 MB / 408 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005966/0.5654, allocations: 1.184 MB / 409.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.584e-05/0.5655, allocations: 19.83 kB / 409.2 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.5656, allocations: 42.62 kB / 409.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 6.48e-06/0.5656, allocations: 0 / 409.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.02142/0.587, allocations: 3.494 MB / 412.7 MB, free: 13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.5871, allocations: 63.73 kB / 412.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001386/0.5885, allocations: 469.6 kB / 413.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000286/0.5889, allocations: 48.05 kB / 413.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.5892, allocations: 437 kB / 413.7 MB, free: 12.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.5894, allocations: 252.1 kB / 414 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.953e-05/0.5895, allocations: 18.62 kB / 414 MB, free: 12.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.596e-05/0.5896, allocations: 338.1 kB / 414.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.5915, allocations: 0.5649 MB / 414.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002051/0.5936, allocations: 0.6835 MB / 415.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00201/0.5956, allocations: 0.5889 MB / 416.2 MB, free: 11.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.936e-06/0.5956, allocations: 0 / 416.2 MB, free: 11.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.004978/0.6006, allocations: 1.513 MB / 417.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.6007, allocations: 7.781 kB / 417.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.6007, allocations: 7.891 kB / 417.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006863/0.6014, allocations: 180.7 kB / 417.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.6032, allocations: 288.8 kB / 418.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004446/0.6077, allocations: 2.663 MB / 420.8 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.6093, allocations: 128.9 kB / 420.9 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.6094, allocations: 34.7 kB / 421 MB, free: 9.48 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.0005872/0.61, allocations: 222.9 kB / 421.2 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.6103, allocations: 70.12 kB / 421.3 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002353/0.6105, allocations: 86.08 kB / 421.3 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.913e-06/0.6105, allocations: 7.656 kB / 421.4 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/0.6106, allocations: 3.953 kB / 421.4 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.6106, allocations: 7.891 kB / 421.4 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.6121, allocations: 1.002 MB / 422.4 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.6121, allocations: 7.938 kB / 422.4 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001753/0.6139, allocations: 233.1 kB / 422.6 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007481/0.6147, allocations: 193.1 kB / 422.8 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.6148, allocations: 22.42 kB / 422.8 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004313/0.6191, allocations: 2.649 MB / 425.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.402e-06/0.6192, allocations: 3.875 kB / 425.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007036/0.6262, allocations: 2.179 MB / 427.6 MB, free: 6.633 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002752/0.6265, allocations: 140.6 kB / 427.8 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002219/0.6268, allocations: 19.06 kB / 427.8 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.6283, allocations: 154.3 kB / 427.9 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.6284, allocations: 52.91 kB / 428 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.6286, allocations: 24.52 kB / 428 MB, free: 6.422 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005796/0.6292, allocations: 360 kB / 428.4 MB, free: 6.289 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.89e-07/0.6292, allocations: 0 / 428.4 MB, free: 6.289 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001353/0.6306, allocations: 256.6 kB / 428.6 MB, free: 6.277 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.0002557/0.6308, allocations: 133.7 kB / 428.8 MB, free: 6.176 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004284/0.6351, allocations: 1.527 MB / 430.3 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.62e-06/0.6352, allocations: 0 / 430.3 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/0.6379, allocations: 0.8973 MB / 431.2 MB, free: 5.012 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008357/0.6388, allocations: 102.9 kB / 431.3 MB, free: 4.957 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004839/0.6437, allocations: 2.629 MB / 433.9 MB, free: 3.113 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/0.6441, allocations: 0.9751 MB / 434.9 MB, free: 2.289 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000617/0.6448, allocations: 70.02 kB / 435 MB, free: 2.262 MB / 314.7 MB Notification: Performance of SimCode: time 1.648e-06/0.6448, allocations: 0 / 435 MB, free: 2.262 MB / 314.7 MB Notification: Performance of Templates: time 0.02426/0.669, allocations: 14.6 MB / 449.6 MB, free: 5.238 MB / 330.7 MB