Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.851/1.851, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003608, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.0861, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3762/0.4623, allocations: 71.92 MB / 344 MB, free: 1.527 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.4627, allocations: 80.48 kB / 344.1 MB, free: 1.484 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06784/0.5305, allocations: 15.67 MB / 359.8 MB, free: 4.277 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.095e-06/0.5306, allocations: 0 / 359.8 MB, free: 4.277 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.825e-05/0.5307, allocations: 12 kB / 359.8 MB, free: 4.266 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003829/0.5345, allocations: 1.176 MB / 361 MB, free: 3.082 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/0.5346, allocations: 12.03 kB / 361 MB, free: 3.07 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004265/0.535, allocations: 112.5 kB / 361.1 MB, free: 2.988 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.5353, allocations: 106.9 kB / 361.2 MB, free: 2.883 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.5367, allocations: 0.5153 MB / 361.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003575/0.5371, allocations: 158.9 kB / 361.9 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.5372, allocations: 59.31 kB / 361.9 MB, free: 2.219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.5396, allocations: 0.8676 MB / 362.8 MB, free: 1.465 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.5397, allocations: 4 kB / 362.8 MB, free: 1.461 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.5398, allocations: 25.44 kB / 362.8 MB, free: 1.453 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/0.5398, allocations: 16 kB / 362.8 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002519/0.5424, allocations: 0.6474 MB / 363.5 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005522/0.5479, allocations: 2.079 MB / 365.6 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002967/0.5509, allocations: 1.066 MB / 366.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.5511, allocations: 20.58 kB / 366.6 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.5511, allocations: 46.47 kB / 366.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 3.466e-06/0.5512, allocations: 0 / 366.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=74): time 0.009786/0.561, allocations: 1.994 MB / 368.7 MB, free: 12.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004699/0.5615, allocations: 0.8238 MB / 369.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.5626, allocations: 0.526 MB / 370 MB, free: 11.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000241/0.5629, allocations: 45.39 kB / 370.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002914/0.5632, allocations: 343.8 kB / 370.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00035/0.5636, allocations: 266.8 kB / 370.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.5636, allocations: 11.62 kB / 370.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.5638, allocations: 334.2 kB / 371 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.565, allocations: 294.2 kB / 371.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.5666, allocations: 0.5719 MB / 371.9 MB, free: 9.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.568, allocations: 426.9 kB / 372.3 MB, free: 9.273 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.568, allocations: 0 / 372.3 MB, free: 9.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004712/0.5727, allocations: 1.127 MB / 373.4 MB, free: 8.352 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.167e-05/0.5728, allocations: 85.11 kB / 373.5 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.5729, allocations: 3.938 kB / 373.5 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.574, allocations: 255.7 kB / 373.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.5753, allocations: 143 kB / 373.9 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/0.5878, allocations: 6.575 MB / 380.5 MB, free: 1.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.5893, allocations: 116.7 kB / 380.6 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.5895, allocations: 24.17 kB / 380.6 MB, free: 1.293 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006657/0.5902, allocations: 219.4 kB / 380.8 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003123/0.5905, allocations: 87.14 kB / 380.9 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002821/0.5908, allocations: 89.86 kB / 381 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/0.5908, allocations: 8 kB / 381 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/0.5909, allocations: 3.938 kB / 381 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004997/0.5959, allocations: 1.328 MB / 382.3 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007649/0.6036, allocations: 1.995 MB / 384.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.6036, allocations: 4 kB / 384.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/0.6051, allocations: 151.8 kB / 384.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009979/0.6061, allocations: 218.3 kB / 384.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/0.6062, allocations: 16 kB / 384.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/0.6172, allocations: 5.118 MB / 389.8 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.6173, allocations: 0 / 389.8 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007512/0.6248, allocations: 1.503 MB / 391.3 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005021/0.6254, allocations: 172 kB / 391.5 MB, free: 6.383 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000386/0.6258, allocations: 16 kB / 391.5 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.6271, allocations: 63.95 kB / 391.6 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000363/0.6275, allocations: 64.5 kB / 391.6 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.17e-05/0.6276, allocations: 20 kB / 391.7 MB, free: 6.223 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001182/0.6288, allocations: 431.1 kB / 392.1 MB, free: 5.809 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.228e-06/0.6288, allocations: 0 / 392.1 MB, free: 5.809 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001891/0.6307, allocations: 279.6 kB / 392.4 MB, free: 5.535 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * 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 (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008831/0.6396, allocations: 2.099 MB / 394.5 MB, free: 3.395 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005306/0.645, allocations: 1.395 MB / 395.8 MB, free: 1.914 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/0.645, allocations: 3.938 kB / 395.8 MB, free: 1.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003685/0.6487, allocations: 0.8082 MB / 396.7 MB, free: 1.066 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/0.6509, allocations: 195.8 kB / 396.8 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008796/0.6597, allocations: 2.606 MB / 399.5 MB, free: 14.2 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009604/0.6608, allocations: 0.9516 MB / 400.4 MB, free: 13.22 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.6619, allocations: 295.3 kB / 400.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of SimCode: time 1.453e-06/0.6619, allocations: 0 / 400.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.11/3.772, allocations: 23.66 MB / 424.4 MB, free: 5.234 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat