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.HeatingRectifier.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.HeatingRectifier,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9699/0.9699, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.649e-05/2.663e-05, allocations: 4 kB / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05373/0.05379, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2203/0.2741, allocations: 35.47 MB / 208.9 MB, free: 4.918 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002921/0.2745, allocations: 61.58 kB / 208.9 MB, free: 4.918 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01985/0.2944, allocations: 3.838 MB / 212.8 MB, free: 4.34 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2944, allocations: 4 kB / 212.8 MB, free: 4.336 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.2944, allocations: 4.594 kB / 212.8 MB, free: 4.336 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008681/0.2953, allocations: 493 kB / 213.2 MB, free: 3.93 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.2954, allocations: 9.625 kB / 213.3 MB, free: 3.93 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.09e-05/0.2955, allocations: 30.38 kB / 213.3 MB, free: 3.914 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.2958, allocations: 227.9 kB / 213.5 MB, free: 3.691 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.2958, allocations: 6.719 kB / 213.5 MB, free: 3.691 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.2959, allocations: 13.12 kB / 213.5 MB, free: 3.691 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003746/0.2963, allocations: 133.6 kB / 213.7 MB, free: 3.691 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.2967, allocations: 189.8 kB / 213.8 MB, free: 3.637 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.2967, allocations: 0 / 213.8 MB, free: 3.637 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/0.2968, allocations: 0 / 213.8 MB, free: 3.637 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.2968, allocations: 3.875 kB / 213.8 MB, free: 3.637 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.2984, allocations: 0.8117 MB / 214.7 MB, free: 3.199 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.2988, allocations: 139.5 kB / 214.8 MB, free: 3.168 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/0.299, allocations: 83.8 kB / 214.9 MB, free: 3.16 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.299, allocations: 3.75 kB / 214.9 MB, free: 3.16 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.2991, allocations: 34.5 kB / 214.9 MB, free: 3.117 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 2.534e-06/0.2991, allocations: 0 / 214.9 MB, free: 3.117 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.000853/0.3, allocations: 211.2 kB / 215.1 MB, free: 3.059 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.3, allocations: 51.41 kB / 215.2 MB, free: 2.996 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.3002, allocations: 158.1 kB / 215.3 MB, free: 2.891 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.3002, allocations: 25.7 kB / 215.4 MB, free: 2.859 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.999e-05/0.3003, allocations: 223 kB / 215.6 MB, free: 2.676 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.803e-05/0.3004, allocations: 51.88 kB / 215.6 MB, free: 2.641 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.344e-05/0.3004, allocations: 0 / 215.6 MB, free: 2.641 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.893e-05/0.3005, allocations: 328.8 kB / 215.9 MB, free: 2.32 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.3006, allocations: 38.75 kB / 216 MB, free: 2.316 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.3007, allocations: 82.77 kB / 216.1 MB, free: 2.273 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.301, allocations: 65.27 kB / 216.1 MB, free: 2.273 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3011, allocations: 7.938 kB / 216.1 MB, free: 2.266 MB / 170.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006814/0.3017, allocations: 232.3 kB / 216.4 MB, free: 2.207 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.3018, allocations: 3.875 kB / 216.4 MB, free: 2.207 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3018, allocations: 0 / 216.4 MB, free: 2.207 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008588/0.3027, allocations: 101.7 kB / 216.5 MB, free: 2.195 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002814/0.303, allocations: 39.45 kB / 216.5 MB, free: 2.191 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006417/0.3036, allocations: 0.622 MB / 217.1 MB, free: 1.672 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.3039, allocations: 22.03 kB / 217.1 MB, free: 1.66 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.3039, allocations: 11.34 kB / 217.2 MB, free: 1.66 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: HeatCapacitor1.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(6000.0, min(6000.0, 6000.0)) start = 293.15 unit = "K" nominal = 300.0 ) "Temperature of element" type: Real Capacitor1.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: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002008/0.3041, allocations: 119.8 kB / 217.3 MB, free: 1.547 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007265/0.3049, allocations: 204.3 kB / 217.5 MB, free: 1.492 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/0.3049, allocations: 19.39 kB / 217.5 MB, free: 1.48 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006225/0.3056, allocations: 211.4 kB / 217.7 MB, free: 1.422 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3056, allocations: 3.938 kB / 217.7 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3056, allocations: 7.875 kB / 217.7 MB, free: 1.414 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3056, allocations: 0 / 217.7 MB, free: 1.414 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001152/0.3068, allocations: 0.5409 MB / 218.2 MB, free: 1.117 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3068, allocations: 0 / 218.2 MB, free: 1.117 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002644/0.3071, allocations: 32.41 kB / 218.3 MB, free: 1.117 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007809/0.3079, allocations: 111.4 kB / 218.4 MB, free: 1.105 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.3079, allocations: 2.062 kB / 218.4 MB, free: 1.105 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006067/0.3085, allocations: 0.6439 MB / 219 MB, free: 0.5781 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3086, allocations: 3.953 kB / 219 MB, free: 0.5742 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008511/0.3094, allocations: 388.5 kB / 219.4 MB, free: 400 kB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.3096, allocations: 104.4 kB / 219.5 MB, free: 296 kB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.3096, allocations: 3.953 kB / 219.5 MB, free: 292 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.3099, allocations: 10.33 kB / 219.5 MB, free: 292 kB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.116e-05/0.3099, allocations: 16.66 kB / 219.5 MB, free: 288 kB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.31, allocations: 7.844 kB / 219.6 MB, free: 288 kB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001135/0.3101, allocations: 132.5 kB / 219.7 MB, free: 200 kB / 170.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.3101, allocations: 0 / 219.7 MB, free: 200 kB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004433/0.3106, allocations: 69.03 kB / 219.8 MB, free: 184 kB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001287/0.3119, allocations: 0.9989 MB / 220.8 MB, free: 15.4 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004373/0.3123, allocations: 131.3 kB / 220.9 MB, free: 15.39 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.3123, allocations: 0 / 220.9 MB, free: 15.39 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.3125, allocations: 69.09 kB / 220.9 MB, free: 15.39 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.3132, allocations: 48.61 kB / 221 MB, free: 15.38 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.3144, allocations: 450.7 kB / 221.4 MB, free: 15.07 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.3148, allocations: 0.7461 MB / 222.2 MB, free: 14.35 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.3149, allocations: 66.03 kB / 222.2 MB, free: 14.34 MB / 186.7 MB Notification: Performance of SimCode: time 9.42e-07/0.315, allocations: 0 / 222.2 MB, free: 14.34 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.582/2.897, allocations: 4.049 MB / 226.3 MB, free: 12.29 MB / 186.7 MB