Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.308/2.308, allocations: 235 MB / 248.1 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.971e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.3871, allocations: 54.84 MB / 364.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.263/1.65, allocations: 424.5 MB / 0.7707 GB, free: 123.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003251/1.65, allocations: 92.5 kB / 0.7708 GB, free: 123.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4825/2.133, allocations: 132.1 MB / 0.8998 GB, free: 1.738 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.964e-06/2.133, allocations: 0 / 0.8998 GB, free: 1.738 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.329e-05/2.133, allocations: 20 kB / 0.8998 GB, free: 1.719 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002483/2.135, allocations: 0.9005 MB / 0.9007 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/2.135, allocations: 8.031 kB / 0.9007 GB, free: 0.7656 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002062/2.136, allocations: 102.5 kB / 0.9008 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005005/2.136, allocations: 87.06 kB / 0.9009 GB, free: 0.5703 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.321/2.457, allocations: 0.5433 MB / 0.9014 GB, free: 115.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002182/2.457, allocations: 104.2 kB / 0.9015 GB, free: 115.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002701/2.458, allocations: 47.92 kB / 0.9016 GB, free: 115.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002194/2.46, allocations: 0.7928 MB / 0.9024 GB, free: 115 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.989e-05/2.46, allocations: 3.656 kB / 0.9024 GB, free: 115 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/2.46, allocations: 23.62 kB / 0.9024 GB, free: 115 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/2.46, allocations: 40.83 kB / 0.9024 GB, free: 115 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00181/2.462, allocations: 0.621 MB / 0.903 GB, free: 115 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006781/2.469, allocations: 3.638 MB / 0.9066 GB, free: 112.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/2.47, allocations: 387.9 kB / 0.9069 GB, free: 112.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/2.471, allocations: 199.2 kB / 0.9071 GB, free: 112.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003021/2.474, allocations: 1.648 MB / 0.9087 GB, free: 111.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/2.474, allocations: 41.05 kB / 0.9088 GB, free: 111.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=37): time 3.426e-06/2.474, allocations: 1.031 kB / 0.9088 GB, free: 111.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.004278/2.478, allocations: 1.274 MB / 0.91 GB, free: 111.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/2.478, allocations: 137.5 kB / 0.9102 GB, free: 111.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009486/2.479, allocations: 0.5035 MB / 0.9107 GB, free: 110.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.413e-05/2.479, allocations: 32.94 kB / 0.9107 GB, free: 110.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002686/2.48, allocations: 405.5 kB / 0.9111 GB, free: 110.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/2.48, allocations: 157.7 kB / 0.9112 GB, free: 110.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.735e-05/2.48, allocations: 12.75 kB / 0.9112 GB, free: 110.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.653e-05/2.48, allocations: 339.3 kB / 0.9116 GB, free: 110.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005252/2.48, allocations: 202 kB / 0.9118 GB, free: 110.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000734/2.481, allocations: 0.5259 MB / 0.9123 GB, free: 109.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000722/2.482, allocations: 309.5 kB / 0.9126 GB, free: 109.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-06/2.482, allocations: 3.031 kB / 0.9126 GB, free: 109.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002385/2.484, allocations: 0.8429 MB / 0.9134 GB, free: 109.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/2.484, allocations: 12.81 kB / 0.9134 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.463e-05/2.484, allocations: 10.25 kB / 0.9134 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002171/2.487, allocations: 254.5 kB / 0.9137 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009098/2.488, allocations: 139.6 kB / 0.9138 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/2.489, allocations: 0.8411 MB / 0.9146 GB, free: 109.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/2.49, allocations: 47.72 kB / 0.9147 GB, free: 109.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/2.49, allocations: 40.75 kB / 0.9147 GB, free: 109.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 76 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002512/2.49, allocations: 155.5 kB / 0.9148 GB, free: 109.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/2.491, allocations: 68.2 kB / 0.9149 GB, free: 109.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/2.493, allocations: 0.7133 MB / 0.9156 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/2.493, allocations: 4.344 kB / 0.9156 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/2.493, allocations: 1.531 kB / 0.9156 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/2.493, allocations: 6.062 kB / 0.9156 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003146/2.496, allocations: 1.331 MB / 0.9169 GB, free: 108.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/2.496, allocations: 6.328 kB / 0.9169 GB, free: 108.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002025/2.498, allocations: 195.5 kB / 0.9171 GB, free: 108.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000141/2.498, allocations: 24.45 kB / 0.9171 GB, free: 108.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.473e-05/2.498, allocations: 14.64 kB / 0.9171 GB, free: 108.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002142/2.5, allocations: 2.677 MB / 0.9198 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/2.5, allocations: 4.219 kB / 0.9198 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/2.502, allocations: 0.9995 MB / 0.9207 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005047/2.503, allocations: 197 kB / 0.9209 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/2.503, allocations: 16.66 kB / 0.9209 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008027/2.504, allocations: 32.84 kB / 0.921 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/2.504, allocations: 37.41 kB / 0.921 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.88e-05/2.504, allocations: 20.02 kB / 0.921 GB, free: 105.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00074/2.505, allocations: 398.1 kB / 0.9214 GB, free: 105.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.505, allocations: 0 / 0.9214 GB, free: 105.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001472/2.506, allocations: 239 kB / 0.9216 GB, free: 105.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003043/2.51, allocations: 2.198 MB / 0.9238 GB, free: 103.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001988/2.512, allocations: 0.5731 MB / 0.9243 GB, free: 103.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/2.512, allocations: 1 kB / 0.9243 GB, free: 103.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/2.513, allocations: 411.1 kB / 0.9247 GB, free: 103.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002682/2.516, allocations: 291 kB / 0.925 GB, free: 103.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003612/2.52, allocations: 1.191 MB / 0.9262 GB, free: 103.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005152/2.52, allocations: 0.9449 MB / 0.9271 GB, free: 102.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005428/2.521, allocations: 243.6 kB / 0.9273 GB, free: 102.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.312e-06/2.521, allocations: 0 / 0.9273 GB, free: 102.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.101/5.622, allocations: 18.29 MB / 0.9452 GB, free: 102.1 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat does not exist to compare? outputFormat=mat