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.HeatingResistor.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.06/1.06, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.147e-05/2.154e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05262/0.05268, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2059/0.2586, allocations: 34.59 MB / 208 MB, free: 4.602 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.2589, allocations: 64.69 kB / 208 MB, free: 4.602 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01004/0.269, allocations: 2.578 MB / 210.6 MB, free: 4.117 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.269, allocations: 0 / 210.6 MB, free: 4.117 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.269, allocations: 2.5 kB / 210.6 MB, free: 4.117 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005315/0.2696, allocations: 412.3 kB / 211 MB, free: 3.738 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.2696, allocations: 13.53 kB / 211 MB, free: 3.734 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.732e-05/0.2697, allocations: 15.25 kB / 211.1 MB, free: 3.727 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.27, allocations: 203.2 kB / 211.3 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.27, allocations: 3.469 kB / 211.3 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.27, allocations: 5.969 kB / 211.3 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002037/0.2702, allocations: 59.06 kB / 211.3 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.2705, allocations: 92.39 kB / 211.4 MB, free: 3.488 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2705, allocations: 6.359 kB / 211.4 MB, free: 3.484 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.2705, allocations: 0 / 211.4 MB, free: 3.484 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.2705, allocations: 3.656 kB / 211.4 MB, free: 3.484 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.2716, allocations: 0.574 MB / 212 MB, free: 3.062 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003416/0.272, allocations: 76.09 kB / 212.1 MB, free: 3.035 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.882e-05/0.2721, allocations: 23.73 kB / 212.1 MB, free: 3.027 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.2721, allocations: 1.281 kB / 212.1 MB, free: 3.027 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.2722, allocations: 42.67 kB / 212.1 MB, free: 2.984 MB / 170.7 MB Notification: Performance of pre-optimization done (n=6): time 2.385e-06/0.2722, allocations: 0 / 212.1 MB, free: 2.984 MB / 170.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004146/0.2726, allocations: 104.6 kB / 212.2 MB, free: 2.93 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.016e-05/0.2726, allocations: 51.41 kB / 212.3 MB, free: 2.867 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.2728, allocations: 138.1 kB / 212.4 MB, free: 2.77 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.2728, allocations: 28.94 kB / 212.5 MB, free: 2.738 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.2729, allocations: 185.7 kB / 212.6 MB, free: 2.57 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.2729, allocations: 23.77 kB / 212.7 MB, free: 2.555 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-06/0.2729, allocations: 0 / 212.7 MB, free: 2.555 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.53e-05/0.273, allocations: 315.1 kB / 213 MB, free: 2.242 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.037e-05/0.273, allocations: 24.81 kB / 213 MB, free: 2.234 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.517e-05/0.2731, allocations: 33.64 kB / 213 MB, free: 2.211 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.2732, allocations: 20.36 kB / 213 MB, free: 2.211 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2732, allocations: 1.219 kB / 213 MB, free: 2.211 MB / 170.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003368/0.2736, allocations: 113.5 kB / 213.2 MB, free: 2.164 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.2736, allocations: 13.34 kB / 213.2 MB, free: 2.156 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.2736, allocations: 192 / 213.2 MB, free: 2.156 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.2739, allocations: 33.22 kB / 213.2 MB, free: 2.148 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.274, allocations: 20.31 kB / 213.2 MB, free: 2.141 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/0.2754, allocations: 1.504 MB / 214.7 MB, free: 0.7812 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.2756, allocations: 8.094 kB / 214.7 MB, free: 0.7773 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.2756, allocations: 5.75 kB / 214.7 MB, free: 0.7773 MB / 170.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heatingResistor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.2758, allocations: 111.5 kB / 214.8 MB, free: 0.6641 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003062/0.2761, allocations: 110.6 kB / 215 MB, free: 0.6094 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.2762, allocations: 9.125 kB / 215 MB, free: 0.6055 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.517e-05/0.2762, allocations: 11.16 kB / 215 MB, free: 0.5977 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2762, allocations: 1.344 kB / 215 MB, free: 0.5977 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.2762, allocations: 0 / 215 MB, free: 0.5977 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.2763, allocations: 2.953 kB / 215 MB, free: 0.5977 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.2765, allocations: 179.7 kB / 215.2 MB, free: 448 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2765, allocations: 0 / 215.2 MB, free: 448 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.108e-05/0.2766, allocations: 7.781 kB / 215.2 MB, free: 444 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.2768, allocations: 36.69 kB / 215.2 MB, free: 436 kB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.2768, allocations: 1.25 kB / 215.2 MB, free: 436 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001613/0.2784, allocations: 1.494 MB / 216.7 MB, free: 15.07 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.2785, allocations: 192 / 216.7 MB, free: 15.07 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003669/0.2788, allocations: 209.5 kB / 216.9 MB, free: 14.92 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.878e-05/0.279, allocations: 89.8 kB / 217 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.279, allocations: 4.516 kB / 217 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.2792, allocations: 8.234 kB / 217 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.2793, allocations: 6.578 kB / 217 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.2793, allocations: 1.344 kB / 217 MB, free: 14.82 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.00011/0.2794, allocations: 105.4 kB / 217.1 MB, free: 14.74 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2794, allocations: 0 / 217.1 MB, free: 14.74 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005563/0.28, allocations: 50.86 kB / 217.2 MB, free: 14.73 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006958/0.2807, allocations: 0.7332 MB / 217.9 MB, free: 14.06 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004106/0.2811, allocations: 167.9 kB / 218.1 MB, free: 13.95 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.2811, allocations: 1 kB / 218.1 MB, free: 13.95 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.2814, allocations: 144.3 kB / 218.2 MB, free: 13.84 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.2818, allocations: 19.97 kB / 218.2 MB, free: 13.84 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006678/0.2825, allocations: 206.7 kB / 218.4 MB, free: 13.68 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.2828, allocations: 0.7205 MB / 219.1 MB, free: 12.97 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.2829, allocations: 33.27 kB / 219.2 MB, free: 12.96 MB / 186.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2829, allocations: 0 / 219.2 MB, free: 12.96 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.752/3.035, allocations: 2.516 MB / 221.7 MB, free: 12.54 MB / 186.7 MB