Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.idealGasLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.idealGasLimit,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_idealGasLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.idealGasLimit,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_idealGasLimit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008449/0.008448, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 198.7 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.509/1.509, allocations: 205.1 MB / 222.6 MB, free: 4.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0567/0.0567, allocations: 9.101 MB / 279 MB, free: 12.08 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 71.89 kB / 387 MB, free: 8.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3065, allocations: 48.16 MB / 435.1 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.idealGasLimit): time 0.01924/0.3258, allocations: 17.21 MB / 452.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008752/0.3346, allocations: 9.342 MB / 461.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.3347, allocations: 0 / 461.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.3359, allocations: 411.1 kB / 462.1 MB, free: 2.746 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.01283/0.3487, allocations: 4.551 MB / 466.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.801e-05/0.3488, allocations: 1.281 kB / 466.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.3491, allocations: 144.5 kB / 466.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.777e-05/0.3491, allocations: 7.906 kB / 466.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.3493, allocations: 67.2 kB / 466.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.638e-05/0.3494, allocations: 52.3 kB / 466.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.3494, allocations: 2.75 kB / 466.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01403/0.3634, allocations: 7.536 MB / 474.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.354e-05/0.3635, allocations: 3.938 kB / 474.4 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.3636, allocations: 59.67 kB / 474.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00963/0.3733, allocations: 3.277 MB / 477.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3733, allocations: 4 kB / 477.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3733, allocations: 0 / 477.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3733, allocations: 0 / 477.8 MB, free: 6.039 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001454/0.3748, allocations: 0.734 MB / 478.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3749, allocations: 8.031 kB / 478.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.326e-05/0.3749, allocations: 46.55 kB / 478.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.375, allocations: 19.84 kB / 478.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.3752, allocations: 174.9 kB / 478.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3752, allocations: 8 kB / 478.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.3752, allocations: 4 kB / 478.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.3754, allocations: 182.6 kB / 478.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3755, allocations: 0 / 478.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.3755, allocations: 4 kB / 479 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.3755, allocations: 7.984 kB / 479 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.3758, allocations: 244.1 kB / 479.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002666/0.376, allocations: 294.6 kB / 479.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.3763, allocations: 222.8 kB / 479.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.3765, allocations: 197.1 kB / 479.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01056/0.387, allocations: 4.259 MB / 484.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.3871, allocations: 30.56 kB / 484.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 3.928e-06/0.3871, allocations: 3.984 kB / 484.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.000617/0.3877, allocations: 498 kB / 484.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.3878, allocations: 51.41 kB / 484.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.61e-05/0.3879, allocations: 101.8 kB / 484.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.3879, allocations: 29.7 kB / 484.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.528e-05/0.3879, allocations: 88.8 kB / 484.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.603e-05/0.388, allocations: 126.8 kB / 485.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-05/0.3881, allocations: 45.66 kB / 485.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3882, allocations: 326.8 kB / 485.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.3883, allocations: 116 kB / 485.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.3885, allocations: 145.7 kB / 485.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.3888, allocations: 284 kB / 486 MB, free: 13.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3888, allocations: 0 / 486 MB, free: 13.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003697/0.3892, allocations: 326.8 kB / 486.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3892, allocations: 4 kB / 486.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.3892, allocations: 0 / 486.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.3893, allocations: 4 kB / 486.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.3894, allocations: 19.98 kB / 486.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3894, allocations: 0 / 486.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.338e-05/0.3895, allocations: 23.78 kB / 486.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.3895, allocations: 16.02 kB / 486.3 MB, free: 12.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.622e-05/0.3896, allocations: 117.8 kB / 486.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.3897, allocations: 15.84 kB / 486.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005093/0.3902, allocations: 372.2 kB / 486.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/0.3902, allocations: 7.984 kB / 486.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3902, allocations: 4 kB / 486.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3902, allocations: 0 / 486.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002686/0.3905, allocations: 293.9 kB / 487.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3905, allocations: 4 kB / 487.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.753e-05/0.3906, allocations: 27.92 kB / 487.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3906, allocations: 4 kB / 487.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.3906, allocations: 0 / 487.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3906, allocations: 0 / 487.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3906, allocations: 3.938 kB / 487.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000417/0.3911, allocations: 429 kB / 487.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.944e-05/0.3911, allocations: 112.9 kB / 487.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.3912, allocations: 8 kB / 487.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.407e-05/0.3913, allocations: 0 / 487.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.102e-05/0.3913, allocations: 7.984 kB / 487.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.3913, allocations: 8 kB / 487.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.484e-05/0.3913, allocations: 79.28 kB / 487.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3913, allocations: 0 / 487.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001708/0.3931, allocations: 0.6309 MB / 488.4 MB, free: 10.45 MB / 366.1 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003331/0.3964, allocations: 1.872 MB / 490.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004011/0.3968, allocations: 349.4 kB / 490.7 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3968, allocations: 0 / 490.7 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.397, allocations: 205.7 kB / 490.9 MB, free: 7.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005495/0.3976, allocations: 72.95 kB / 490.9 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.399, allocations: 0.6472 MB / 491.6 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.3992, allocations: 0.717 MB / 492.3 MB, free: 6.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.976e-05/0.3993, allocations: 16.36 kB / 492.3 MB, free: 6.469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.219e-05/0.3994, allocations: 39.42 kB / 492.3 MB, free: 6.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3994, allocations: 0 / 492.3 MB, free: 6.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04986/0.4493, allocations: 27.19 MB / 0.5074 GB, free: 11.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.022/9.471, allocations: 7.938 kB / 0.5074 GB, free: 11.23 MB / 398.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.idealGasLimit.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.idealGasLimit.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.idealGasLimit.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.idealGasLimit.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.idealGasLimit_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 HelmholtzMedia_HelmholtzMedia_Examples_Validation_idealGasLimit.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.idealGasLimit.pipe 2>&1)