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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 109.1 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001913/0.001913, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.411/1.411, allocations: 207.6 MB / 229.8 MB, free: 11.42 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.05104/0.05104, allocations: 9.144 MB / 290.8 MB, free: 13.93 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.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.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: 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.003129/0.003129, allocations: 70.39 kB / 405.8 MB, free: 47.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.09338, allocations: 50.72 MB / 456.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.02181/0.1152, allocations: 12.88 MB / 469.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.1259, allocations: 8.595 MB / 478 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.488e-05/0.126, allocations: 0 / 478 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.1262, allocations: 47.72 kB / 478.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004499/0.1307, allocations: 1.892 MB / 480 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00555/0.1362, allocations: 2.269 MB / 482.2 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000177/0.1364, allocations: 123.2 kB / 482.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.1364, allocations: 4 kB / 482.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.43e-05/0.1365, allocations: 43.84 kB / 482.4 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.528e-05/0.1366, allocations: 51.72 kB / 482.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.1366, allocations: 4 kB / 482.5 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01202/0.1486, allocations: 6.93 MB / 489.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.759e-05/0.1486, allocations: 19.91 kB / 489.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.01e-05/0.1487, allocations: 47.73 kB / 489.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006451/0.1552, allocations: 3.769 MB / 493.2 MB, free: 9.449 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1552, allocations: 4 kB / 493.2 MB, free: 9.445 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1552, allocations: 0 / 493.2 MB, free: 9.445 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.1552, allocations: 4 kB / 493.2 MB, free: 9.441 MB / 366.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.002192/0.1574, allocations: 0.8978 MB / 494.1 MB, free: 8.492 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1574, allocations: 8.031 kB / 494.1 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.344e-05/0.1574, allocations: 50.67 kB / 494.2 MB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003408/0.1578, allocations: 44.8 kB / 494.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.1581, allocations: 204.3 kB / 494.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.1581, allocations: 16.31 kB / 494.5 MB, free: 8.129 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.1581, allocations: 15.95 kB / 494.5 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008882/0.159, allocations: 263.1 kB / 494.7 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.159, allocations: 0 / 494.7 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.159, allocations: 7.938 kB / 494.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.159, allocations: 0 / 494.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007851/0.1598, allocations: 211.8 kB / 494.9 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008567/0.1607, allocations: 0.674 MB / 495.6 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008932/0.1616, allocations: 232.9 kB / 495.8 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.109e-05/0.1617, allocations: 49.73 kB / 495.9 MB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3065/0.4681, allocations: 64.23 MB / 0.547 GB, free: 79.01 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.4681, allocations: 35.5 kB / 0.547 GB, free: 78.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.964e-06/0.4681, allocations: 0 / 0.547 GB, free: 78.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001607/0.4697, allocations: 373.1 kB / 0.5474 GB, free: 78.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.523e-05/0.4698, allocations: 78.52 kB / 0.5475 GB, free: 78.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.36e-05/0.4699, allocations: 134.8 kB / 0.5476 GB, free: 78.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.4699, allocations: 26.77 kB / 0.5476 GB, free: 78.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.266e-05/0.4699, allocations: 96.28 kB / 0.5477 GB, free: 78.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.47, allocations: 55.23 kB / 0.5478 GB, free: 78.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.301e-05/0.47, allocations: 58.89 kB / 0.5478 GB, free: 78.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.767e-05/0.4701, allocations: 325 kB / 0.5481 GB, free: 78.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.4702, allocations: 55.48 kB / 0.5482 GB, free: 78.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.4704, allocations: 89.78 kB / 0.5483 GB, free: 78.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.4706, allocations: 151.5 kB / 0.5484 GB, free: 78.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4707, allocations: 0 / 0.5484 GB, free: 78.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004503/0.4711, allocations: 219.6 kB / 0.5486 GB, free: 78 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.4711, allocations: 6.062 kB / 0.5486 GB, free: 78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4711, allocations: 0 / 0.5486 GB, free: 78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.4711, allocations: 3 kB / 0.5486 GB, free: 78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.4714, allocations: 58.36 kB / 0.5487 GB, free: 77.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.4714, allocations: 5.969 kB / 0.5487 GB, free: 77.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.4715, allocations: 10.34 kB / 0.5487 GB, free: 77.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.4715, allocations: 17.45 kB / 0.5487 GB, free: 77.98 MB / 414.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 7.734e-05/0.4716, allocations: 127.3 kB / 0.5488 GB, free: 77.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/0.4717, allocations: 9.234 kB / 0.5488 GB, free: 77.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/0.4734, allocations: 2.105 MB / 0.5509 GB, free: 76.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-06/0.4734, allocations: 11.23 kB / 0.5509 GB, free: 76.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4734, allocations: 4 kB / 0.5509 GB, free: 76.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.4734, allocations: 5.125 kB / 0.5509 GB, free: 76.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000801/0.4742, allocations: 1.053 MB / 0.5519 GB, free: 75.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4742, allocations: 0 / 0.5519 GB, free: 75.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.4744, allocations: 35.48 kB / 0.552 GB, free: 75.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.4744, allocations: 0 / 0.552 GB, free: 75.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.4744, allocations: 3.969 kB / 0.552 GB, free: 75.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4744, allocations: 0 / 0.552 GB, free: 75.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4745, allocations: 0.875 kB / 0.552 GB, free: 75.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005222/0.475, allocations: 0.6578 MB / 0.5526 GB, free: 75.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.205e-05/0.475, allocations: 99.83 kB / 0.5527 GB, free: 75.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.475, allocations: 3.969 kB / 0.5527 GB, free: 75.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.4752, allocations: 7.984 kB / 0.5527 GB, free: 75.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.4752, allocations: 3.969 kB / 0.5527 GB, free: 75.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.4752, allocations: 7.891 kB / 0.5527 GB, free: 75.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.264e-05/0.4753, allocations: 103.1 kB / 0.5528 GB, free: 75.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4753, allocations: 0 / 0.5528 GB, free: 75.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002096/0.4774, allocations: 0.9203 MB / 0.5537 GB, free: 75.12 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.003499/0.4809, allocations: 2.18 MB / 0.5559 GB, free: 73.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003577/0.4812, allocations: 205.9 kB / 0.5561 GB, free: 73.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.4812, allocations: 0 / 0.5561 GB, free: 73.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.4814, allocations: 126.8 kB / 0.5562 GB, free: 73.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.4819, allocations: 66.2 kB / 0.5562 GB, free: 73.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.4846, allocations: 2.613 MB / 0.5588 GB, free: 71.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.4848, allocations: 0.7328 MB / 0.5595 GB, free: 70.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003142/0.4851, allocations: 380 kB / 0.5599 GB, free: 70.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.4852, allocations: 71.39 kB / 0.5599 GB, free: 70.23 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4852, allocations: 4 kB / 0.5599 GB, free: 70.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0595/0.5447, allocations: 36.36 MB / 0.5955 GB, free: 33.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.74, allocations: 15.83 kB / 0.5955 GB, free: 33.88 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.343576898798347] Failed to read output from testmodel.py, exit status != 0: 10.835586227942258 10.854012488 10.695177406 Calling exit ...