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/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.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.084/1.084, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.288e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1693/0.1694, allocations: 25.15 MB / 179.5 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06219/0.2317, allocations: 35.27 MB / 214.8 MB, free: 13.85 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.2319, allocations: 59.97 kB / 214.8 MB, free: 13.79 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0106/0.2426, allocations: 2.597 MB / 217.4 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd: time 4.168e-06/0.2426, allocations: 0 / 217.4 MB, free: 11.18 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.2426, allocations: 7.938 kB / 217.5 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006423/0.2433, allocations: 418.3 kB / 217.9 MB, free: 10.71 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.2434, allocations: 12.03 kB / 217.9 MB, free: 10.7 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.29e-05/0.2434, allocations: 38.56 kB / 217.9 MB, free: 10.65 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.513e-05/0.2435, allocations: 15.91 kB / 217.9 MB, free: 10.64 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.2438, allocations: 207.8 kB / 218.1 MB, free: 10.39 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.2438, allocations: 8.234 kB / 218.1 MB, free: 10.39 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.2439, allocations: 12 kB / 218.1 MB, free: 10.38 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.2442, allocations: 107.5 kB / 218.3 MB, free: 10.27 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.2442, allocations: 0 / 218.3 MB, free: 10.27 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.2442, allocations: 11.95 kB / 218.3 MB, free: 10.25 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.2443, allocations: 0 / 218.3 MB, free: 10.25 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.2445, allocations: 68.69 kB / 218.3 MB, free: 10.19 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.2458, allocations: 0.6096 MB / 218.9 MB, free: 9.5 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.2462, allocations: 86.58 kB / 219 MB, free: 9.406 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.257e-05/0.2463, allocations: 24.98 kB / 219.1 MB, free: 9.379 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.2463, allocations: 0 / 219.1 MB, free: 9.379 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.2464, allocations: 35.2 kB / 219.1 MB, free: 9.336 MB / 186.7 MB Notification: Performance of pre-optimization done (n=6): time 1.934e-06/0.2464, allocations: 0 / 219.1 MB, free: 9.336 MB / 186.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004722/0.2469, allocations: 110.4 kB / 219.2 MB, free: 9.219 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.2469, allocations: 55.41 kB / 219.2 MB, free: 9.152 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.2471, allocations: 149.7 kB / 219.4 MB, free: 8.996 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.2471, allocations: 25.7 kB / 219.4 MB, free: 8.965 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.2473, allocations: 186.2 kB / 219.6 MB, free: 8.781 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/0.2473, allocations: 19.66 kB / 219.6 MB, free: 8.762 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.2473, allocations: 0 / 219.6 MB, free: 8.762 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.2474, allocations: 322.8 kB / 219.9 MB, free: 8.438 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.284e-05/0.2475, allocations: 16 kB / 220 MB, free: 8.422 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.67e-05/0.2476, allocations: 42.52 kB / 220 MB, free: 8.371 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.652e-05/0.2477, allocations: 20 kB / 220 MB, free: 8.352 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2477, allocations: 0 / 220 MB, free: 8.352 MB / 186.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000386/0.2481, allocations: 118.5 kB / 220.1 MB, free: 8.227 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2481, allocations: 4 kB / 220.1 MB, free: 8.223 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.2482, allocations: 4.062 kB / 220.1 MB, free: 8.219 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.2484, allocations: 40.77 kB / 220.2 MB, free: 8.176 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.2486, allocations: 11.95 kB / 220.2 MB, free: 8.164 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00202/0.2506, allocations: 1.582 MB / 221.8 MB, free: 6.438 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.2508, allocations: 16.05 kB / 221.8 MB, free: 6.422 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.2508, allocations: 0 / 221.8 MB, free: 6.422 MB / 186.7 MB 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 9.251e-05/0.2509, allocations: 105 kB / 221.9 MB, free: 6.312 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.883e-05/0.251, allocations: 15.86 kB / 221.9 MB, free: 6.297 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.715e-05/0.251, allocations: 12.62 kB / 221.9 MB, free: 6.285 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.251, allocations: 192 / 221.9 MB, free: 6.285 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2511, allocations: 4 kB / 221.9 MB, free: 6.281 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2511, allocations: 3.984 kB / 221.9 MB, free: 6.277 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003018/0.2514, allocations: 209.6 kB / 222.1 MB, free: 6.023 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2514, allocations: 4 kB / 222.1 MB, free: 6.02 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-05/0.2515, allocations: 4 kB / 222.1 MB, free: 6.016 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002191/0.2517, allocations: 40.78 kB / 222.2 MB, free: 5.973 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.2517, allocations: 4.125 kB / 222.2 MB, free: 5.969 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.2535, allocations: 1.56 MB / 223.7 MB, free: 4.266 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2535, allocations: 3.938 kB / 223.7 MB, free: 4.262 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003942/0.2539, allocations: 204.5 kB / 223.9 MB, free: 4.043 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.51e-05/0.254, allocations: 96.94 kB / 224 MB, free: 3.93 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.2541, allocations: 8 kB / 224 MB, free: 3.922 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.2542, allocations: 4 kB / 224.1 MB, free: 3.918 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.2543, allocations: 15.94 kB / 224.1 MB, free: 3.902 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.719e-06/0.2543, allocations: 0 / 224.1 MB, free: 3.902 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001176/0.2544, allocations: 109.7 kB / 224.2 MB, free: 3.797 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2545, allocations: 0 / 224.2 MB, free: 3.797 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005107/0.255, allocations: 55.84 kB / 224.2 MB, free: 3.742 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.0007356/0.2557, allocations: 0.7405 MB / 225 MB, free: 2.973 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.2562, allocations: 174.8 kB / 225.1 MB, free: 2.789 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2562, allocations: 3.938 kB / 225.1 MB, free: 2.785 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002638/0.2565, allocations: 154.5 kB / 225.3 MB, free: 2.621 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.2569, allocations: 19.98 kB / 225.3 MB, free: 2.602 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006488/0.2575, allocations: 202.2 kB / 225.5 MB, free: 2.363 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.2578, allocations: 0.716 MB / 226.2 MB, free: 1.621 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.18e-05/0.2579, allocations: 35.42 kB / 226.3 MB, free: 1.586 MB / 186.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2579, allocations: 0 / 226.3 MB, free: 1.586 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.592/2.85, allocations: 2.531 MB / 228.8 MB, free: 15.05 MB / 202.7 MB