Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 110.1 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 215.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 207.6 MB / 229.8 MB, free: 11.4 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05332/0.05332, allocations: 9.154 MB / 290.8 MB, free: 13.89 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 72.58 kB / 405.9 MB, free: 47.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07822/0.0805, allocations: 50.72 MB / 456.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.0234/0.1039, allocations: 17.49 MB / 474.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01895/0.1229, allocations: 16.95 MB / 491 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.123, allocations: 4 kB / 491 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007607/0.1238, allocations: 315.2 kB / 491.4 MB, free: 11.3 MB / 366.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.01798/0.1417, allocations: 6.648 MB / 498 MB, free: 4.641 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001621/0.1434, allocations: 0.6183 MB / 498.6 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002707/0.1436, allocations: 203 kB / 498.8 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.772e-05/0.1437, allocations: 9.125 kB / 498.8 MB, free: 3.812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.1439, allocations: 91.62 kB / 498.9 MB, free: 3.723 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.144, allocations: 55.72 kB / 499 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.144, allocations: 4 kB / 499 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01974/0.1637, allocations: 10.64 MB / 0.4977 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.917e-05/0.1638, allocations: 15.92 kB / 0.4977 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.1639, allocations: 51.75 kB / 0.4977 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.1781, allocations: 4.142 MB / 0.5018 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1781, allocations: 4 kB / 0.5018 GB, free: 4.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1781, allocations: 3.938 kB / 0.5018 GB, free: 4.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1781, allocations: 0 / 0.5018 GB, free: 4.777 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.002672/0.1808, allocations: 0.92 MB / 0.5027 GB, free: 3.805 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.1808, allocations: 8.031 kB / 0.5027 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.025e-05/0.1809, allocations: 46.55 kB / 0.5027 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.1811, allocations: 31.83 kB / 0.5028 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.1814, allocations: 202.9 kB / 0.503 GB, free: 3.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.1814, allocations: 4 kB / 0.503 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.849e-05/0.1814, allocations: 8 kB / 0.503 GB, free: 3.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.1816, allocations: 131.2 kB / 0.5031 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1816, allocations: 4 kB / 0.5031 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1816, allocations: 7.938 kB / 0.5031 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.1817, allocations: 7.984 kB / 0.5031 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.1818, allocations: 91.95 kB / 0.5032 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007696/0.1826, allocations: 0.5776 MB / 0.5038 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/0.1828, allocations: 117.1 kB / 0.5039 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.183, allocations: 57.77 kB / 0.5039 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2786/0.4616, allocations: 33.17 MB / 0.5363 GB, free: 85.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.4616, allocations: 39.16 kB / 0.5364 GB, free: 85.72 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.495e-06/0.4616, allocations: 0 / 0.5364 GB, free: 85.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007001/0.4623, allocations: 229 kB / 0.5366 GB, free: 85.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.4624, allocations: 80.41 kB / 0.5367 GB, free: 85.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.4625, allocations: 124.5 kB / 0.5368 GB, free: 85.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.4625, allocations: 26.86 kB / 0.5368 GB, free: 85.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.4625, allocations: 91.12 kB / 0.5369 GB, free: 85.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.031e-05/0.4626, allocations: 80.89 kB / 0.537 GB, free: 85.35 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.476e-05/0.4627, allocations: 36.83 kB / 0.537 GB, free: 85.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.94e-05/0.4627, allocations: 326.6 kB / 0.5373 GB, free: 85.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.476e-05/0.4628, allocations: 45.61 kB / 0.5374 GB, free: 85.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.463, allocations: 69.58 kB / 0.5374 GB, free: 85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.4631, allocations: 124 kB / 0.5375 GB, free: 84.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.4631, allocations: 0 / 0.5375 GB, free: 84.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002582/0.4634, allocations: 171.6 kB / 0.5377 GB, free: 84.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.4634, allocations: 6.234 kB / 0.5377 GB, free: 84.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.4634, allocations: 1.688 kB / 0.5377 GB, free: 84.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.4635, allocations: 0 / 0.5377 GB, free: 84.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.541e-05/0.4635, allocations: 18.12 kB / 0.5377 GB, free: 84.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.4636, allocations: 3 kB / 0.5377 GB, free: 84.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.815e-05/0.4636, allocations: 16.53 kB / 0.5377 GB, free: 84.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.4636, allocations: 4.875 kB / 0.5378 GB, free: 84.95 MB / 414.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: 2 (state_p.phase,state_h.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 0.0001074/0.4637, allocations: 125.6 kB / 0.5379 GB, free: 84.83 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.4638, allocations: 13.66 kB / 0.5379 GB, free: 84.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005341/0.4643, allocations: 309.6 kB / 0.5382 GB, free: 84.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003223/0.4647, allocations: 238.7 kB / 0.5384 GB, free: 84.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4647, allocations: 1.094 kB / 0.5384 GB, free: 84.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.4647, allocations: 6.766 kB / 0.5384 GB, free: 84.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008734/0.4656, allocations: 0.7563 MB / 0.5392 GB, free: 84.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.4656, allocations: 1.781 kB / 0.5392 GB, free: 84.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.4657, allocations: 41.38 kB / 0.5392 GB, free: 84.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.706e-06/0.4657, allocations: 1.438 kB / 0.5392 GB, free: 84.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.4657, allocations: 7.422 kB / 0.5392 GB, free: 84.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.4657, allocations: 2.859 kB / 0.5392 GB, free: 84.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4657, allocations: 0 / 0.5392 GB, free: 84.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005261/0.4663, allocations: 0.5232 MB / 0.5397 GB, free: 83.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.022e-05/0.4663, allocations: 99.38 kB / 0.5398 GB, free: 83.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.4663, allocations: 5.375 kB / 0.5398 GB, free: 83.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.4665, allocations: 5.375 kB / 0.5398 GB, free: 83.85 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/0.4665, allocations: 20.84 kB / 0.5398 GB, free: 83.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.4665, allocations: 8.781 kB / 0.5399 GB, free: 83.85 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.568e-05/0.4666, allocations: 91.06 kB / 0.5399 GB, free: 83.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4666, allocations: 0 / 0.5399 GB, free: 83.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002723/0.4693, allocations: 0.9523 MB / 0.5409 GB, free: 83.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_h_int,d_p_int) * Number of discrete variables: 4 (state_h.phase,$cse2.phase,state_p.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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.004866/0.4742, allocations: 2.462 MB / 0.5433 GB, free: 82.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004335/0.4746, allocations: 225.1 kB / 0.5435 GB, free: 82.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4746, allocations: 0 / 0.5435 GB, free: 82.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.4747, allocations: 108 kB / 0.5436 GB, free: 82.44 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000979/0.4757, allocations: 144.5 kB / 0.5437 GB, free: 82.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/0.4791, allocations: 2.441 MB / 0.5461 GB, free: 80.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.4793, allocations: 0.7366 MB / 0.5468 GB, free: 79.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002358/0.4795, allocations: 48.47 kB / 0.5469 GB, free: 79.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.4796, allocations: 62.52 kB / 0.5469 GB, free: 79.88 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4796, allocations: 0 / 0.5469 GB, free: 79.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05903/0.5387, allocations: 30.79 MB / 0.577 GB, free: 55.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.805/10.34, allocations: 12.03 kB / 0.577 GB, free: 55.16 MB / 414.1 MB " [Timeout remaining time 650] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0004 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.002536733169109] Failed to read output from testmodel.py, exit status != 0: 10.438571102917194 10.457286325 10.275508936 Calling exit ...