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.0009116/0.0009115, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001085/0.001085, allocations: 177.3 kB / 15.95 MB, free: 216 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.373/1.373, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04886/0.04886, allocations: 9.068 MB / 279.4 MB, free: 12.27 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.0005346/0.0005346, allocations: 16.22 kB / 339.1 MB, free: 26.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08102/0.08156, allocations: 49.19 MB / 388.3 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01786/0.09945, allocations: 14.54 MB / 402.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.1129, allocations: 13.27 MB / 416.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.1131, allocations: 4 kB / 416.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000638/0.1138, allocations: 243.2 kB / 416.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008298/0.1221, allocations: 3.372 MB / 419.7 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006121/0.1282, allocations: 2.289 MB / 422 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.1284, allocations: 139.7 kB / 422.1 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.909e-05/0.1285, allocations: 9.406 kB / 422.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.1287, allocations: 91.69 kB / 422.2 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.1288, allocations: 55.83 kB / 422.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.1289, allocations: 7.938 kB / 422.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1862/0.3151, allocations: 9.579 MB / 431.9 MB, free: 19.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.398e-05/0.3152, allocations: 15.61 kB / 431.9 MB, free: 19.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.737e-05/0.3153, allocations: 47.52 kB / 431.9 MB, free: 19.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00627/0.3216, allocations: 2.269 MB / 434.2 MB, free: 19 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3216, allocations: 0 / 434.2 MB, free: 19 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3216, allocations: 0.7969 kB / 434.2 MB, free: 19 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.3216, allocations: 1.062 kB / 434.2 MB, free: 19 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.003103/0.3247, allocations: 0.8612 MB / 435.1 MB, free: 18.38 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3248, allocations: 9.547 kB / 435.1 MB, free: 18.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.325, allocations: 27.53 kB / 435.1 MB, free: 18.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.3252, allocations: 195.2 kB / 435.3 MB, free: 18.17 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3252, allocations: 6.156 kB / 435.3 MB, free: 18.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.3253, allocations: 5.5 kB / 435.3 MB, free: 18.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.3255, allocations: 131.1 kB / 435.4 MB, free: 18.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.3255, allocations: 0 / 435.4 MB, free: 18.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.3255, allocations: 5.328 kB / 435.4 MB, free: 18.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.3255, allocations: 7.297 kB / 435.4 MB, free: 18.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3257, allocations: 94.56 kB / 435.5 MB, free: 18.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005747/0.3263, allocations: 0.5849 MB / 436.1 MB, free: 17.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.3265, allocations: 129.1 kB / 436.2 MB, free: 17.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05626/0.3828, allocations: 32.45 MB / 468.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.3828, allocations: 37.59 kB / 468.7 MB, free: 5.328 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.986e-06/0.3829, allocations: 0 / 468.7 MB, free: 5.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000856/0.3837, allocations: 393.7 kB / 469.1 MB, free: 5.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.3838, allocations: 77.11 kB / 469.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.3839, allocations: 119 kB / 469.3 MB, free: 4.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.3839, allocations: 33.39 kB / 469.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.018e-05/0.384, allocations: 90.83 kB / 469.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.3841, allocations: 82.17 kB / 469.5 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.3841, allocations: 3.938 kB / 469.5 MB, free: 4.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3842, allocations: 321.5 kB / 469.8 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.06e-05/0.3843, allocations: 39.48 kB / 469.9 MB, free: 4.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.232e-05/0.3844, allocations: 72.81 kB / 469.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.96e-05/0.3845, allocations: 56.94 kB / 470 MB, free: 4.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3845, allocations: 0 / 470 MB, free: 4.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002551/0.3848, allocations: 168.5 kB / 470.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.3848, allocations: 6.188 kB / 470.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3848, allocations: 0 / 470.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.3848, allocations: 0 / 470.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.884e-05/0.3849, allocations: 23.61 kB / 470.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.3849, allocations: 3.25 kB / 470.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.3851, allocations: 15.97 kB / 470.2 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.3851, allocations: 4.844 kB / 470.2 MB, free: 4.273 MB / 334.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.000132/0.3852, allocations: 120 kB / 470.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.085e-05/0.3853, allocations: 18.16 kB / 470.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004558/0.3857, allocations: 300.4 kB / 470.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002424/0.386, allocations: 236.3 kB / 470.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.386, allocations: 4 kB / 470.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.386, allocations: 3.984 kB / 470.9 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.3871, allocations: 0.762 MB / 471.6 MB, free: 19.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3872, allocations: 2.562 kB / 471.6 MB, free: 19.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.3873, allocations: 37.42 kB / 471.7 MB, free: 19.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.3873, allocations: 6.984 kB / 471.7 MB, free: 19.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.3874, allocations: 7.219 kB / 471.7 MB, free: 19.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3874, allocations: 0 / 471.7 MB, free: 19.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3874, allocations: 320 / 471.7 MB, free: 19.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005002/0.3879, allocations: 0.5402 MB / 472.2 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.538e-05/0.388, allocations: 98.7 kB / 472.3 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.388, allocations: 3.75 kB / 472.3 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.3881, allocations: 10.98 kB / 472.3 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.882e-05/0.3882, allocations: 17.84 kB / 472.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.3882, allocations: 6.312 kB / 472.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.23e-05/0.3883, allocations: 100.7 kB / 472.5 MB, free: 19.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3883, allocations: 0 / 472.5 MB, free: 19.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004133/0.3924, allocations: 0.9298 MB / 473.4 MB, free: 18.84 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.007188/0.3996, allocations: 1.456 MB / 474.8 MB, free: 18.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000393/0.4, allocations: 257.2 kB / 475.1 MB, free: 18.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4, allocations: 0 / 475.1 MB, free: 18.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.4002, allocations: 117.7 kB / 475.2 MB, free: 18.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009182/0.4011, allocations: 137.4 kB / 475.3 MB, free: 18.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007663/0.4019, allocations: 0.5704 MB / 475.9 MB, free: 17.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.4022, allocations: 0.7397 MB / 476.7 MB, free: 17.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001763/0.4024, allocations: 49.44 kB / 476.7 MB, free: 17.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.347e-05/0.4025, allocations: 30.16 kB / 476.7 MB, free: 17.06 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4025, allocations: 0 / 476.7 MB, free: 17.06 MB / 350.1 MB Notification: Performance of Templates: time 0.04276/0.4452, allocations: 27.48 MB / 0.4924 GB, free: 6.613 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: