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.001265/0.001265, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001369/0.001369, allocations: 212.7 kB / 22.24 MB, free: 5.258 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.38/1.38, allocations: 230.6 MB / 256 MB, free: 7.738 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.04883/0.04883, allocations: 9.15 MB / 321.6 MB, free: 10.19 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.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002234/0.002234, allocations: 75.88 kB / 446.5 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1024, allocations: 54.93 MB / 0.4897 GB, free: 9.488 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01788/0.1202, allocations: 11.85 MB / 0.5013 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.1305, allocations: 7.517 MB / 0.5086 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.117e-05/0.1306, allocations: 0 / 0.5086 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.1308, allocations: 39.75 kB / 0.5087 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004935/0.1357, allocations: 1.883 MB / 0.5105 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006262/0.142, allocations: 2.26 MB / 0.5127 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.1422, allocations: 127.2 kB / 0.5128 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.77e-05/0.1423, allocations: 0 / 0.5128 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.969e-05/0.1424, allocations: 43.8 kB / 0.5129 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.1425, allocations: 51.77 kB / 0.5129 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.853e-05/0.1425, allocations: 4 kB / 0.5129 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2182/0.3607, allocations: 6.625 MB / 0.5194 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.02e-05/0.3608, allocations: 11.94 kB / 0.5194 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.684e-05/0.3608, allocations: 45.69 kB / 0.5195 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008843/0.3697, allocations: 3.789 MB / 0.5232 GB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3697, allocations: 0 / 0.5232 GB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3697, allocations: 0 / 0.5232 GB, free: 9.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.3697, allocations: 0 / 0.5232 GB, free: 9.57 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.00422/0.3739, allocations: 0.8324 MB / 0.524 GB, free: 9.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.374, allocations: 14.22 kB / 0.524 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.452e-05/0.374, allocations: 42.97 kB / 0.524 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004218/0.3744, allocations: 41.77 kB / 0.5241 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.3746, allocations: 143.9 kB / 0.5242 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.3746, allocations: 9.781 kB / 0.5242 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.3747, allocations: 15.44 kB / 0.5242 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008336/0.3755, allocations: 258.2 kB / 0.5245 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3755, allocations: 1.125 kB / 0.5245 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.3755, allocations: 5.25 kB / 0.5245 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.3755, allocations: 1.688 kB / 0.5245 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006791/0.3762, allocations: 221 kB / 0.5247 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005198/0.3767, allocations: 427.9 kB / 0.5251 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007243/0.3774, allocations: 236.4 kB / 0.5253 GB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.995e-05/0.3775, allocations: 48.64 kB / 0.5254 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1157/0.4933, allocations: 35.09 MB / 0.5596 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/0.4933, allocations: 37.94 kB / 0.5597 GB, free: 4.512 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.424e-06/0.4933, allocations: 0 / 0.5597 GB, free: 4.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.001669/0.495, allocations: 370.8 kB / 0.56 GB, free: 4.223 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.495, allocations: 81.11 kB / 0.5601 GB, free: 4.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.4952, allocations: 129.4 kB / 0.5602 GB, free: 4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.4952, allocations: 25.7 kB / 0.5603 GB, free: 3.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.519e-05/0.4953, allocations: 95.55 kB / 0.5603 GB, free: 3.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.355e-05/0.4953, allocations: 60.45 kB / 0.5604 GB, free: 3.832 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.583e-05/0.4954, allocations: 59.05 kB / 0.5605 GB, free: 3.785 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4956, allocations: 321.5 kB / 0.5608 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.4957, allocations: 63.52 kB / 0.5608 GB, free: 3.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.4958, allocations: 82.48 kB / 0.5609 GB, free: 3.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.4961, allocations: 152.2 kB / 0.561 GB, free: 3.234 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4961, allocations: 0 / 0.561 GB, free: 3.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004612/0.4966, allocations: 217.3 kB / 0.5613 GB, free: 3.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.4966, allocations: 10.81 kB / 0.5613 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.4966, allocations: 3.938 kB / 0.5613 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.4966, allocations: 0 / 0.5613 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.4969, allocations: 62.3 kB / 0.5613 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.4969, allocations: 4 kB / 0.5613 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.497, allocations: 9.422 kB / 0.5613 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.497, allocations: 23.92 kB / 0.5614 GB, free: 2.988 MB / 398.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.0001133/0.4971, allocations: 121.8 kB / 0.5615 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.892e-05/0.4972, allocations: 12.47 kB / 0.5615 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.4993, allocations: 2.249 MB / 0.5637 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.4993, allocations: 3.984 kB / 0.5637 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.4993, allocations: 4 kB / 0.5637 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.4993, allocations: 0 / 0.5637 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.5003, allocations: 1.066 MB / 0.5647 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.5003, allocations: 0 / 0.5647 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.5005, allocations: 39.53 kB / 0.5648 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.5005, allocations: 0.5156 kB / 0.5648 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.5005, allocations: 15.92 kB / 0.5648 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.5005, allocations: 0 / 0.5648 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5005, allocations: 2.234 kB / 0.5648 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007575/0.5013, allocations: 0.645 MB / 0.5654 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.5013, allocations: 27.44 kB / 0.5654 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.927e-05/0.5014, allocations: 7.938 kB / 0.5655 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.5015, allocations: 4.516 kB / 0.5655 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.5015, allocations: 11.97 kB / 0.5655 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.5016, allocations: 4 kB / 0.5655 GB, free: 15.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.317e-05/0.5016, allocations: 103.3 kB / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5016, allocations: 0 / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004757/0.5064, allocations: 0.924 MB / 0.5665 GB, free: 14.5 MB / 414.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.009731/0.5161, allocations: 2.198 MB / 0.5686 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005378/0.5167, allocations: 211.3 kB / 0.5688 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5167, allocations: 0 / 0.5688 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002235/0.5169, allocations: 127.5 kB / 0.5689 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007024/0.5176, allocations: 70.45 kB / 0.569 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006599/0.5242, allocations: 2.628 MB / 0.5716 GB, free: 9.312 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.5243, allocations: 125.1 kB / 0.5717 GB, free: 9.168 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004931/0.5248, allocations: 378 kB / 0.5721 GB, free: 8.812 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.525, allocations: 75.41 kB / 0.5721 GB, free: 8.738 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.525, allocations: 4 kB / 0.5721 GB, free: 8.734 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08066/0.6056, allocations: 37.34 MB / 0.6086 GB, free: 3.555 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/13.03, allocations: 14.48 kB / 0.6086 GB, free: 3.543 MB / 446.1 MB " [Timeout remaining time 647] (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: 15.5537742911838] Failed to read output from testmodel.py, exit status != 0: 13.162344221025705 13.1773967 12.804686258 Calling exit ...