Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.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.001442/0.001442, allocations: 116.8 kB / 17.17 MB, free: 6 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.001591/0.001591, allocations: 214.3 kB / 20.13 MB, free: 3.055 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.423/1.423, allocations: 207.6 MB / 230.5 MB, free: 4.02 MB / 174.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.06536/0.06536, allocations: 9.141 MB / 291.5 MB, free: 7.176 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.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="cs",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.002077/0.002077, allocations: 74.09 kB / 406.6 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2565, allocations: 50.71 MB / 457.3 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01533/0.2718, allocations: 12.88 MB / 470.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.2819, allocations: 8.599 MB / 478.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.039e-05/0.282, allocations: 0 / 478.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.2822, allocations: 47.31 kB / 478.8 MB, free: 2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005042/0.2872, allocations: 1.881 MB / 480.7 MB, free: 420 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006248/0.2934, allocations: 2.269 MB / 483 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001938/0.2936, allocations: 127.1 kB / 483.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.243e-05/0.2937, allocations: 4 kB / 483.1 MB, free: 14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.647e-05/0.2938, allocations: 47.78 kB / 483.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.2939, allocations: 55.78 kB / 483.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.2939, allocations: 0 / 483.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01295/0.3068, allocations: 6.926 MB / 490.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.157e-05/0.3069, allocations: 23.86 kB / 490.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.671e-05/0.3069, allocations: 51.78 kB / 490.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008207/0.3151, allocations: 3.781 MB / 494 MB, free: 3.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3151, allocations: 0 / 494 MB, free: 3.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3151, allocations: 0 / 494 MB, free: 3.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.3152, allocations: 0 / 494 MB, free: 3.105 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.00268/0.3178, allocations: 0.8939 MB / 494.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3179, allocations: 8.031 kB / 494.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.998e-05/0.3179, allocations: 8.375 kB / 494.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.302e-05/0.3179, allocations: 46.73 kB / 495 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003572/0.3183, allocations: 44.81 kB / 495 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.3186, allocations: 208.2 kB / 495.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.3186, allocations: 7.938 kB / 495.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.3186, allocations: 15.95 kB / 495.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008674/0.3195, allocations: 259.2 kB / 495.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3195, allocations: 0 / 495.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.3195, allocations: 4 kB / 495.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3195, allocations: 4 kB / 495.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007759/0.3203, allocations: 215.7 kB / 495.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007835/0.3211, allocations: 0.6663 MB / 496.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008987/0.322, allocations: 233 kB / 496.6 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.281e-05/0.3221, allocations: 57.72 kB / 496.6 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.131/0.453, allocations: 64.22 MB / 0.5477 GB, free: 8.352 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.988e-05/0.4531, allocations: 50.44 kB / 0.5478 GB, free: 8.293 MB / 430.1 MB Notification: Performance of pre-optimization done (n=14): time 1.823e-06/0.4531, allocations: 0 / 0.5478 GB, free: 8.293 MB / 430.1 MB Notification: Performance of matching and sorting (n=14): time 0.001658/0.4548, allocations: 365.7 kB / 0.5481 GB, free: 7.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.4548, allocations: 77.11 kB / 0.5482 GB, free: 7.836 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.4549, allocations: 134.1 kB / 0.5483 GB, free: 7.695 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.455, allocations: 29.7 kB / 0.5483 GB, free: 7.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.489e-05/0.455, allocations: 100 kB / 0.5484 GB, free: 7.559 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.988e-05/0.4551, allocations: 55.52 kB / 0.5485 GB, free: 7.504 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.4552, allocations: 65.62 kB / 0.5486 GB, free: 7.434 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.4553, allocations: 318.8 kB / 0.5489 GB, free: 7.113 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.4555, allocations: 63.95 kB / 0.5489 GB, free: 7.051 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.4556, allocations: 87.3 kB / 0.549 GB, free: 6.953 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003178/0.456, allocations: 147.5 kB / 0.5491 GB, free: 6.797 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.456, allocations: 4 kB / 0.5492 GB, free: 6.793 MB / 430.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005008/0.4565, allocations: 217.4 kB / 0.5494 GB, free: 6.574 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.4565, allocations: 4 kB / 0.5494 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4565, allocations: 7.938 kB / 0.5494 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.4565, allocations: 0 / 0.5494 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000213/0.4567, allocations: 51.95 kB / 0.5494 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.4567, allocations: 0 / 0.5494 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.4568, allocations: 23.83 kB / 0.5494 GB, free: 6.488 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.866e-05/0.4569, allocations: 19.98 kB / 0.5495 GB, free: 6.469 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001372/0.457, allocations: 121.8 kB / 0.5496 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.659e-05/0.4571, allocations: 15.89 kB / 0.5496 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002084/0.4592, allocations: 2.104 MB / 0.5516 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.4592, allocations: 7.984 kB / 0.5517 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4592, allocations: 4 kB / 0.5517 GB, free: 4.199 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4592, allocations: 0 / 0.5517 GB, free: 4.199 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.4603, allocations: 1.044 MB / 0.5527 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.4603, allocations: 0 / 0.5527 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.4605, allocations: 43.89 kB / 0.5527 GB, free: 3.012 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.4605, allocations: 0 / 0.5527 GB, free: 3.012 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.4605, allocations: 8 kB / 0.5527 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4605, allocations: 0 / 0.5527 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4605, allocations: 0 / 0.5527 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007434/0.4613, allocations: 0.6489 MB / 0.5534 GB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.643e-05/0.4613, allocations: 108.8 kB / 0.5535 GB, free: 2.215 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.4614, allocations: 12.06 kB / 0.5535 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.4615, allocations: 0 / 0.5535 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.4615, allocations: 11.98 kB / 0.5535 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.4615, allocations: 4 kB / 0.5535 GB, free: 2.188 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.154e-05/0.4616, allocations: 103.8 kB / 0.5536 GB, free: 2.086 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4616, allocations: 0 / 0.5536 GB, free: 2.086 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002576/0.4642, allocations: 0.9123 MB / 0.5545 GB, free: 1.172 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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.004459/0.4687, allocations: 2.188 MB / 0.5566 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004349/0.4691, allocations: 215.8 kB / 0.5568 GB, free: 14.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.4691, allocations: 8.062 kB / 0.5568 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.4693, allocations: 120.4 kB / 0.5569 GB, free: 14.61 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005862/0.4699, allocations: 71.64 kB / 0.557 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003669/0.4735, allocations: 2.602 MB / 0.5596 GB, free: 11.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.4739, allocations: 0.7328 MB / 0.5603 GB, free: 11.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004752/0.4744, allocations: 372.6 kB / 0.5606 GB, free: 10.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.4745, allocations: 79.39 kB / 0.5607 GB, free: 10.64 MB / 446.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4745, allocations: 0 / 0.5607 GB, free: 10.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06552/0.5401, allocations: 36.41 MB / 0.5963 GB, free: 6.211 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.605/10.15, allocations: 1 kB / 0.5963 GB, free: 6.211 MB / 478.1 MB " [Timeout remaining time 650] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.895993868994992] Failed to read output from testmodel.py, exit status != 0: 10.292168468004093 10.464678131 10.147441411 Calling exit ...