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 0.9565/0.9565, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002878/0.0002878, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05212/0.05244, allocations: 25.18 MB / 183.6 MB, free: 5.859 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2113/0.2638, allocations: 37.57 MB / 221.2 MB, free: 5.418 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.2641, allocations: 66.94 kB / 221.2 MB, free: 5.41 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0669/0.331, allocations: 15.38 MB / 236.6 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3311, allocations: 0 / 236.6 MB, free: 11.18 MB / 186.7 MB Notification: Performance of Transformations before backend: time 5.733e-05/0.3312, allocations: 16 kB / 236.6 MB, free: 11.17 MB / 186.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.005452/0.3366, allocations: 1.304 MB / 237.9 MB, free: 9.871 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.3367, allocations: 12.03 kB / 237.9 MB, free: 9.859 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003035/0.337, allocations: 129.7 kB / 238.1 MB, free: 9.773 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002879/0.3373, allocations: 102.8 kB / 238.2 MB, free: 9.672 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.3394, allocations: 0.509 MB / 238.7 MB, free: 9.234 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.35e-05/0.3395, allocations: 63.33 kB / 238.7 MB, free: 9.199 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002847/0.3398, allocations: 85.19 kB / 238.8 MB, free: 9.141 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004384/0.3442, allocations: 1.168 MB / 240 MB, free: 8.297 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.3442, allocations: 0 / 240 MB, free: 8.297 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001638/0.3444, allocations: 39.5 kB / 240 MB, free: 8.285 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.709e-05/0.3445, allocations: 20 kB / 240.1 MB, free: 8.266 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005724/0.3502, allocations: 1.295 MB / 241.3 MB, free: 7.332 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009408/0.3596, allocations: 3.488 MB / 244.8 MB, free: 4.699 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005298/0.365, allocations: 1.195 MB / 246 MB, free: 3.812 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.563e-05/0.3651, allocations: 12.55 kB / 246 MB, free: 3.801 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.3652, allocations: 47.06 kB / 246.1 MB, free: 3.746 MB / 186.7 MB Notification: Performance of pre-optimization done (n=67): time 3.637e-06/0.3652, allocations: 0 / 246.1 MB, free: 3.746 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.01624/0.3814, allocations: 3.503 MB / 249.6 MB, free: 176 kB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.3815, allocations: 64.06 kB / 249.7 MB, free: 100 kB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009559/0.3825, allocations: 466 kB / 250.1 MB, free: 15.64 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002026/0.3827, allocations: 41.7 kB / 250.1 MB, free: 15.59 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/0.3831, allocations: 429.8 kB / 250.6 MB, free: 15.16 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003524/0.3835, allocations: 252.3 kB / 250.8 MB, free: 14.91 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.3836, allocations: 19.94 kB / 250.8 MB, free: 14.89 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.3838, allocations: 346.8 kB / 251.2 MB, free: 14.55 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002674/0.3865, allocations: 0.5485 MB / 251.7 MB, free: 14 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002762/0.3893, allocations: 0.665 MB / 252.4 MB, free: 13.29 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.3921, allocations: 0.6013 MB / 253 MB, free: 12.69 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.3921, allocations: 0 / 253 MB, free: 12.69 MB / 202.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.006609/0.3987, allocations: 1.509 MB / 254.5 MB, free: 11.18 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.3988, allocations: 8 kB / 254.5 MB, free: 11.17 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.3988, allocations: 4 kB / 254.5 MB, free: 11.16 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009477/0.3998, allocations: 186.2 kB / 254.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002591/0.4024, allocations: 279.7 kB / 255 MB, free: 10.71 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005929/0.4083, allocations: 2.66 MB / 257.6 MB, free: 7.906 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.4104, allocations: 128 kB / 257.7 MB, free: 7.781 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.4106, allocations: 35.98 kB / 257.8 MB, free: 7.746 MB / 202.7 MB Warning: Assuming fixed start value for the following 9 variables: Transistor2.Tr.C.v:VARIABLE(flow=false unit = "V" fixed = true ) "Potential at the pin" type: Real Transistor2.ct.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Transistor1.Tr.C.v:VARIABLE(flow=false unit = "V" fixed = true ) "Potential at the pin" type: Real Transistor1.ct.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C3.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C2.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C5.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C4.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(unit = "V" fixed = true ) "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 () * 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.0008009/0.4114, allocations: 248.3 kB / 258 MB, free: 7.496 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/0.4117, allocations: 67.2 kB / 258.1 MB, free: 7.43 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003005/0.412, allocations: 82.22 kB / 258.2 MB, free: 7.344 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.412, allocations: 8 kB / 258.2 MB, free: 7.336 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/0.412, allocations: 11.94 kB / 258.2 MB, free: 7.324 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.4121, allocations: 3.984 kB / 258.2 MB, free: 7.32 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002036/0.4141, allocations: 1.009 MB / 259.2 MB, free: 6.262 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.4141, allocations: 0 / 259.2 MB, free: 6.262 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002406/0.4166, allocations: 239.7 kB / 259.4 MB, free: 6.027 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009321/0.4175, allocations: 184.6 kB / 259.6 MB, free: 5.844 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.4177, allocations: 15.98 kB / 259.6 MB, free: 5.828 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005762/0.4234, allocations: 2.668 MB / 262.3 MB, free: 3.023 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4235, allocations: 0 / 262.3 MB, free: 3.023 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009431/0.4329, allocations: 2.18 MB / 264.5 MB, free: 0.8242 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007008/0.4337, allocations: 240.1 kB / 264.7 MB, free: 0.5703 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002173/0.4339, allocations: 20 kB / 264.7 MB, free: 0.5508 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001904/0.4358, allocations: 151.8 kB / 264.9 MB, free: 412 kB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.436, allocations: 48.58 kB / 264.9 MB, free: 364 kB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.4362, allocations: 32.16 kB / 265 MB, free: 332 kB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006751/0.4369, allocations: 346.9 kB / 265.3 MB, free: 15.98 MB / 218.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4369, allocations: 3.938 kB / 265.3 MB, free: 15.98 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001209/0.4381, allocations: 248.1 kB / 265.5 MB, free: 15.73 MB / 218.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.00972/0.4478, allocations: 2.757 MB / 268.3 MB, free: 12.95 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.006849/0.4547, allocations: 1.529 MB / 269.8 MB, free: 11.4 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4548, allocations: 0 / 269.8 MB, free: 11.4 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003889/0.4587, allocations: 0.8895 MB / 270.7 MB, free: 10.5 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/0.4604, allocations: 171.3 kB / 270.9 MB, free: 10.34 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02019/0.4806, allocations: 7.874 MB / 278.8 MB, free: 2.352 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007464/0.4814, allocations: 0.9735 MB / 279.7 MB, free: 1.352 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/0.4826, allocations: 315.2 kB / 280 MB, free: 1.039 MB / 218.7 MB Notification: Performance of SimCode: time 1.292e-06/0.4826, allocations: 3.938 kB / 280.1 MB, free: 1.035 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.096/3.579, allocations: 18.38 MB / 298.4 MB, free: 68.19 MB / 234.7 MB