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.001343/0.001343, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001465/0.001465, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.424/1.424, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.04932/0.04932, allocations: 9.131 MB / 321.6 MB, free: 10.24 MB / 254.1 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 67.89 kB / 446.5 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1045, allocations: 54.94 MB / 0.4897 GB, free: 9.527 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02036/0.1248, allocations: 15.86 MB / 0.5052 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2171/0.3419, allocations: 14.97 MB / 0.5198 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.669e-05/0.342, allocations: 0.6562 kB / 0.5198 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006123/0.3426, allocations: 244.7 kB / 0.5201 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01401/0.3566, allocations: 6.6 MB / 0.5265 GB, free: 6.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001588/0.3582, allocations: 0.6108 MB / 0.5271 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000209/0.3584, allocations: 204.2 kB / 0.5273 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.607e-05/0.3584, allocations: 6.844 kB / 0.5273 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.3586, allocations: 93.73 kB / 0.5274 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.3587, allocations: 59.33 kB / 0.5275 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.3587, allocations: 2.688 kB / 0.5275 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01448/0.3732, allocations: 7.459 MB / 0.5347 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.619e-05/0.3732, allocations: 12.59 kB / 0.5347 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.735e-05/0.3733, allocations: 49.22 kB / 0.5348 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008363/0.3817, allocations: 3.505 MB / 0.5382 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3817, allocations: 8.656 kB / 0.5382 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3817, allocations: 0 / 0.5382 GB, free: 4.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.3817, allocations: 3.938 kB / 0.5382 GB, free: 4.781 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.002067/0.3838, allocations: 0.8438 MB / 0.5391 GB, free: 4.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.3838, allocations: 8.812 kB / 0.5391 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.3838, allocations: 38.78 kB / 0.5391 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.384, allocations: 28.25 kB / 0.5391 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.3842, allocations: 147.6 kB / 0.5393 GB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.744e-06/0.3842, allocations: 7.281 kB / 0.5393 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.664e-05/0.3842, allocations: 9.594 kB / 0.5393 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.3844, allocations: 136.2 kB / 0.5394 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.3844, allocations: 1.125 kB / 0.5394 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.3844, allocations: 0 / 0.5394 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.3844, allocations: 6.875 kB / 0.5394 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.3845, allocations: 106 kB / 0.5395 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005171/0.3851, allocations: 447.3 kB / 0.5399 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.3853, allocations: 110.4 kB / 0.5401 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.508e-05/0.3854, allocations: 67.8 kB / 0.5401 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04487/0.4302, allocations: 10.92 MB / 0.5508 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.4303, allocations: 32.47 kB / 0.5508 GB, free: 15.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 3.336e-06/0.4303, allocations: 0.7969 kB / 0.5508 GB, free: 15.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.000658/0.4309, allocations: 235.8 kB / 0.551 GB, free: 15.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.431, allocations: 85.11 kB / 0.5511 GB, free: 15.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.4311, allocations: 119.4 kB / 0.5512 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.4311, allocations: 25.7 kB / 0.5513 GB, free: 15.1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.542e-05/0.4312, allocations: 84.58 kB / 0.5513 GB, free: 15.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.473e-05/0.4313, allocations: 88.98 kB / 0.5514 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.4313, allocations: 33.7 kB / 0.5515 GB, free: 14.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.4315, allocations: 322.8 kB / 0.5518 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.228e-05/0.4316, allocations: 47.92 kB / 0.5518 GB, free: 14.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.765e-05/0.4317, allocations: 73.56 kB / 0.5519 GB, free: 14.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.4319, allocations: 124.8 kB / 0.552 GB, free: 14.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4319, allocations: 0 / 0.552 GB, free: 14.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00027/0.4321, allocations: 173.4 kB / 0.5522 GB, free: 14.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.4321, allocations: 8 kB / 0.5522 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.4322, allocations: 0 / 0.5522 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.4322, allocations: 0 / 0.5522 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.769e-05/0.4323, allocations: 16 kB / 0.5522 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.4323, allocations: 0 / 0.5522 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.206e-05/0.4323, allocations: 17.48 kB / 0.5522 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.4324, allocations: 7.984 kB / 0.5522 GB, free: 14.09 MB / 398.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.0001015/0.4325, allocations: 117.8 kB / 0.5523 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-05/0.4325, allocations: 24.78 kB / 0.5523 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005071/0.433, allocations: 316.9 kB / 0.5527 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000311/0.4334, allocations: 247.5 kB / 0.5529 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.4334, allocations: 4 kB / 0.5529 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4334, allocations: 3.984 kB / 0.5529 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.4344, allocations: 0.7034 MB / 0.5536 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.4344, allocations: 4 kB / 0.5536 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.4346, allocations: 43.86 kB / 0.5536 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.4346, allocations: 4 kB / 0.5536 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.4346, allocations: 4 kB / 0.5536 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-05/0.4346, allocations: 10.62 kB / 0.5536 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4346, allocations: 3.984 kB / 0.5536 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00062/0.4352, allocations: 0.5395 MB / 0.5542 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.4353, allocations: 19.78 kB / 0.5542 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.4353, allocations: 11.66 kB / 0.5542 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4354, allocations: 4 kB / 0.5542 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.43e-05/0.4354, allocations: 15.97 kB / 0.5542 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.4355, allocations: 8 kB / 0.5542 GB, free: 11.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.193e-05/0.4355, allocations: 99.33 kB / 0.5543 GB, free: 11.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4355, allocations: 0 / 0.5543 GB, free: 11.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00295/0.4385, allocations: 0.9385 MB / 0.5552 GB, free: 10.92 MB / 398.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.00643/0.4449, allocations: 2.467 MB / 0.5577 GB, free: 8.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004666/0.4454, allocations: 242.8 kB / 0.5579 GB, free: 8.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4454, allocations: 0 / 0.5579 GB, free: 8.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.4455, allocations: 103.8 kB / 0.558 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009955/0.4465, allocations: 154.9 kB / 0.5581 GB, free: 8.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004259/0.4508, allocations: 2.44 MB / 0.5605 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.4509, allocations: 125 kB / 0.5606 GB, free: 5.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001494/0.4511, allocations: 34.06 kB / 0.5607 GB, free: 5.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.4512, allocations: 75.41 kB / 0.5607 GB, free: 5.324 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4512, allocations: 0 / 0.5607 GB, free: 5.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07198/0.5232, allocations: 31.81 MB / 0.5918 GB, free: 5.809 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.83, allocations: 12 kB / 0.5918 GB, free: 5.797 MB / 430.1 MB " [Timeout remaining time 647] (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 sys.exit(0), Time elapsed: 18.121291514020413] Failed to read output from testmodel.py, exit status != 0: 12.950257517863065 12.968216267 12.583197222999999 Calling exit ...