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.005016/0.005016, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001164/0.001164, allocations: 193 kB / 16.67 MB, free: 5.93 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.234/1.234, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04263/0.04263, allocations: 9.1 MB / 279 MB, free: 12.07 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.001301/0.001301, allocations: 75.83 kB / 387.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2212, allocations: 48.15 MB / 435.6 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01742/0.2387, allocations: 17.41 MB / 453.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01412/0.2528, allocations: 16.92 MB / 470 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.786e-05/0.2529, allocations: 0 / 470 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006463/0.2536, allocations: 318.3 kB / 470.3 MB, free: 12.6 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.01336/0.267, allocations: 6.644 MB / 476.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.2681, allocations: 0.6219 MB / 477.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001796/0.2683, allocations: 203 kB / 477.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.091e-05/0.2684, allocations: 5.125 kB / 477.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.2685, allocations: 95.62 kB / 477.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.827e-05/0.2686, allocations: 55.72 kB / 477.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.2686, allocations: 0 / 477.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0152/0.2838, allocations: 10.46 MB / 488.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.2839, allocations: 11.94 kB / 488.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.331e-05/0.2839, allocations: 59.72 kB / 488.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007395/0.2914, allocations: 4.132 MB / 492.6 MB, free: 7.637 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2914, allocations: 0 / 492.6 MB, free: 7.637 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2914, allocations: 4 kB / 492.6 MB, free: 7.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.2914, allocations: 4 kB / 492.6 MB, free: 7.629 MB / 366.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.001829/0.2932, allocations: 0.8772 MB / 493.4 MB, free: 6.703 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.2933, allocations: 12.03 kB / 493.5 MB, free: 6.691 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.2935, allocations: 27.83 kB / 493.5 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.2937, allocations: 194.8 kB / 493.7 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.836e-05/0.2937, allocations: 8 kB / 493.7 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.2937, allocations: 4 kB / 493.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.2939, allocations: 147.2 kB / 493.8 MB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2939, allocations: 0 / 493.8 MB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.2939, allocations: 8 kB / 493.8 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2939, allocations: 7.922 kB / 493.8 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.2941, allocations: 95.95 kB / 493.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006073/0.2947, allocations: 0.5737 MB / 494.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002507/0.295, allocations: 125.1 kB / 494.6 MB, free: 5.363 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.2951, allocations: 81.7 kB / 494.7 MB, free: 5.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05434/0.3494, allocations: 33.17 MB / 0.5155 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.3495, allocations: 34.56 kB / 0.5156 GB, free: 14.53 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.104e-06/0.3495, allocations: 0 / 0.5156 GB, free: 14.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005836/0.3501, allocations: 233.5 kB / 0.5158 GB, free: 14.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.3501, allocations: 85.11 kB / 0.5159 GB, free: 14.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.588e-05/0.3502, allocations: 117.8 kB / 0.516 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.3502, allocations: 25.7 kB / 0.516 GB, free: 14.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.842e-05/0.3503, allocations: 92.52 kB / 0.5161 GB, free: 13.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.592e-05/0.3504, allocations: 78.83 kB / 0.5162 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.115e-05/0.3504, allocations: 37.7 kB / 0.5162 GB, free: 13.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3505, allocations: 326.8 kB / 0.5165 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.015e-05/0.3506, allocations: 43.98 kB / 0.5165 GB, free: 13.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.739e-05/0.3507, allocations: 65.7 kB / 0.5166 GB, free: 13.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.3509, allocations: 125.8 kB / 0.5167 GB, free: 13.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3509, allocations: 0 / 0.5167 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002406/0.3511, allocations: 165.5 kB / 0.5169 GB, free: 13.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.3511, allocations: 4 kB / 0.5169 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.3511, allocations: 160 / 0.5169 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.3512, allocations: 3.938 kB / 0.5169 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.383e-05/0.3512, allocations: 19.98 kB / 0.5169 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.3513, allocations: 11.98 kB / 0.5169 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.873e-05/0.3513, allocations: 11.84 kB / 0.5169 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.3514, allocations: 4 kB / 0.5169 GB, free: 13.03 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 7.493e-05/0.3514, allocations: 121.8 kB / 0.5171 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.3515, allocations: 8.281 kB / 0.5171 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004178/0.3519, allocations: 321.1 kB / 0.5174 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002659/0.3522, allocations: 245.5 kB / 0.5176 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3522, allocations: 0 / 0.5176 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3522, allocations: 3.938 kB / 0.5176 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008394/0.3531, allocations: 0.754 MB / 0.5183 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3531, allocations: 3.938 kB / 0.5183 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.3532, allocations: 43.92 kB / 0.5184 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3533, allocations: 0 / 0.5184 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.3533, allocations: 11.98 kB / 0.5184 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3533, allocations: 0 / 0.5184 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3533, allocations: 0 / 0.5184 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005066/0.3538, allocations: 0.5297 MB / 0.5189 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.027e-05/0.3539, allocations: 93.02 kB / 0.519 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.3539, allocations: 12 kB / 0.519 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.354, allocations: 4 kB / 0.519 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.091e-05/0.3541, allocations: 20.03 kB / 0.519 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.3541, allocations: 15.94 kB / 0.5191 GB, free: 10.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.261e-05/0.3541, allocations: 91.27 kB / 0.5191 GB, free: 10.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3541, allocations: 0 / 0.5191 GB, free: 10.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001881/0.356, allocations: 0.9252 MB / 0.52 GB, free: 9.738 MB / 414.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.00364/0.3597, allocations: 1.468 MB / 0.5215 GB, free: 8.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003208/0.36, allocations: 247.3 kB / 0.5217 GB, free: 8.004 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.36, allocations: 0 / 0.5217 GB, free: 8.004 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.3602, allocations: 123.8 kB / 0.5218 GB, free: 7.883 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008538/0.361, allocations: 144.8 kB / 0.522 GB, free: 7.742 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007389/0.3618, allocations: 492.8 kB / 0.5224 GB, free: 7.227 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.362, allocations: 0.7289 MB / 0.5232 GB, free: 6.473 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001308/0.3622, allocations: 49.89 kB / 0.5232 GB, free: 6.426 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.416e-05/0.3623, allocations: 27.44 kB / 0.5232 GB, free: 6.398 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3623, allocations: 0 / 0.5232 GB, free: 6.398 MB / 414.1 MB Notification: Performance of Templates: time 0.03602/0.3983, allocations: 28.02 MB / 0.5506 GB, free: 10.38 MB / 446.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)