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.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: translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008146/0.0008146, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009876/0.0009875, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.4 MB / 222.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04303/0.04303, allocations: 9.075 MB / 279.5 MB, free: 12.11 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.0006796/0.0006797, allocations: 16 kB / 339.1 MB, free: 25.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08615/0.08684, allocations: 49.19 MB / 388.3 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01692/0.1038, allocations: 16.1 MB / 404.4 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.1183, allocations: 15.84 MB / 420.3 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.1185, allocations: 0 / 420.3 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006382/0.1191, allocations: 231 kB / 420.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01304/0.1322, allocations: 5.189 MB / 425.7 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.1336, allocations: 441.8 kB / 426.1 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002193/0.1338, allocations: 195 kB / 426.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.444e-05/0.1339, allocations: 9.391 kB / 426.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.1341, allocations: 83.59 kB / 426.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.1342, allocations: 55.78 kB / 426.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.1343, allocations: 7.938 kB / 426.4 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1782/0.3125, allocations: 8.585 MB / 435 MB, free: 19.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.296e-05/0.3126, allocations: 16.56 kB / 435.1 MB, free: 19.83 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.768e-05/0.3126, allocations: 46.61 kB / 435.1 MB, free: 19.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00501/0.3177, allocations: 2.4 MB / 437.5 MB, free: 19.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3177, allocations: 1.656 kB / 437.5 MB, free: 19.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3177, allocations: 1.125 kB / 437.5 MB, free: 19.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.3177, allocations: 0 / 437.5 MB, free: 19.71 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.002187/0.3199, allocations: 0.8694 MB / 438.4 MB, free: 19.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.32, allocations: 11.69 kB / 438.4 MB, free: 19.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.3201, allocations: 30.09 kB / 438.4 MB, free: 19.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.3203, allocations: 192.5 kB / 438.6 MB, free: 18.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.3203, allocations: 4.031 kB / 438.6 MB, free: 18.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.631e-05/0.3204, allocations: 7.625 kB / 438.6 MB, free: 18.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.3206, allocations: 134.4 kB / 438.7 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.3206, allocations: 4.734 kB / 438.7 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.3206, allocations: 5.609 kB / 438.7 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.3206, allocations: 2 kB / 438.8 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001427/0.3208, allocations: 95.47 kB / 438.8 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005561/0.3213, allocations: 0.5771 MB / 439.4 MB, free: 18.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.3216, allocations: 123.3 kB / 439.5 MB, free: 18.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.3217, allocations: 88.92 kB / 439.6 MB, free: 18.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04849/0.3702, allocations: 32.34 MB / 472 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.3703, allocations: 38.5 kB / 472 MB, free: 4.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.3703, allocations: 3.219 kB / 472 MB, free: 4.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006149/0.3709, allocations: 231.9 kB / 472.2 MB, free: 4.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001552/0.3711, allocations: 85.33 kB / 472.3 MB, free: 19.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.03e-05/0.3712, allocations: 121.7 kB / 472.4 MB, free: 19.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3712, allocations: 25.7 kB / 472.5 MB, free: 19.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.3713, allocations: 92.38 kB / 472.5 MB, free: 19.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.703e-05/0.3713, allocations: 84.73 kB / 472.6 MB, free: 19.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-06/0.3714, allocations: 3.625 kB / 472.6 MB, free: 19.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3715, allocations: 322.1 kB / 473 MB, free: 19.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.046e-05/0.3715, allocations: 42.89 kB / 473 MB, free: 19.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.663e-05/0.3716, allocations: 68.16 kB / 473.1 MB, free: 19.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.259e-05/0.3717, allocations: 48.34 kB / 473.1 MB, free: 19.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3717, allocations: 0 / 473.1 MB, free: 19.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002275/0.3719, allocations: 170.1 kB / 473.3 MB, free: 19.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.372, allocations: 8.156 kB / 473.3 MB, free: 19.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.372, allocations: 1.875 kB / 473.3 MB, free: 19.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.372, allocations: 0 / 473.3 MB, free: 19.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.005e-05/0.3721, allocations: 24.08 kB / 473.3 MB, free: 19.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3721, allocations: 7.188 kB / 473.3 MB, free: 19.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.768e-05/0.3722, allocations: 9.469 kB / 473.3 MB, free: 19.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.3722, allocations: 4.656 kB / 473.3 MB, free: 19.28 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.3723, allocations: 115.7 kB / 473.4 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.007e-05/0.3724, allocations: 17.17 kB / 473.5 MB, free: 19.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00038/0.3728, allocations: 310.1 kB / 473.8 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002248/0.373, allocations: 237 kB / 474 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.373, allocations: 0 / 474 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.373, allocations: 2.719 kB / 474 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000862/0.3739, allocations: 0.7625 MB / 474.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3739, allocations: 3.469 kB / 474.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001451/0.3741, allocations: 38.08 kB / 474.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.309e-06/0.3741, allocations: 3.844 kB / 474.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.3741, allocations: 11.3 kB / 474.8 MB, free: 18.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3741, allocations: 0 / 474.8 MB, free: 18.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3741, allocations: 1.641 kB / 474.8 MB, free: 18.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004801/0.3746, allocations: 0.527 MB / 475.3 MB, free: 18.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.3e-05/0.3747, allocations: 92.52 kB / 475.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/0.3747, allocations: 8.031 kB / 475.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.3749, allocations: 6.094 kB / 475.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/0.3749, allocations: 22.06 kB / 475.5 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.3749, allocations: 8.406 kB / 475.5 MB, free: 18.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.839e-05/0.375, allocations: 87.78 kB / 475.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.375, allocations: 0 / 475.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002964/0.3779, allocations: 0.9392 MB / 476.5 MB, free: 17.86 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005932/0.3839, allocations: 1.459 MB / 478 MB, free: 17.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004484/0.3844, allocations: 243.7 kB / 478.2 MB, free: 17.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3844, allocations: 0 / 478.2 MB, free: 17.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.3845, allocations: 130.1 kB / 478.3 MB, free: 17.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009229/0.3855, allocations: 146.1 kB / 478.5 MB, free: 17.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007571/0.3862, allocations: 0.5659 MB / 479 MB, free: 16.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.3865, allocations: 0.7323 MB / 479.8 MB, free: 16.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.3867, allocations: 54.12 kB / 479.8 MB, free: 16.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.261e-05/0.3868, allocations: 28.94 kB / 479.8 MB, free: 16.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3868, allocations: 0 / 479.8 MB, free: 16.09 MB / 350.1 MB Notification: Performance of Templates: time 0.03882/0.4256, allocations: 27.52 MB / 0.4955 GB, free: 4.785 MB / 366.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.makefile Environment - environmentSimulation: (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1) Environment - environmentSimulation: