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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001994/0.001994, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 194.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05107/0.05107, allocations: 9.085 MB / 278.9 MB, free: 12.18 MB / 238.1 MB 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.001576/0.001576, allocations: 71.81 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1285, allocations: 48.16 MB / 386.3 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.0188/0.1473, allocations: 12.83 MB / 399.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.1586, allocations: 8.572 MB / 407.7 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.1588, allocations: 0 / 407.7 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002926/0.1591, allocations: 47.7 kB / 407.7 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005767/0.1649, allocations: 1.88 MB / 409.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008131/0.1731, allocations: 2.257 MB / 411.9 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.1733, allocations: 123.2 kB / 412 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.148e-05/0.1734, allocations: 4 kB / 412 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.762e-05/0.1735, allocations: 39.86 kB / 412 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.1736, allocations: 59.7 kB / 412.1 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.1736, allocations: 4 kB / 412.1 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01551/0.1891, allocations: 6.77 MB / 418.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.901e-05/0.1892, allocations: 19.86 kB / 418.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.1894, allocations: 39.81 kB / 418.9 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01131/0.2007, allocations: 3.786 MB / 422.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.2007, allocations: 4 kB / 422.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.801e-06/0.2007, allocations: 0 / 422.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.2008, allocations: 3.938 kB / 422.7 MB, free: 4.574 MB / 318.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.00321/0.204, allocations: 0.8736 MB / 423.6 MB, free: 3.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.395e-05/0.2041, allocations: 12.03 kB / 423.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.135e-05/0.2041, allocations: 42.75 kB / 423.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003862/0.2045, allocations: 44.8 kB / 423.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.2048, allocations: 200.2 kB / 423.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.2049, allocations: 12.31 kB / 423.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/0.2049, allocations: 12 kB / 423.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009624/0.2059, allocations: 259.1 kB / 424.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2059, allocations: 0 / 424.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.2059, allocations: 4 kB / 424.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.2059, allocations: 8 kB / 424.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008141/0.2068, allocations: 219.7 kB / 424.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.2079, allocations: 0.6623 MB / 425.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009716/0.2089, allocations: 252.9 kB / 425.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.701e-05/0.209, allocations: 53.7 kB / 425.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3511/0.5601, allocations: 63.95 MB / 489.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.377e-05/0.5602, allocations: 32.81 kB / 489.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 3.277e-06/0.5602, allocations: 4 kB / 489.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001809/0.562, allocations: 372.5 kB / 489.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.5621, allocations: 81.11 kB / 489.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.5622, allocations: 129.5 kB / 489.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.5623, allocations: 29.7 kB / 490 MB, free: 1.441 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.808e-05/0.5623, allocations: 100.6 kB / 490.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.81e-05/0.5624, allocations: 47.12 kB / 490.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.5625, allocations: 61.67 kB / 490.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5627, allocations: 322.8 kB / 490.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.5628, allocations: 55.95 kB / 490.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.563, allocations: 88.05 kB / 490.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.5633, allocations: 151.7 kB / 490.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.5633, allocations: 0.8125 kB / 490.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004772/0.5638, allocations: 215.2 kB / 491 MB, free: 408 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.5638, allocations: 8 kB / 491 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.5638, allocations: 0 / 491 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.5638, allocations: 4 kB / 491 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.5641, allocations: 51.95 kB / 491 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.5641, allocations: 4 kB / 491 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.5642, allocations: 16.22 kB / 491.1 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.152e-05/0.5642, allocations: 15.98 kB / 491.1 MB, free: 312 kB / 334.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.0001464/0.5644, allocations: 123.7 kB / 491.2 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.307e-05/0.5645, allocations: 11.84 kB / 491.2 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002227/0.5667, allocations: 2.113 MB / 493.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-05/0.5668, allocations: 7.984 kB / 493.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.5668, allocations: 4 kB / 493.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.5668, allocations: 0 / 493.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.5679, allocations: 1.046 MB / 494.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.269e-06/0.5679, allocations: 7.75 kB / 494.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002231/0.5681, allocations: 35.89 kB / 494.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.5682, allocations: 6.625 kB / 494.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.5682, allocations: 0 / 494.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.5682, allocations: 8.016 kB / 494.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.5682, allocations: 3.984 kB / 494.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008147/0.569, allocations: 0.6415 MB / 495.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.331e-05/0.5691, allocations: 108.8 kB / 495.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.5692, allocations: 0 / 495.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.5693, allocations: 4 kB / 495.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.531e-05/0.5694, allocations: 19.58 kB / 495.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.5694, allocations: 8 kB / 495.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.217e-05/0.5695, allocations: 96.02 kB / 495.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5695, allocations: 0 / 495.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003148/0.5726, allocations: 0.9126 MB / 496.2 MB, free: 11.1 MB / 350.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.005104/0.5777, allocations: 2.169 MB / 498.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006867/0.5784, allocations: 223.2 kB / 498.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.5785, allocations: 0 / 498.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.5788, allocations: 159.9 kB / 498.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007994/0.5796, allocations: 68.8 kB / 498.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004544/0.5841, allocations: 2.592 MB / 0.4897 GB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006288/0.5848, allocations: 0.7444 MB / 0.4904 GB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005398/0.5853, allocations: 368.5 kB / 0.4907 GB, free: 4.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.5855, allocations: 75.39 kB / 0.4908 GB, free: 4.68 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5855, allocations: 4 kB / 0.4908 GB, free: 4.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08675/0.6723, allocations: 36.42 MB / 0.5264 GB, free: 232 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.44, allocations: 8 kB / 0.5264 GB, free: 224 kB / 382.1 MB (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 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)