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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001694/0.001694, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04793/0.04793, allocations: 9.091 MB / 25.82 MB, free: 3.426 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 233.2 MB, free: 14.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 99.53 kB / 282.1 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 56.11 kB / 341.1 MB, free: 4.094 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2157, allocations: 48.16 MB / 389.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01338/0.2291, allocations: 17.66 MB / 406.9 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01076/0.2399, allocations: 17.23 MB / 424.1 MB, free: 3.527 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.809e-05/0.24, allocations: 0 / 424.1 MB, free: 3.527 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005968/0.2406, allocations: 265.4 kB / 424.4 MB, free: 3.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01321/0.2538, allocations: 5.468 MB / 429.8 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.2556, allocations: 481.8 kB / 430.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.2558, allocations: 207 kB / 430.5 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.928e-05/0.2559, allocations: 5.125 kB / 430.5 MB, free: 13.11 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.256, allocations: 87.53 kB / 430.6 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.2561, allocations: 63.77 kB / 430.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.2561, allocations: 4 kB / 430.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01606/0.2722, allocations: 9.658 MB / 440.3 MB, free: 3.277 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.059e-05/0.2723, allocations: 15.91 kB / 440.3 MB, free: 3.262 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.2724, allocations: 55.73 kB / 440.4 MB, free: 3.207 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.2826, allocations: 3.999 MB / 444.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2826, allocations: 4 kB / 444.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2826, allocations: 0 / 444.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.2826, allocations: 0 / 444.4 MB, free: 15.2 MB / 330.7 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.001509/0.2842, allocations: 0.8928 MB / 445.3 MB, free: 14.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.2842, allocations: 8.031 kB / 445.3 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.2844, allocations: 23.83 kB / 445.3 MB, free: 14.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001925/0.2846, allocations: 206.8 kB / 445.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.2846, allocations: 7.984 kB / 445.5 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.2846, allocations: 8 kB / 445.5 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.2848, allocations: 128.4 kB / 445.7 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2848, allocations: 3.938 kB / 445.7 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.2849, allocations: 4 kB / 445.7 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.2849, allocations: 11.92 kB / 445.7 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.285, allocations: 91.97 kB / 445.8 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.2856, allocations: 0.5737 MB / 446.4 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.2859, allocations: 125.1 kB / 446.5 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.286, allocations: 89.7 kB / 446.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0582/0.3442, allocations: 33.16 MB / 479.7 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.272e-05/0.3443, allocations: 50.48 kB / 479.8 MB, free: 6.078 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.324e-06/0.3443, allocations: 3.938 kB / 479.8 MB, free: 6.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005986/0.3449, allocations: 225.9 kB / 480 MB, free: 5.848 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.345, allocations: 81.11 kB / 480.1 MB, free: 5.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.721e-05/0.3451, allocations: 121.7 kB / 480.2 MB, free: 5.621 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.3451, allocations: 33.69 kB / 480.2 MB, free: 5.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.187e-05/0.3451, allocations: 88.58 kB / 480.3 MB, free: 5.492 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.628e-05/0.3452, allocations: 74.84 kB / 480.4 MB, free: 5.418 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.3453, allocations: 41.72 kB / 480.4 MB, free: 5.371 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3454, allocations: 322.8 kB / 480.7 MB, free: 5.047 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.166e-05/0.3455, allocations: 43.98 kB / 480.8 MB, free: 5.004 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.293e-05/0.3456, allocations: 69.62 kB / 480.9 MB, free: 4.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.3457, allocations: 125.6 kB / 481 MB, free: 4.801 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3458, allocations: 4.125 kB / 481 MB, free: 4.797 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002426/0.346, allocations: 169.6 kB / 481.1 MB, free: 4.625 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.346, allocations: 8 kB / 481.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.346, allocations: 0 / 481.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.3461, allocations: 0 / 481.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.014e-05/0.3461, allocations: 27.92 kB / 481.2 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3462, allocations: 160 / 481.2 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.426e-05/0.3462, allocations: 11.84 kB / 481.2 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.3463, allocations: 8 kB / 481.2 MB, free: 4.57 MB / 362.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.497e-05/0.3464, allocations: 117.8 kB / 481.3 MB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.395e-05/0.3464, allocations: 7.906 kB / 481.3 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004474/0.3469, allocations: 325.5 kB / 481.6 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002826/0.3472, allocations: 237.5 kB / 481.9 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3472, allocations: 0 / 481.9 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3472, allocations: 0 / 481.9 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009167/0.3481, allocations: 0.77 MB / 482.6 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3481, allocations: 4 kB / 482.6 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.3483, allocations: 39.92 kB / 482.7 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.3483, allocations: 0 / 482.7 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.3483, allocations: 8 kB / 482.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.3483, allocations: 3.984 kB / 482.7 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3484, allocations: 4 kB / 482.7 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3047/0.6531, allocations: 47.82 MB / 0.5181 GB, free: 82.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.6531, allocations: 106.6 kB / 0.5182 GB, free: 82.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.6532, allocations: 8 kB / 0.5182 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.6533, allocations: 4 kB / 0.5182 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.614e-05/0.6533, allocations: 11.98 kB / 0.5182 GB, free: 82.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.6534, allocations: 12.94 kB / 0.5182 GB, free: 82.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.417e-05/0.6534, allocations: 95.27 kB / 0.5183 GB, free: 82.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6534, allocations: 0 / 0.5183 GB, free: 82.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003595/0.657, allocations: 1.76 MB / 0.52 GB, free: 80.61 MB / 378.7 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 (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.008361/0.6654, allocations: 2.267 MB / 0.5223 GB, free: 78.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.6657, allocations: 251.4 kB / 0.5225 GB, free: 78.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.6658, allocations: 0 / 0.5225 GB, free: 78.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.6659, allocations: 127.9 kB / 0.5226 GB, free: 78.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009522/0.6668, allocations: 136.3 kB / 0.5227 GB, free: 78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008292/0.6677, allocations: 0.7582 MB / 0.5235 GB, free: 77.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001312/0.6678, allocations: 0.7486 MB / 0.5242 GB, free: 76.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.668, allocations: 45.89 kB / 0.5243 GB, free: 76.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.615e-05/0.6681, allocations: 31.44 kB / 0.5243 GB, free: 76.36 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6681, allocations: 0 / 0.5243 GB, free: 76.36 MB / 378.7 MB Notification: Performance of Templates: time 0.07771/0.7458, allocations: 68.58 MB / 0.5913 GB, free: 7.648 MB / 378.7 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.makefile (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)