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.046/1.046, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002629/0.0002631, allocations: 12 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0538/0.05409, allocations: 25.17 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2147/0.2688, allocations: 35.35 MB / 218.9 MB, free: 6.004 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.2691, allocations: 66.75 kB / 219 MB, free: 5.996 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009415/0.2785, allocations: 2.604 MB / 221.6 MB, free: 4.891 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2786, allocations: 0 / 221.6 MB, free: 4.891 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.2786, allocations: 0 / 221.6 MB, free: 4.891 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.0005661/0.2792, allocations: 431.3 kB / 222 MB, free: 4.477 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.2793, allocations: 11.53 kB / 222.1 MB, free: 4.477 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.2793, allocations: 42.14 kB / 222.1 MB, free: 4.434 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.582e-05/0.2794, allocations: 15.5 kB / 222.1 MB, free: 4.426 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.2796, allocations: 204.9 kB / 222.3 MB, free: 4.207 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.2796, allocations: 7.453 kB / 222.3 MB, free: 4.207 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.2797, allocations: 11.28 kB / 222.3 MB, free: 4.207 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.28, allocations: 117.9 kB / 222.4 MB, free: 4.156 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.28, allocations: 0 / 222.4 MB, free: 4.156 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.28, allocations: 11.61 kB / 222.5 MB, free: 4.152 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.28, allocations: 4 kB / 222.5 MB, free: 4.148 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.2803, allocations: 83.22 kB / 222.5 MB, free: 4.137 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.2813, allocations: 0.6156 MB / 223.2 MB, free: 3.613 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003865/0.2817, allocations: 84.62 kB / 223.2 MB, free: 3.582 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.2818, allocations: 4 kB / 223.2 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.2818, allocations: 49.97 kB / 223.3 MB, free: 3.527 MB / 170.7 MB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.2818, allocations: 0 / 223.3 MB, free: 3.527 MB / 170.7 MB Notification: Performance of matching and sorting (n=6): time 0.000939/0.2828, allocations: 253.2 kB / 223.5 MB, free: 3.359 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.2828, allocations: 51.41 kB / 223.6 MB, free: 3.297 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.283, allocations: 133.7 kB / 223.7 MB, free: 3.195 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.283, allocations: 25.7 kB / 223.7 MB, free: 3.164 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.2831, allocations: 195.4 kB / 223.9 MB, free: 2.984 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.2831, allocations: 22.5 kB / 224 MB, free: 2.969 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-06/0.2831, allocations: 0 / 224 MB, free: 2.969 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.665e-05/0.2832, allocations: 322.4 kB / 224.3 MB, free: 2.648 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.781e-05/0.2833, allocations: 25.05 kB / 224.3 MB, free: 2.645 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.2834, allocations: 45.03 kB / 224.3 MB, free: 2.613 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.2835, allocations: 37.3 kB / 224.4 MB, free: 2.605 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2835, allocations: 0 / 224.4 MB, free: 2.605 MB / 170.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004103/0.284, allocations: 129.7 kB / 224.5 MB, free: 2.543 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.284, allocations: 7.828 kB / 224.5 MB, free: 2.539 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.284, allocations: 3.719 kB / 224.5 MB, free: 2.539 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/0.2843, allocations: 35.12 kB / 224.5 MB, free: 2.523 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.628e-05/0.2844, allocations: 15.36 kB / 224.6 MB, free: 2.52 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.286, allocations: 1.595 MB / 226.2 MB, free: 1.039 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.2862, allocations: 7.906 kB / 226.2 MB, free: 1.035 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.2862, allocations: 7.906 kB / 226.2 MB, free: 1.031 MB / 170.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 () * Number of clocked 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.0001175/0.2864, allocations: 124.3 kB / 226.3 MB, free: 0.9141 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.075e-05/0.2864, allocations: 11.67 kB / 226.3 MB, free: 0.9062 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.747e-05/0.2865, allocations: 18.55 kB / 226.3 MB, free: 0.9023 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2865, allocations: 0 / 226.3 MB, free: 0.9023 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.2865, allocations: 0 / 226.3 MB, free: 0.9023 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2865, allocations: 0 / 226.3 MB, free: 0.9023 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/0.2867, allocations: 211.1 kB / 226.5 MB, free: 0.6914 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2867, allocations: 0 / 226.5 MB, free: 0.6914 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.756e-05/0.2868, allocations: 12.92 kB / 226.5 MB, free: 0.6836 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001988/0.287, allocations: 34.38 kB / 226.6 MB, free: 0.6719 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.2871, allocations: 5.453 kB / 226.6 MB, free: 0.668 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/0.2887, allocations: 1.57 MB / 228.2 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2887, allocations: 0 / 228.2 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004608/0.2892, allocations: 226.4 kB / 228.4 MB, free: 15.03 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.114e-05/0.2893, allocations: 88.38 kB / 228.5 MB, free: 14.93 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.2893, allocations: 3.688 kB / 228.5 MB, free: 14.93 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.2895, allocations: 3.719 kB / 228.5 MB, free: 14.93 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.433e-05/0.2895, allocations: 10.89 kB / 228.5 MB, free: 14.92 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.2895, allocations: 7.641 kB / 228.5 MB, free: 14.92 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001077/0.2897, allocations: 115.7 kB / 228.6 MB, free: 14.83 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2897, allocations: 3.812 kB / 228.6 MB, free: 14.83 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005136/0.2902, allocations: 52.75 kB / 228.7 MB, free: 14.82 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 () * Number of clocked 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.0007852/0.291, allocations: 0.7651 MB / 229.4 MB, free: 14.12 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0005164/0.2915, allocations: 182.2 kB / 229.6 MB, free: 14 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2915, allocations: 0 / 229.6 MB, free: 14 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.2918, allocations: 163 kB / 229.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.2922, allocations: 22.48 kB / 229.8 MB, free: 13.86 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.2941, allocations: 1.113 MB / 230.9 MB, free: 12.98 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.2945, allocations: 0.7191 MB / 231.6 MB, free: 12.26 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.2945, allocations: 30.17 kB / 231.6 MB, free: 12.25 MB / 186.7 MB Notification: Performance of SimCode: time 8.31e-07/0.2946, allocations: 3.656 kB / 231.6 MB, free: 12.25 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.46/2.754, allocations: 2.529 MB / 234.2 MB, free: 10.99 MB / 186.7 MB