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.001697/0.001697, allocations: 104.3 kB / 16.36 MB, free: 6.289 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.001496/0.001496, allocations: 192 kB / 17.29 MB, free: 5.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.026/2.026, 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.05852/0.05852, allocations: 9.107 MB / 279.6 MB, free: 2.957 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.001977/0.001977, allocations: 64.33 kB / 339.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4744/0.4764, allocations: 48.14 MB / 387.6 MB, free: 51.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02761/0.5041, allocations: 17.42 MB / 405 MB, free: 38.74 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.5221, allocations: 16.92 MB / 422 MB, free: 24.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.5224, allocations: 1.031 kB / 422 MB, free: 24.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.5235, allocations: 285.3 kB / 422.2 MB, free: 24.63 MB / 318.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.02439/0.5479, allocations: 6.317 MB / 428.6 MB, free: 18.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002416/0.5504, allocations: 0.5635 MB / 429.1 MB, free: 17.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003456/0.5507, allocations: 203 kB / 429.3 MB, free: 17.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.392e-05/0.5508, allocations: 13.11 kB / 429.3 MB, free: 17.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.551, allocations: 83.64 kB / 429.4 MB, free: 17.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.5511, allocations: 63.72 kB / 429.5 MB, free: 17.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.5512, allocations: 4 kB / 429.5 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0235/0.5747, allocations: 10.46 MB / 439.9 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.353e-05/0.5748, allocations: 11.92 kB / 440 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.5749, allocations: 55.73 kB / 440 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01878/0.5937, allocations: 4.136 MB / 444.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.167e-05/0.5938, allocations: 0 / 444.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.5939, allocations: 0 / 444.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.196e-05/0.5939, allocations: 0 / 444.1 MB, free: 2.832 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.003079/0.597, allocations: 0.8857 MB / 445 MB, free: 1.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.664e-05/0.5971, allocations: 12.03 kB / 445 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/0.5973, allocations: 35.73 kB / 445.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002553/0.5976, allocations: 194.9 kB / 445.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.5976, allocations: 4 kB / 445.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.626e-05/0.5977, allocations: 4 kB / 445.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.5979, allocations: 131.4 kB / 445.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.598, allocations: 0 / 445.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.598, allocations: 0 / 445.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.598, allocations: 11.92 kB / 445.4 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.5982, allocations: 107.9 kB / 445.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007651/0.5989, allocations: 0.5659 MB / 446.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002761/0.5992, allocations: 125.1 kB / 446.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.5993, allocations: 85.7 kB / 446.3 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06944/0.6688, allocations: 33.17 MB / 479.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.876e-05/0.6689, allocations: 38.56 kB / 479.5 MB, free: 9.719 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 5.39e-06/0.669, allocations: 3.938 kB / 479.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008449/0.6698, allocations: 228 kB / 479.7 MB, free: 9.488 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.6699, allocations: 77.11 kB / 479.8 MB, free: 9.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.67, allocations: 125.8 kB / 479.9 MB, free: 9.262 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.6701, allocations: 29.7 kB / 480 MB, free: 9.227 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.6701, allocations: 80.58 kB / 480 MB, free: 9.145 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.653e-05/0.6703, allocations: 90.75 kB / 480.1 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.995e-05/0.6703, allocations: 33.7 kB / 480.2 MB, free: 9.016 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.6705, allocations: 326.8 kB / 480.5 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.825e-05/0.6706, allocations: 47.92 kB / 480.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.6708, allocations: 64.77 kB / 480.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.671, allocations: 126.3 kB / 480.7 MB, free: 8.449 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.671, allocations: 0 / 480.7 MB, free: 8.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002833/0.6713, allocations: 161.5 kB / 480.9 MB, free: 8.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.6713, allocations: 4 kB / 480.9 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.6713, allocations: 8.359 kB / 480.9 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.6714, allocations: 0 / 480.9 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.6715, allocations: 23.98 kB / 480.9 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.6715, allocations: 0 / 480.9 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.095e-05/0.6716, allocations: 15.78 kB / 480.9 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.6716, allocations: 4 kB / 480.9 MB, free: 8.23 MB / 366.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 0.0001357/0.6718, allocations: 125.7 kB / 481 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.261e-05/0.6718, allocations: 11.91 kB / 481.1 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005471/0.6724, allocations: 318.2 kB / 481.4 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003343/0.6727, allocations: 242.1 kB / 481.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.6727, allocations: 4 kB / 481.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.6728, allocations: 0 / 481.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.6739, allocations: 0.7543 MB / 482.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.6739, allocations: 0 / 482.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.6741, allocations: 43.92 kB / 482.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.6741, allocations: 4 kB / 482.4 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.6741, allocations: 7.984 kB / 482.4 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.6741, allocations: 4 kB / 482.4 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.6741, allocations: 0 / 482.4 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006659/0.6748, allocations: 0.5303 MB / 482.9 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.751e-05/0.6749, allocations: 96.86 kB / 483 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.6749, allocations: 4 kB / 483 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.6751, allocations: 4 kB / 483.1 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.6751, allocations: 19.97 kB / 483.1 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.6751, allocations: 4 kB / 483.1 MB, free: 5.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.006e-05/0.6752, allocations: 91.28 kB / 483.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6752, allocations: 0 / 483.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003993/0.6792, allocations: 0.9292 MB / 484.1 MB, free: 4.957 MB / 366.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.005993/0.6852, allocations: 1.465 MB / 485.6 MB, free: 3.492 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006607/0.686, allocations: 247.3 kB / 485.8 MB, free: 3.238 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.686, allocations: 4 kB / 485.8 MB, free: 3.234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.6862, allocations: 127.8 kB / 485.9 MB, free: 3.109 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.6873, allocations: 145.4 kB / 486.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.6884, allocations: 484.7 kB / 486.5 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/0.6888, allocations: 0.7328 MB / 487.3 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001981/0.689, allocations: 51.38 kB / 487.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.942e-05/0.6891, allocations: 27.44 kB / 487.4 MB, free: 1.648 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.6891, allocations: 0 / 487.4 MB, free: 1.648 MB / 366.1 MB Notification: Performance of Templates: time 0.0492/0.7383, allocations: 27.98 MB / 0.5033 GB, free: 5.746 MB / 398.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 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1)