Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.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.CheckDerivativesButane,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesButane,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006829/0.006829, allocations: 102.2 kB / 15.73 MB, free: 6.059 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.001289/0.001289, allocations: 192 kB / 16.67 MB, free: 5.984 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.384/1.384, allocations: 205.1 MB / 222.5 MB, free: 4.297 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04766/0.04766, allocations: 9.096 MB / 279 MB, free: 11.93 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.001551/0.001551, allocations: 63.91 kB / 387.5 MB, free: 8 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2703, allocations: 48.15 MB / 435.6 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.0184/0.2888, allocations: 17.42 MB / 453 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.3046, allocations: 16.92 MB / 470 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.374e-05/0.3047, allocations: 1.25 kB / 470 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007276/0.3055, allocations: 285 kB / 470.2 MB, free: 12.64 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.01678/0.3223, allocations: 6.106 MB / 476.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.3237, allocations: 0.5751 MB / 476.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002182/0.324, allocations: 203 kB / 477.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.841e-05/0.324, allocations: 13.11 kB / 477.1 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.3242, allocations: 87.64 kB / 477.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.3243, allocations: 51.72 kB / 477.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.3243, allocations: 4 kB / 477.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01782/0.3421, allocations: 9.935 MB / 487.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.637e-05/0.3422, allocations: 15.86 kB / 487.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.3423, allocations: 59.72 kB / 487.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01135/0.3537, allocations: 4.019 MB / 491.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3537, allocations: 0 / 491.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3537, allocations: 0 / 491.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.3537, allocations: 0 / 491.3 MB, free: 8.949 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.001819/0.3556, allocations: 0.885 MB / 492.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.3556, allocations: 12.03 kB / 492.2 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.3558, allocations: 27.83 kB / 492.2 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002122/0.356, allocations: 198.8 kB / 492.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.356, allocations: 4 kB / 492.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.3561, allocations: 8 kB / 492.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.3563, allocations: 127.3 kB / 492.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.3563, allocations: 0 / 492.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.3563, allocations: 4 kB / 492.6 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.3563, allocations: 15.86 kB / 492.6 MB, free: 7.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.3565, allocations: 99.89 kB / 492.7 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00066/0.3572, allocations: 0.5737 MB / 493.3 MB, free: 6.824 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.3574, allocations: 129.1 kB / 493.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.3575, allocations: 85.7 kB / 493.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06079/0.4183, allocations: 33.17 MB / 0.5143 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.4184, allocations: 34.56 kB / 0.5143 GB, free: 15.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.395e-06/0.4184, allocations: 0 / 0.5143 GB, free: 15.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006498/0.419, allocations: 241.8 kB / 0.5146 GB, free: 15.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.4191, allocations: 77.11 kB / 0.5146 GB, free: 15.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.921e-05/0.4192, allocations: 125.8 kB / 0.5147 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.4192, allocations: 25.7 kB / 0.5148 GB, free: 15.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.34e-05/0.4193, allocations: 88.58 kB / 0.5149 GB, free: 15.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.609e-05/0.4194, allocations: 78.83 kB / 0.5149 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.965e-05/0.4195, allocations: 41.7 kB / 0.515 GB, free: 15.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4196, allocations: 326.8 kB / 0.5153 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.685e-05/0.4197, allocations: 43.98 kB / 0.5153 GB, free: 14.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.654e-05/0.4198, allocations: 61.7 kB / 0.5154 GB, free: 14.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.4199, allocations: 121.8 kB / 0.5155 GB, free: 14.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.42, allocations: 0 / 0.5155 GB, free: 14.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002543/0.4202, allocations: 165.4 kB / 0.5157 GB, free: 14.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.4202, allocations: 12 kB / 0.5157 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4203, allocations: 0 / 0.5157 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.4203, allocations: 0 / 0.5157 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.275e-05/0.4204, allocations: 19.98 kB / 0.5157 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.4204, allocations: 7.938 kB / 0.5157 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.588e-05/0.4205, allocations: 11.84 kB / 0.5157 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.4205, allocations: 4 kB / 0.5157 GB, free: 14.34 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.214e-05/0.4206, allocations: 121.8 kB / 0.5158 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.058e-05/0.4206, allocations: 11.91 kB / 0.5158 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004522/0.4211, allocations: 317.2 kB / 0.5161 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002822/0.4214, allocations: 241.4 kB / 0.5164 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.4214, allocations: 128 / 0.5164 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4214, allocations: 3.938 kB / 0.5164 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000882/0.4223, allocations: 0.7618 MB / 0.5171 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.4223, allocations: 4 kB / 0.5171 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.4225, allocations: 35.98 kB / 0.5172 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.4225, allocations: 4 kB / 0.5172 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.4225, allocations: 3.984 kB / 0.5172 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.4225, allocations: 4 kB / 0.5172 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4226, allocations: 0 / 0.5172 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005264/0.4231, allocations: 0.5375 MB / 0.5177 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.963e-05/0.4232, allocations: 96.83 kB / 0.5178 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.4232, allocations: 8 kB / 0.5178 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.4233, allocations: 4 kB / 0.5178 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.32e-05/0.4234, allocations: 15.97 kB / 0.5178 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.4234, allocations: 12 kB / 0.5178 GB, free: 12.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.672e-05/0.4234, allocations: 87.28 kB / 0.5179 GB, free: 11.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4234, allocations: 0 / 0.5179 GB, free: 11.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00217/0.4256, allocations: 0.9252 MB / 0.5188 GB, free: 11.06 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.003781/0.4294, allocations: 1.421 MB / 0.5202 GB, free: 9.629 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003601/0.4298, allocations: 255.2 kB / 0.5204 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4298, allocations: 0 / 0.5204 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.4299, allocations: 119.8 kB / 0.5206 GB, free: 9.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000944/0.4309, allocations: 152.4 kB / 0.5207 GB, free: 9.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007969/0.4317, allocations: 477.9 kB / 0.5212 GB, free: 8.605 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.432, allocations: 0.7328 MB / 0.5219 GB, free: 7.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.4321, allocations: 49.88 kB / 0.5219 GB, free: 7.801 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.493e-05/0.4322, allocations: 27.44 kB / 0.5219 GB, free: 7.773 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4322, allocations: 0 / 0.5219 GB, free: 7.773 MB / 414.1 MB Notification: Performance of Templates: time 0.03772/0.4699, allocations: 27.96 MB / 0.5492 GB, free: 11.82 MB / 446.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)