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.HeatingResistor.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor") Notification: Performance of loadModel(Modelica): time 0.9879/0.9879, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.777e-05/1.782e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04434/0.04438, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1947/0.2391, allocations: 34.6 MB / 207.9 MB, free: 7.074 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001869/0.2393, allocations: 64.38 kB / 208 MB, free: 7.074 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008965/0.2483, allocations: 2.575 MB / 210.5 MB, free: 6.586 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.086e-06/0.2484, allocations: 4 kB / 210.5 MB, free: 6.582 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.2484, allocations: 2.438 kB / 210.5 MB, free: 6.582 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.0004336/0.2488, allocations: 407.3 kB / 210.9 MB, free: 6.203 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.2489, allocations: 9.406 kB / 210.9 MB, free: 6.203 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.1e-05/0.249, allocations: 15.31 kB / 211 MB, free: 6.195 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.2492, allocations: 207.4 kB / 211.2 MB, free: 5.988 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.2492, allocations: 4.625 kB / 211.2 MB, free: 5.988 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/0.2492, allocations: 10.62 kB / 211.2 MB, free: 5.984 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001787/0.2494, allocations: 57.25 kB / 211.2 MB, free: 5.984 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.2496, allocations: 93.42 kB / 211.3 MB, free: 5.953 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2497, allocations: 3.953 kB / 211.3 MB, free: 5.949 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.2497, allocations: 3.984 kB / 211.3 MB, free: 5.945 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.232e-06/0.2497, allocations: 3.156 kB / 211.3 MB, free: 5.945 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008442/0.2506, allocations: 0.5692 MB / 211.9 MB, free: 5.527 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.2509, allocations: 72.81 kB / 212 MB, free: 5.504 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.459e-05/0.2509, allocations: 28.36 kB / 212 MB, free: 5.492 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.251, allocations: 1.281 kB / 212 MB, free: 5.492 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.251, allocations: 38.47 kB / 212 MB, free: 5.453 MB / 170.7 MB Notification: Performance of pre-optimization done (n=6): time 2.29e-06/0.251, allocations: 0 / 212 MB, free: 5.453 MB / 170.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003448/0.2514, allocations: 105.8 kB / 212.1 MB, free: 5.398 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.618e-05/0.2514, allocations: 52.53 kB / 212.2 MB, free: 5.336 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.2515, allocations: 132.3 kB / 212.3 MB, free: 5.238 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.2516, allocations: 33.36 kB / 212.4 MB, free: 5.203 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.2516, allocations: 190.3 kB / 212.5 MB, free: 5.035 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.2517, allocations: 17.66 kB / 212.6 MB, free: 5.02 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.647e-06/0.2517, allocations: 3.844 kB / 212.6 MB, free: 5.02 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 4.921e-05/0.2517, allocations: 318.5 kB / 212.9 MB, free: 4.707 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.013e-05/0.2518, allocations: 16.03 kB / 212.9 MB, free: 4.707 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.88e-05/0.2519, allocations: 36.67 kB / 212.9 MB, free: 4.68 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.252, allocations: 24.06 kB / 212.9 MB, free: 4.676 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.573e-06/0.252, allocations: 0 / 212.9 MB, free: 4.676 MB / 170.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003148/0.2523, allocations: 113.4 kB / 213.1 MB, free: 4.625 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.2524, allocations: 5.938 kB / 213.1 MB, free: 4.625 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.108e-06/0.2524, allocations: 1.5 kB / 213.1 MB, free: 4.625 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/0.2526, allocations: 38.7 kB / 213.1 MB, free: 4.613 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.939e-05/0.2527, allocations: 17.33 kB / 213.1 MB, free: 4.609 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/0.254, allocations: 1.502 MB / 214.6 MB, free: 3.254 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.2541, allocations: 4.312 kB / 214.6 MB, free: 3.254 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.2542, allocations: 2.656 kB / 214.6 MB, free: 3.254 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.0001192/0.2543, allocations: 108.7 kB / 214.7 MB, free: 3.145 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.683e-05/0.2543, allocations: 13.12 kB / 214.7 MB, free: 3.137 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.016e-05/0.2544, allocations: 14.94 kB / 214.8 MB, free: 3.129 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.342e-06/0.2544, allocations: 8.016 kB / 214.8 MB, free: 3.121 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.2544, allocations: 1.5 kB / 214.8 MB, free: 3.121 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.986e-06/0.2545, allocations: 2.297 kB / 214.8 MB, free: 3.121 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.2548, allocations: 179.6 kB / 214.9 MB, free: 2.961 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.203e-06/0.2548, allocations: 1.344 kB / 214.9 MB, free: 2.961 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.128e-05/0.2549, allocations: 3.094 kB / 215 MB, free: 2.961 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001666/0.2551, allocations: 34.55 kB / 215 MB, free: 2.953 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.2551, allocations: 1.656 kB / 215 MB, free: 2.953 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001578/0.2567, allocations: 1.499 MB / 216.5 MB, free: 17.6 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.969e-06/0.2567, allocations: 4 kB / 216.5 MB, free: 17.59 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000329/0.2571, allocations: 203.7 kB / 216.7 MB, free: 17.44 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.038e-05/0.2572, allocations: 90.77 kB / 216.8 MB, free: 17.34 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.2572, allocations: 1.625 kB / 216.8 MB, free: 17.34 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.2574, allocations: 9.781 kB / 216.8 MB, free: 17.34 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.2574, allocations: 18.19 kB / 216.8 MB, free: 17.33 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.2575, allocations: 1.344 kB / 216.8 MB, free: 17.33 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.2576, allocations: 104.6 kB / 216.9 MB, free: 17.26 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.2576, allocations: 0 / 216.9 MB, free: 17.26 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005177/0.2581, allocations: 44.72 kB / 217 MB, free: 17.25 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.0001556/0.2583, allocations: 105.8 kB / 217.1 MB, free: 17.16 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003517/0.2587, allocations: 166.1 kB / 217.2 MB, free: 17.05 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2587, allocations: 0 / 217.2 MB, free: 17.05 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002052/0.2589, allocations: 140.2 kB / 217.4 MB, free: 16.95 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.2592, allocations: 22.77 kB / 217.4 MB, free: 16.95 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003832/0.2596, allocations: 172.8 kB / 217.5 MB, free: 16.82 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.26, allocations: 0.7123 MB / 218.3 MB, free: 16.12 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.2601, allocations: 13.94 kB / 218.3 MB, free: 16.11 MB / 186.7 MB Notification: Performance of SimCode: time 1.349e-06/0.2601, allocations: 0 / 218.3 MB, free: 16.11 MB / 186.7 MB Notification: Performance of Templates: time 0.00407/0.2642, allocations: 1.914 MB / 220.2 MB, free: 16 MB / 186.7 MB