Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadModel(Modelica): time 0.9376/0.9376, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 4.147e-05/4.193e-05, allocations: 4 kB / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1428, allocations: 25.15 MB / 179.4 MB, free: 0.7852 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06017/0.203, allocations: 37.49 MB / 216.9 MB, free: 11.59 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.2032, allocations: 63.97 kB / 217 MB, free: 11.53 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06416/0.2674, allocations: 15.4 MB / 232.4 MB, free: 12.09 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.333e-06/0.2675, allocations: 4 kB / 232.4 MB, free: 12.08 MB / 202.7 MB Notification: Performance of Transformations before backend: time 4.923e-05/0.2675, allocations: 20 kB / 232.4 MB, free: 12.06 MB / 202.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.003661/0.2712, allocations: 1.216 MB / 233.6 MB, free: 10.8 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2713, allocations: 8.031 kB / 233.6 MB, free: 10.79 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002908/0.2716, allocations: 106.8 kB / 233.7 MB, free: 10.68 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.2726, allocations: 0.5004 MB / 234.2 MB, free: 10.14 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.368e-05/0.2727, allocations: 62 kB / 234.3 MB, free: 10.08 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000217/0.2729, allocations: 87.95 kB / 234.4 MB, free: 9.996 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/0.2753, allocations: 0.9548 MB / 235.3 MB, free: 9.023 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.2754, allocations: 0 / 235.3 MB, free: 9.023 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.2755, allocations: 32 kB / 235.4 MB, free: 8.992 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/0.2756, allocations: 20 kB / 235.4 MB, free: 8.973 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002445/0.278, allocations: 0.8904 MB / 236.3 MB, free: 8.082 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007956/0.286, allocations: 3.479 MB / 239.8 MB, free: 4.484 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002071/0.2881, allocations: 0.8119 MB / 240.6 MB, free: 3.664 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.2892, allocations: 462.5 kB / 241 MB, free: 3.211 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.01e-05/0.2892, allocations: 16.53 kB / 241 MB, free: 3.195 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.013e-05/0.2893, allocations: 39.12 kB / 241.1 MB, free: 3.148 MB / 202.7 MB Notification: Performance of pre-optimization done (n=67): time 3.843e-06/0.2893, allocations: 0 / 241.1 MB, free: 3.148 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.005726/0.295, allocations: 2.056 MB / 243.1 MB, free: 1.039 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.2951, allocations: 64.12 kB / 243.2 MB, free: 0.9609 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007931/0.2959, allocations: 460.8 kB / 243.6 MB, free: 0.5078 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.2961, allocations: 37.7 kB / 243.7 MB, free: 476 kB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003415/0.2964, allocations: 437.8 kB / 244.1 MB, free: 32 kB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1191/0.4156, allocations: 245.1 kB / 244.3 MB, free: 48 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.4157, allocations: 19.09 kB / 244.4 MB, free: 48 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.468e-05/0.4158, allocations: 344.4 kB / 244.7 MB, free: 47.69 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.4169, allocations: 356.3 kB / 245 MB, free: 47.69 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.4183, allocations: 466.1 kB / 245.5 MB, free: 47.59 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.4194, allocations: 394.5 kB / 245.9 MB, free: 47.58 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.483e-06/0.4194, allocations: 0 / 245.9 MB, free: 47.58 MB / 202.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002798/0.4222, allocations: 1.1 MB / 247 MB, free: 47.51 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.4222, allocations: 5.344 kB / 247 MB, free: 47.51 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.4223, allocations: 7.062 kB / 247 MB, free: 47.51 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006788/0.4229, allocations: 180.1 kB / 247.2 MB, free: 47.5 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001861/0.4248, allocations: 286.3 kB / 247.5 MB, free: 47.5 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004226/0.4291, allocations: 2.591 MB / 250 MB, free: 46.14 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.4305, allocations: 131.9 kB / 250.2 MB, free: 46.14 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.4306, allocations: 33.2 kB / 250.2 MB, free: 46.14 MB / 202.7 MB Warning: Assuming fixed start value for the following 9 variables: Transistor2.Tr.C.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Transistor2.ct.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Transistor1.Tr.C.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Transistor1.ct.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C3.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C5.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C4.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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.0003488/0.431, allocations: 163.5 kB / 250.4 MB, free: 46.04 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000191/0.4312, allocations: 74.45 kB / 250.4 MB, free: 46 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002471/0.4315, allocations: 84.34 kB / 250.5 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.519e-06/0.4315, allocations: 10.55 kB / 250.5 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.4315, allocations: 3.875 kB / 250.5 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.4315, allocations: 7.391 kB / 250.5 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001478/0.433, allocations: 0.9968 MB / 251.5 MB, free: 45.63 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.433, allocations: 0 / 251.5 MB, free: 45.63 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.4347, allocations: 242.8 kB / 251.8 MB, free: 45.62 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000672/0.4354, allocations: 183 kB / 252 MB, free: 45.57 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.4355, allocations: 19.34 kB / 252 MB, free: 45.57 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003917/0.4395, allocations: 2.604 MB / 254.6 MB, free: 43.59 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.526e-06/0.4395, allocations: 0 / 254.6 MB, free: 43.59 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003405/0.4429, allocations: 1.567 MB / 256.1 MB, free: 42.8 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004424/0.4434, allocations: 246.6 kB / 256.4 MB, free: 42.6 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.4436, allocations: 19.88 kB / 256.4 MB, free: 42.59 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.4447, allocations: 146.7 kB / 256.6 MB, free: 42.58 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.4449, allocations: 57.77 kB / 256.6 MB, free: 42.57 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.544e-05/0.445, allocations: 23.11 kB / 256.6 MB, free: 42.57 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0005008/0.4455, allocations: 356.2 kB / 257 MB, free: 42.39 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.4455, allocations: 0 / 257 MB, free: 42.39 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001035/0.4466, allocations: 245.3 kB / 257.2 MB, free: 42.37 MB / 202.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.000234/0.4468, allocations: 133.5 kB / 257.3 MB, free: 42.27 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.00267/0.4495, allocations: 1.115 MB / 258.5 MB, free: 41.76 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.836e-06/0.4496, allocations: 0 / 258.5 MB, free: 41.76 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.4513, allocations: 0.674 MB / 259.1 MB, free: 41.41 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.4525, allocations: 176.1 kB / 259.3 MB, free: 41.37 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003068/0.4556, allocations: 1.658 MB / 261 MB, free: 40.49 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.456, allocations: 0.975 MB / 261.9 MB, free: 39.78 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005075/0.4565, allocations: 64.5 kB / 262 MB, free: 39.77 MB / 202.7 MB Notification: Performance of SimCode: time 1.825e-06/0.4565, allocations: 0 / 262 MB, free: 39.77 MB / 202.7 MB Notification: Performance of Templates: time 0.02002/0.4766, allocations: 14.63 MB / 276.6 MB, free: 28.02 MB / 202.7 MB