Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.114/1.114, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.338e-05/2.342e-05, allocations: 0 / 154.4 MB, free: 13.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1825, allocations: 25.16 MB / 179.5 MB, free: 0.8125 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07052/0.2531, allocations: 37.48 MB / 217 MB, free: 11.61 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.2534, allocations: 63.97 kB / 217.1 MB, free: 11.55 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07567/0.3291, allocations: 15.41 MB / 232.5 MB, free: 12.09 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3291, allocations: 0 / 232.5 MB, free: 12.09 MB / 202.7 MB Notification: Performance of Transformations before backend: time 6.052e-05/0.3292, allocations: 16 kB / 232.5 MB, free: 12.07 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.005503/0.3347, allocations: 1.22 MB / 233.7 MB, free: 10.8 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.984e-05/0.3348, allocations: 8.031 kB / 233.7 MB, free: 10.8 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004176/0.3352, allocations: 131.1 kB / 233.8 MB, free: 10.66 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003406/0.3356, allocations: 102.8 kB / 233.9 MB, free: 10.56 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.3369, allocations: 0.5081 MB / 234.5 MB, free: 10.01 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.543e-05/0.3371, allocations: 65.95 kB / 234.5 MB, free: 9.945 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002827/0.3373, allocations: 84 kB / 234.6 MB, free: 9.863 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003022/0.3404, allocations: 0.9509 MB / 235.6 MB, free: 8.895 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.051e-05/0.3405, allocations: 0 / 235.6 MB, free: 8.895 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001772/0.3407, allocations: 36 kB / 235.6 MB, free: 8.859 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.084e-05/0.3407, allocations: 27.94 kB / 235.6 MB, free: 8.832 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003102/0.3438, allocations: 0.8904 MB / 236.5 MB, free: 7.941 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01129/0.3552, allocations: 3.483 MB / 240 MB, free: 4.34 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002781/0.358, allocations: 0.8041 MB / 240.8 MB, free: 3.527 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001412/0.3595, allocations: 458.5 kB / 241.2 MB, free: 3.078 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.3596, allocations: 12.56 kB / 241.3 MB, free: 3.066 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.3597, allocations: 43.11 kB / 241.3 MB, free: 3.016 MB / 202.7 MB Notification: Performance of pre-optimization done (n=67): time 3.827e-06/0.3597, allocations: 0 / 241.3 MB, free: 3.016 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.007297/0.367, allocations: 2.064 MB / 243.4 MB, free: 0.8984 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.3671, allocations: 60.19 kB / 243.4 MB, free: 0.8242 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009498/0.3681, allocations: 456.8 kB / 243.9 MB, free: 384 kB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002737/0.3684, allocations: 45.64 kB / 243.9 MB, free: 332 kB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1713/0.5397, allocations: 429.9 kB / 244.3 MB, free: 48.08 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004978/0.5403, allocations: 250.9 kB / 244.6 MB, free: 48.01 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.5404, allocations: 14.62 kB / 244.6 MB, free: 48.01 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5405, allocations: 346.7 kB / 244.9 MB, free: 47.7 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.5419, allocations: 356.5 kB / 245.3 MB, free: 47.7 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.5434, allocations: 466.1 kB / 245.7 MB, free: 47.6 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.5448, allocations: 396.5 kB / 246.1 MB, free: 47.59 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/0.5449, allocations: 6.297 kB / 246.1 MB, free: 47.59 MB / 202.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003805/0.5487, allocations: 1.091 MB / 247.2 MB, free: 47.51 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.5488, allocations: 9.156 kB / 247.2 MB, free: 47.51 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.5488, allocations: 3.5 kB / 247.2 MB, free: 47.51 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.5498, allocations: 179.2 kB / 247.4 MB, free: 47.5 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004286/0.5541, allocations: 295.3 kB / 247.7 MB, free: 47.5 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00819/0.5624, allocations: 2.588 MB / 250.3 MB, free: 46.14 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002037/0.5645, allocations: 137.2 kB / 250.4 MB, free: 46.14 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001815/0.5647, allocations: 32.91 kB / 250.4 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.0004636/0.5652, allocations: 154.1 kB / 250.6 MB, free: 46.04 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.5654, allocations: 75.48 kB / 250.7 MB, free: 46 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003214/0.5657, allocations: 87.09 kB / 250.8 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.5658, allocations: 10.72 kB / 250.8 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.5658, allocations: 3.969 kB / 250.8 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.5658, allocations: 3.844 kB / 250.8 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.5675, allocations: 0.9973 MB / 251.8 MB, free: 45.62 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.5675, allocations: 0 / 251.8 MB, free: 45.62 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002393/0.57, allocations: 237.2 kB / 252 MB, free: 45.62 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008726/0.5709, allocations: 181.5 kB / 252.2 MB, free: 45.57 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/0.571, allocations: 27.39 kB / 252.2 MB, free: 45.56 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004792/0.5758, allocations: 2.603 MB / 254.8 MB, free: 43.59 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5759, allocations: 3.656 kB / 254.8 MB, free: 43.59 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004332/0.5802, allocations: 1.576 MB / 256.4 MB, free: 42.8 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000575/0.5809, allocations: 242.5 kB / 256.6 MB, free: 42.6 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.5811, allocations: 15.81 kB / 256.6 MB, free: 42.59 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001985/0.5831, allocations: 151.5 kB / 256.8 MB, free: 42.58 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.5833, allocations: 52.56 kB / 256.8 MB, free: 42.57 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.5835, allocations: 29.5 kB / 256.9 MB, free: 42.56 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0005767/0.5841, allocations: 351 kB / 257.2 MB, free: 42.39 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5841, allocations: 3.406 kB / 257.2 MB, free: 42.39 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001242/0.5853, allocations: 240.6 kB / 257.4 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.004671/0.59, allocations: 2.148 MB / 259.6 MB, free: 41.04 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.5936, allocations: 1.109 MB / 260.7 MB, free: 40.51 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/0.5937, allocations: 5.266 kB / 260.7 MB, free: 40.51 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002237/0.5959, allocations: 0.6781 MB / 261.4 MB, free: 40.16 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.5977, allocations: 178.8 kB / 261.6 MB, free: 40.11 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00455/0.6023, allocations: 1.798 MB / 263.4 MB, free: 38.98 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.6028, allocations: 0.9756 MB / 264.3 MB, free: 38.09 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.6038, allocations: 303.2 kB / 264.6 MB, free: 37.83 MB / 202.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6038, allocations: 0 / 264.6 MB, free: 37.83 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.915/3.519, allocations: 18.28 MB / 282.9 MB, free: 21.82 MB / 202.7 MB