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.004596/0.004596, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001037/0.001037, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.276/1.276, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04553/0.04553, allocations: 9.094 MB / 279 MB, free: 2.941 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.001579/0.001579, allocations: 72.84 kB / 387.5 MB, free: 47.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07404/0.07563, allocations: 48.18 MB / 435.7 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01698/0.09265, allocations: 17.41 MB / 453.1 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01912/0.1118, allocations: 16.92 MB / 470 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.566e-05/0.1119, allocations: 4 kB / 470 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007419/0.1127, allocations: 279.1 kB / 470.3 MB, free: 4.832 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.01447/0.1272, allocations: 6.309 MB / 476.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.1286, allocations: 0.5752 MB / 477.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.1288, allocations: 203 kB / 477.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.038e-05/0.1289, allocations: 5.125 kB / 477.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.129, allocations: 99.56 kB / 477.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.1292, allocations: 51.78 kB / 477.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.1292, allocations: 0 / 477.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01558/0.1448, allocations: 10.45 MB / 487.9 MB, free: 3.109 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.88e-05/0.1449, allocations: 15.92 kB / 488 MB, free: 3.094 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.145, allocations: 51.73 kB / 488 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008357/0.1534, allocations: 4.143 MB / 492.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1534, allocations: 0 / 492.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1534, allocations: 0 / 492.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1534, allocations: 4 kB / 492.2 MB, free: 14.89 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.001875/0.1553, allocations: 0.885 MB / 493 MB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.1553, allocations: 12.03 kB / 493.1 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.1555, allocations: 23.83 kB / 493.1 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.1558, allocations: 202.8 kB / 493.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.1558, allocations: 4 kB / 493.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.1558, allocations: 8 kB / 493.3 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.156, allocations: 134.4 kB / 493.4 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.156, allocations: 0 / 493.4 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.156, allocations: 4 kB / 493.4 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.1561, allocations: 7.938 kB / 493.4 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001279/0.1562, allocations: 99.88 kB / 493.5 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006607/0.1569, allocations: 0.5698 MB / 494.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002543/0.1571, allocations: 133.1 kB / 494.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.1572, allocations: 85.69 kB / 494.3 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06231/0.2196, allocations: 33.17 MB / 0.5151 GB, free: 5.832 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.2196, allocations: 34.56 kB / 0.5152 GB, free: 5.789 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.775e-06/0.2197, allocations: 0 / 0.5152 GB, free: 5.789 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006527/0.2203, allocations: 229.9 kB / 0.5154 GB, free: 5.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.2204, allocations: 89.11 kB / 0.5155 GB, free: 5.453 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.2205, allocations: 113.8 kB / 0.5156 GB, free: 5.332 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.2205, allocations: 25.7 kB / 0.5156 GB, free: 5.301 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.828e-05/0.2206, allocations: 88.58 kB / 0.5157 GB, free: 5.207 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.583e-05/0.2206, allocations: 82.77 kB / 0.5158 GB, free: 5.125 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.404e-05/0.2207, allocations: 37.7 kB / 0.5158 GB, free: 5.082 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.2208, allocations: 327.1 kB / 0.5161 GB, free: 4.754 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.597e-05/0.2209, allocations: 43.98 kB / 0.5161 GB, free: 4.711 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.497e-05/0.221, allocations: 69.69 kB / 0.5162 GB, free: 4.637 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.2212, allocations: 117.5 kB / 0.5163 GB, free: 4.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2212, allocations: 3.938 kB / 0.5163 GB, free: 4.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002582/0.2215, allocations: 173.4 kB / 0.5165 GB, free: 4.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2215, allocations: 10.03 kB / 0.5165 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2215, allocations: 0 / 0.5165 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2215, allocations: 0 / 0.5165 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.213e-05/0.2216, allocations: 16 kB / 0.5165 GB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.2216, allocations: 4 kB / 0.5165 GB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.194e-05/0.2217, allocations: 15.84 kB / 0.5165 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.2217, allocations: 4 kB / 0.5165 GB, free: 4.293 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.779e-05/0.2218, allocations: 125.7 kB / 0.5167 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.605e-05/0.2219, allocations: 11.91 kB / 0.5167 GB, free: 4.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000447/0.2224, allocations: 309.5 kB / 0.517 GB, free: 3.844 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002881/0.2227, allocations: 244.3 kB / 0.5172 GB, free: 3.602 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2227, allocations: 4 kB / 0.5172 GB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2227, allocations: 0 / 0.5172 GB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009255/0.2236, allocations: 0.7579 MB / 0.5179 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2236, allocations: 0 / 0.5179 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.2238, allocations: 44.05 kB / 0.518 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.2238, allocations: 0 / 0.518 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.2238, allocations: 8 kB / 0.518 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.2238, allocations: 4 kB / 0.518 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2239, allocations: 0 / 0.518 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000542/0.2244, allocations: 0.5336 MB / 0.5185 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.524e-05/0.2245, allocations: 96.83 kB / 0.5186 GB, free: 2.066 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.2245, allocations: 8 kB / 0.5186 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.2246, allocations: 7.984 kB / 0.5186 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/0.2247, allocations: 16.05 kB / 0.5186 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.2247, allocations: 15.98 kB / 0.5187 GB, free: 2.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.438e-05/0.2248, allocations: 91.27 kB / 0.5187 GB, free: 1.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2248, allocations: 0 / 0.5187 GB, free: 1.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002294/0.2271, allocations: 0.9213 MB / 0.5196 GB, free: 1.008 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.1756/0.4026, allocations: 1.458 MB / 0.5211 GB, free: 97.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004385/0.4031, allocations: 239.8 kB / 0.5213 GB, free: 97.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4032, allocations: 1.625 kB / 0.5213 GB, free: 97.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.4033, allocations: 122.6 kB / 0.5214 GB, free: 97.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.4044, allocations: 148.9 kB / 0.5216 GB, free: 97.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008611/0.4053, allocations: 477.7 kB / 0.522 GB, free: 97.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.4055, allocations: 0.7326 MB / 0.5227 GB, free: 96.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001773/0.4056, allocations: 43.53 kB / 0.5228 GB, free: 96.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.163e-05/0.4057, allocations: 27.38 kB / 0.5228 GB, free: 96.93 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4057, allocations: 3.75 kB / 0.5228 GB, free: 96.93 MB / 414.1 MB Notification: Performance of Templates: time 0.03633/0.4421, allocations: 28.03 MB / 0.5502 GB, free: 78.38 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)