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.069/1.069, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002622/0.0002624, allocations: 4 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05833/0.05862, allocations: 25.17 MB / 183.5 MB, free: 5.914 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007348/0.06602, allocations: 4.514 MB / 188 MB, free: 1.387 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.00398/0.07005, allocations: 1.408 MB / 189.4 MB, free: 15.98 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008011/0.07091, allocations: 19.94 kB / 189.5 MB, free: 15.96 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003227/0.07125, allocations: 115.1 kB / 189.6 MB, free: 15.84 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.07248, allocations: 331 kB / 189.9 MB, free: 15.52 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.0737, allocations: 271.5 kB / 190.2 MB, free: 15.25 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.002302/0.07602, allocations: 0.8629 MB / 191 MB, free: 14.39 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007643/0.07684, allocations: 304.5 kB / 191.3 MB, free: 14.08 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009736/0.07783, allocations: 426.6 kB / 191.7 MB, free: 13.66 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.07887, allocations: 0.5331 MB / 192.3 MB, free: 13.12 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002392/0.07913, allocations: 64 kB / 192.3 MB, free: 13.06 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003397/0.07948, allocations: 72 kB / 192.4 MB, free: 12.99 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002671/0.07977, allocations: 195.3 kB / 192.6 MB, free: 12.8 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003119/0.08009, allocations: 205.2 kB / 192.8 MB, free: 12.59 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001902/0.08201, allocations: 1.204 MB / 194 MB, free: 11.39 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.08206, allocations: 8 kB / 194 MB, free: 11.38 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.08207, allocations: 0 / 194 MB, free: 11.38 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.44e-05/0.08212, allocations: 0 / 194 MB, free: 11.38 MB / 170.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.005983/0.08811, allocations: 1.31 MB / 195.3 MB, free: 10.02 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.0882, allocations: 8.031 kB / 195.3 MB, free: 10.01 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004287/0.08864, allocations: 135.1 kB / 195.5 MB, free: 9.871 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.08895, allocations: 102.8 kB / 195.6 MB, free: 9.77 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.09011, allocations: 0.5081 MB / 196.1 MB, free: 9.223 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.239e-05/0.09021, allocations: 65.98 kB / 196.1 MB, free: 9.156 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002567/0.09048, allocations: 88 kB / 196.2 MB, free: 9.07 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004664/0.09516, allocations: 1.165 MB / 197.4 MB, free: 7.891 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/0.09525, allocations: 7.953 kB / 197.4 MB, free: 7.883 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001694/0.09543, allocations: 32 kB / 197.4 MB, free: 7.852 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.09548, allocations: 23.94 kB / 197.4 MB, free: 7.828 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006481/0.102, allocations: 1.304 MB / 198.7 MB, free: 6.523 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01038/0.1124, allocations: 3.478 MB / 202.2 MB, free: 2.922 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00566/0.1181, allocations: 1.194 MB / 203.4 MB, free: 1.719 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.1183, allocations: 16.53 kB / 203.4 MB, free: 1.703 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.1184, allocations: 43.12 kB / 203.5 MB, free: 1.652 MB / 170.7 MB Notification: Performance of pre-optimization done (n=67): time 3.567e-06/0.1184, allocations: 0 / 203.5 MB, free: 1.652 MB / 170.7 MB Notification: Performance of matching and sorting (n=71): time 0.1646/0.283, allocations: 3.382 MB / 206.9 MB, free: 23.54 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.2831, allocations: 64.14 kB / 206.9 MB, free: 23.48 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009458/0.2841, allocations: 0.5151 MB / 207.4 MB, free: 23.23 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002075/0.2843, allocations: 37.83 kB / 207.5 MB, free: 23.2 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.2846, allocations: 429.4 kB / 207.9 MB, free: 22.83 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.2848, allocations: 245.7 kB / 208.1 MB, free: 22.64 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.285, allocations: 15.59 kB / 208.1 MB, free: 22.63 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.2851, allocations: 348.6 kB / 208.5 MB, free: 22.3 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00263/0.2877, allocations: 0.5466 MB / 209 MB, free: 22.13 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002747/0.2905, allocations: 0.6711 MB / 209.7 MB, free: 21.83 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002776/0.2933, allocations: 0.5966 MB / 210.3 MB, free: 21.61 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.2933, allocations: 1.219 kB / 210.3 MB, free: 21.61 MB / 170.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.006783/0.3001, allocations: 1.513 MB / 211.8 MB, free: 21.06 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.3002, allocations: 7.406 kB / 211.8 MB, free: 21.06 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.3002, allocations: 6.281 kB / 211.8 MB, free: 21.05 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009091/0.3012, allocations: 169.5 kB / 212 MB, free: 21.01 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002687/0.3039, allocations: 289.4 kB / 212.3 MB, free: 20.98 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005495/0.3094, allocations: 2.672 MB / 214.9 MB, free: 18.95 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002004/0.3114, allocations: 125.9 kB / 215.1 MB, free: 18.93 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.3116, allocations: 37 kB / 215.1 MB, free: 18.92 MB / 170.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.0007021/0.3123, allocations: 250 kB / 215.3 MB, free: 18.72 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.3125, allocations: 66.25 kB / 215.4 MB, free: 18.69 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.3128, allocations: 92.81 kB / 215.5 MB, free: 18.62 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.3128, allocations: 11.64 kB / 215.5 MB, free: 18.62 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/0.3128, allocations: 0 / 215.5 MB, free: 18.62 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.3128, allocations: 6.406 kB / 215.5 MB, free: 18.62 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001659/0.3145, allocations: 1.008 MB / 216.5 MB, free: 18.07 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3145, allocations: 0 / 216.5 MB, free: 18.07 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002284/0.3168, allocations: 240.9 kB / 216.8 MB, free: 18 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008634/0.3177, allocations: 181.6 kB / 216.9 MB, free: 17.91 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/0.3179, allocations: 19.86 kB / 217 MB, free: 17.9 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005181/0.3231, allocations: 2.659 MB / 219.6 MB, free: 15.71 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3232, allocations: 0 / 219.6 MB, free: 15.71 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008806/0.332, allocations: 2.185 MB / 221.8 MB, free: 14.58 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000549/0.3326, allocations: 245.8 kB / 222 MB, free: 14.34 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002361/0.3328, allocations: 10.28 kB / 222.1 MB, free: 14.34 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001858/0.3347, allocations: 157.6 kB / 222.2 MB, free: 14.28 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.3349, allocations: 45.95 kB / 222.3 MB, free: 14.26 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.335, allocations: 24.64 kB / 222.3 MB, free: 14.25 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0005585/0.3356, allocations: 359.9 kB / 222.6 MB, free: 13.99 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.282e-06/0.3356, allocations: 0 / 222.6 MB, free: 13.99 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001128/0.3367, allocations: 240.3 kB / 222.9 MB, free: 13.76 MB / 170.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.00872/0.3455, allocations: 2.758 MB / 225.6 MB, free: 10.97 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.006346/0.3519, allocations: 1.531 MB / 227.2 MB, free: 9.43 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.3519, allocations: 0 / 227.2 MB, free: 9.43 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00373/0.3557, allocations: 0.8885 MB / 228 MB, free: 8.531 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.3574, allocations: 169 kB / 228.2 MB, free: 8.371 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01734/0.3748, allocations: 6.219 MB / 234.4 MB, free: 2.062 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.3753, allocations: 0.9813 MB / 235.4 MB, free: 1.055 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.3763, allocations: 307.3 kB / 235.7 MB, free: 0.7539 MB / 170.7 MB Notification: Performance of SimCode: time 1.001e-06/0.3763, allocations: 3.938 kB / 235.7 MB, free: 0.75 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.842/3.219, allocations: 18.42 MB / 254.1 MB, free: 14.32 MB / 202.7 MB