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.001075/0.001075, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001083/0.001084, allocations: 194.9 kB / 16.25 MB, free: 6.621 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.273/1.273, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04297/0.04297, allocations: 9.084 MB / 278.5 MB, free: 12.34 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.001255/0.001255, allocations: 64.36 kB / 337.5 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06759/0.06886, allocations: 48.17 MB / 385.7 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.0182/0.08709, allocations: 17.41 MB / 403.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0139/0.101, allocations: 16.89 MB / 420 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.034e-05/0.1012, allocations: 4 kB / 420 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006339/0.1019, allocations: 267.6 kB / 420.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01387/0.1157, allocations: 5.725 MB / 426 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.117, allocations: 0.4979 MB / 426.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.1172, allocations: 207 kB / 426.7 MB, free: 452 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.746e-05/0.1173, allocations: 5.125 kB / 426.7 MB, free: 444 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.1174, allocations: 99.47 kB / 426.8 MB, free: 344 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.142e-05/0.1175, allocations: 55.78 kB / 426.8 MB, free: 288 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.1175, allocations: 4 kB / 426.8 MB, free: 284 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1567/0.2743, allocations: 10.28 MB / 437.1 MB, free: 18.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.617e-05/0.2743, allocations: 16.97 kB / 437.1 MB, free: 18.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.2744, allocations: 60.2 kB / 437.2 MB, free: 18.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00963/0.2841, allocations: 4.145 MB / 441.3 MB, free: 18.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.2841, allocations: 0 / 441.3 MB, free: 18.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2841, allocations: 1.094 kB / 441.3 MB, free: 18.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.2842, allocations: 0.8125 kB / 441.3 MB, free: 18.47 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.001983/0.2862, allocations: 0.8882 MB / 442.2 MB, free: 17.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.2862, allocations: 12.62 kB / 442.2 MB, free: 17.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.2864, allocations: 29.83 kB / 442.3 MB, free: 17.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.2865, allocations: 195.9 kB / 442.5 MB, free: 17.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.2866, allocations: 6.844 kB / 442.5 MB, free: 17.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.2866, allocations: 11.83 kB / 442.5 MB, free: 17.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/0.2868, allocations: 126.2 kB / 442.6 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.2868, allocations: 0 / 442.6 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.2868, allocations: 3.938 kB / 442.6 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2868, allocations: 13.36 kB / 442.6 MB, free: 17.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.2869, allocations: 99.83 kB / 442.7 MB, free: 17.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005137/0.2875, allocations: 0.5695 MB / 443.3 MB, free: 16.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.2877, allocations: 126.7 kB / 443.4 MB, free: 16.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.149e-05/0.2878, allocations: 76.02 kB / 443.5 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05467/0.3425, allocations: 33.18 MB / 476.7 MB, free: 17.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.3425, allocations: 34.22 kB / 476.7 MB, free: 17.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.816e-06/0.3425, allocations: 0 / 476.7 MB, free: 17.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005948/0.3431, allocations: 225.1 kB / 476.9 MB, free: 16.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.3432, allocations: 81.11 kB / 477 MB, free: 16.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.097e-05/0.3433, allocations: 128.9 kB / 477.1 MB, free: 16.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.3433, allocations: 29.7 kB / 477.1 MB, free: 16.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.428e-05/0.3433, allocations: 90.83 kB / 477.2 MB, free: 16.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.073e-05/0.3434, allocations: 74.41 kB / 477.3 MB, free: 16.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.419e-05/0.3434, allocations: 44.45 kB / 477.4 MB, free: 16.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.3435, allocations: 318.8 kB / 477.7 MB, free: 16.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.112e-05/0.3436, allocations: 45.98 kB / 477.7 MB, free: 16.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.899e-05/0.3436, allocations: 67.09 kB / 477.8 MB, free: 16.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001273/0.3438, allocations: 124.1 kB / 477.9 MB, free: 16.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3438, allocations: 4 kB / 477.9 MB, free: 16.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001896/0.344, allocations: 168.6 kB / 478.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.344, allocations: 4 kB / 478.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.344, allocations: 3.922 kB / 478.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.344, allocations: 4 kB / 478.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.218e-05/0.3441, allocations: 25.14 kB / 478.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.3441, allocations: 0 / 478.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.603e-05/0.3442, allocations: 15.78 kB / 478.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.3442, allocations: 7.938 kB / 478.1 MB, free: 15.86 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.345e-05/0.3443, allocations: 117.7 kB / 478.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/0.3444, allocations: 7.906 kB / 478.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003547/0.3447, allocations: 316.3 kB / 478.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002131/0.345, allocations: 245 kB / 478.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.345, allocations: 4 kB / 478.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.345, allocations: 3.938 kB / 478.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006996/0.3457, allocations: 0.7511 MB / 479.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3457, allocations: 0 / 479.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/0.3458, allocations: 49.5 kB / 479.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.3459, allocations: 7.984 kB / 479.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.3459, allocations: 3.75 kB / 479.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3459, allocations: 4.938 kB / 479.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3459, allocations: 0 / 479.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000408/0.3463, allocations: 0.5264 MB / 480.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.533e-05/0.3463, allocations: 92.86 kB / 480.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.3464, allocations: 4.531 kB / 480.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.3465, allocations: 7.938 kB / 480.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.074e-05/0.3465, allocations: 19.97 kB / 480.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.3466, allocations: 16.44 kB / 480.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.683e-05/0.3466, allocations: 90.89 kB / 480.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3466, allocations: 4.062 kB / 480.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00262/0.3492, allocations: 0.9219 MB / 481.3 MB, free: 13.08 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 (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.004203/0.3535, allocations: 1.465 MB / 482.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003723/0.3538, allocations: 272.9 kB / 483 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3539, allocations: 0 / 483 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.354, allocations: 119.7 kB / 483.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008963/0.3549, allocations: 149.8 kB / 483.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008892/0.3558, allocations: 0.5306 MB / 483.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.3561, allocations: 0.7328 MB / 484.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001665/0.3563, allocations: 37.95 kB / 484.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.391e-05/0.3564, allocations: 31.44 kB / 484.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of SimCode: time 1.683e-06/0.3564, allocations: 0 / 484.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Templates: time 0.0354/0.3918, allocations: 28.02 MB / 0.5006 GB, free: 14.18 MB / 382.1 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)