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.001605/0.001605, allocations: 115.2 kB / 16.42 MB, free: 6.016 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.001763/0.001763, allocations: 191.3 kB / 17.35 MB, free: 5.629 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.316/1.316, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04702/0.04702, allocations: 9.092 MB / 279.7 MB, free: 2.969 MB / 222.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.0015/0.0015, allocations: 75.77 kB / 388.2 MB, free: 47.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07973/0.08125, allocations: 48.18 MB / 436.3 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.03034/0.1116, allocations: 17.42 MB / 453.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03029/0.142, allocations: 16.91 MB / 470.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.1422, allocations: 0 / 470.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.1433, allocations: 291.1 kB / 470.9 MB, free: 4.852 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.0254/0.1687, allocations: 6.309 MB / 477.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002109/0.1709, allocations: 0.5674 MB / 477.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000312/0.1712, allocations: 211 kB / 478 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.238e-05/0.1713, allocations: 9.109 kB / 478 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000213/0.1715, allocations: 91.59 kB / 478.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.1717, allocations: 51.77 kB / 478.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.034e-05/0.1717, allocations: 4 kB / 478.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02735/0.1991, allocations: 10.46 MB / 488.6 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.772e-05/0.1992, allocations: 11.92 kB / 488.7 MB, free: 3.113 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.1993, allocations: 47.75 kB / 488.7 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.2124, allocations: 4.14 MB / 492.8 MB, free: 14.92 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.166e-05/0.2125, allocations: 4 kB / 492.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2125, allocations: 0 / 492.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.2125, allocations: 7.938 kB / 492.8 MB, free: 14.91 MB / 382.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.002627/0.2152, allocations: 0.885 MB / 493.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.2152, allocations: 8.031 kB / 493.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003095/0.2155, allocations: 23.83 kB / 493.8 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.2158, allocations: 202.8 kB / 494 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.2159, allocations: 4 kB / 494 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.2159, allocations: 8 kB / 494 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.2162, allocations: 136.2 kB / 494.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.2162, allocations: 0 / 494.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.2162, allocations: 4 kB / 494.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.2163, allocations: 11.92 kB / 494.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.2165, allocations: 95.89 kB / 494.2 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009238/0.2174, allocations: 0.5698 MB / 494.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.2178, allocations: 133.1 kB / 494.9 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.218, allocations: 81.7 kB / 495 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08429/0.3023, allocations: 33.17 MB / 0.5158 GB, free: 5.852 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.3024, allocations: 30.56 kB / 0.5158 GB, free: 5.812 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.575e-06/0.3024, allocations: 0 / 0.5158 GB, free: 5.812 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006124/0.303, allocations: 241.5 kB / 0.5161 GB, free: 5.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.303, allocations: 85.11 kB / 0.5161 GB, free: 5.469 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.315e-05/0.3031, allocations: 121.8 kB / 0.5162 GB, free: 5.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.3032, allocations: 25.7 kB / 0.5163 GB, free: 5.309 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.3032, allocations: 84.58 kB / 0.5164 GB, free: 5.219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.07e-05/0.3033, allocations: 82.78 kB / 0.5164 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.073e-05/0.3033, allocations: 37.7 kB / 0.5165 GB, free: 5.094 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3035, allocations: 326.8 kB / 0.5168 GB, free: 4.766 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.949e-05/0.3035, allocations: 39.98 kB / 0.5168 GB, free: 4.727 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.12e-05/0.3036, allocations: 68.77 kB / 0.5169 GB, free: 4.656 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.3038, allocations: 125.9 kB / 0.517 GB, free: 4.531 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3038, allocations: 0 / 0.517 GB, free: 4.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002442/0.304, allocations: 173.4 kB / 0.5172 GB, free: 4.355 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.3041, allocations: 4 kB / 0.5172 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.3041, allocations: 7.938 kB / 0.5172 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3041, allocations: 0 / 0.5172 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.033e-05/0.3042, allocations: 19.98 kB / 0.5172 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.3042, allocations: 0 / 0.5172 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.3043, allocations: 15.84 kB / 0.5172 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.3043, allocations: 8 kB / 0.5172 GB, free: 4.301 MB / 414.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 9.009e-05/0.3044, allocations: 121.7 kB / 0.5173 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.77e-05/0.3045, allocations: 11.89 kB / 0.5174 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004271/0.3049, allocations: 309.9 kB / 0.5176 GB, free: 3.855 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3049, allocations: 0 / 0.5176 GB, free: 3.855 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.3049, allocations: 0 / 0.5176 GB, free: 3.855 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/0.305, allocations: 100.9 kB / 0.5177 GB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.305, allocations: 3.984 kB / 0.5177 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.3052, allocations: 7.938 kB / 0.5178 GB, free: 3.727 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.3052, allocations: 8 kB / 0.5178 GB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004702/0.3057, allocations: 435.5 kB / 0.5182 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005728/0.3062, allocations: 0.6385 MB / 0.5188 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001476/0.3064, allocations: 120 kB / 0.5189 GB, free: 2.516 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.763e-05/0.3065, allocations: 95.2 kB / 0.519 GB, free: 2.422 MB / 414.1 MB Notification: Performance of Backend: time 4.51e-07/0.3065, allocations: 0 / 0.519 GB, free: 2.422 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004724/0.3112, allocations: 1.712 MB / 0.5207 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of SimCode: time 0.1548/0.466, allocations: 0.9655 MB / 0.5216 GB, free: 96.65 MB / 414.1 MB Notification: Performance of Templates: time 0.03038/0.4964, allocations: 28.06 MB / 0.549 GB, free: 79.2 MB / 414.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)