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.006498/0.006498, allocations: 101.6 kB / 15.73 MB, free: 5.555 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.001501/0.001501, allocations: 194.5 kB / 16.67 MB, free: 5.484 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.343/1.343, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0473/0.0473, allocations: 9.096 MB / 279 MB, free: 12.06 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.00141/0.00141, allocations: 67.91 kB / 387.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2191, allocations: 48.16 MB / 435.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.0184/0.2375, allocations: 17.41 MB / 453.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01637/0.254, allocations: 16.92 MB / 470 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.31e-05/0.2541, allocations: 0 / 470 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000703/0.2548, allocations: 294.1 kB / 470.3 MB, free: 12.61 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.01475/0.2696, allocations: 6.095 MB / 476.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.2709, allocations: 0.5751 MB / 476.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.2711, allocations: 207 kB / 477.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.266e-05/0.2712, allocations: 5.125 kB / 477.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.2713, allocations: 91.58 kB / 477.2 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.2714, allocations: 59.77 kB / 477.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.2714, allocations: 4 kB / 477.3 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01575/0.2872, allocations: 9.927 MB / 487.2 MB, free: 13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.489e-05/0.2872, allocations: 19.91 kB / 487.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.242e-05/0.2873, allocations: 55.69 kB / 487.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009685/0.297, allocations: 4.025 MB / 491.3 MB, free: 8.887 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.2971, allocations: 0 / 491.3 MB, free: 8.887 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2971, allocations: 4 kB / 491.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.2971, allocations: 0 / 491.3 MB, free: 8.883 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.001841/0.2989, allocations: 0.9161 MB / 492.2 MB, free: 7.914 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.299, allocations: 8.031 kB / 492.2 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.2992, allocations: 39.75 kB / 492.3 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.2994, allocations: 190.9 kB / 492.5 MB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.2994, allocations: 11.94 kB / 492.5 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.2994, allocations: 4 kB / 492.5 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002033/0.2996, allocations: 139.3 kB / 492.6 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2997, allocations: 0 / 492.6 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.2997, allocations: 11.92 kB / 492.6 MB, free: 7.465 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2997, allocations: 3.938 kB / 492.6 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.2998, allocations: 103.9 kB / 492.7 MB, free: 7.359 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006049/0.3004, allocations: 0.5699 MB / 493.3 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.3007, allocations: 125.1 kB / 493.4 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3008, allocations: 81.69 kB / 493.5 MB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05835/0.3592, allocations: 33.18 MB / 0.5143 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.3592, allocations: 30.56 kB / 0.5144 GB, free: 15.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.314e-06/0.3592, allocations: 0 / 0.5144 GB, free: 15.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006748/0.3599, allocations: 230 kB / 0.5146 GB, free: 15.51 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.36, allocations: 85.11 kB / 0.5147 GB, free: 15.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.863e-05/0.3601, allocations: 113.8 kB / 0.5148 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.3601, allocations: 29.7 kB / 0.5148 GB, free: 15.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.735e-05/0.3602, allocations: 88.53 kB / 0.5149 GB, free: 15.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.3602, allocations: 83.25 kB / 0.515 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.9e-05/0.3603, allocations: 41.7 kB / 0.515 GB, free: 15.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3605, allocations: 322.8 kB / 0.5153 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.309e-05/0.3605, allocations: 47.98 kB / 0.5154 GB, free: 14.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.953e-05/0.3606, allocations: 69.62 kB / 0.5154 GB, free: 14.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.3608, allocations: 125.8 kB / 0.5155 GB, free: 14.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3608, allocations: 0 / 0.5155 GB, free: 14.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002372/0.3611, allocations: 165.5 kB / 0.5157 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3611, allocations: 4.375 kB / 0.5157 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3611, allocations: 0 / 0.5157 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.3611, allocations: 4 kB / 0.5157 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.727e-05/0.3612, allocations: 16 kB / 0.5157 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3612, allocations: 7.938 kB / 0.5157 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.653e-05/0.3613, allocations: 15.89 kB / 0.5158 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.3613, allocations: 7.984 kB / 0.5158 GB, free: 14.23 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 8.397e-05/0.3614, allocations: 125.7 kB / 0.5159 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.341e-05/0.3615, allocations: 8.078 kB / 0.5159 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004389/0.3619, allocations: 316.9 kB / 0.5162 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002719/0.3622, allocations: 241.5 kB / 0.5164 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3622, allocations: 3.938 kB / 0.5164 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.3622, allocations: 3.984 kB / 0.5164 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008838/0.3631, allocations: 0.7581 MB / 0.5172 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3631, allocations: 0 / 0.5172 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.3633, allocations: 43.92 kB / 0.5172 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3633, allocations: 0 / 0.5172 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.3633, allocations: 8 kB / 0.5172 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3634, allocations: 0 / 0.5172 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3634, allocations: 4 kB / 0.5172 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005695/0.3639, allocations: 0.5298 MB / 0.5177 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.183e-05/0.364, allocations: 100.9 kB / 0.5178 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.364, allocations: 11.97 kB / 0.5178 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.3642, allocations: 8 kB / 0.5179 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/0.3642, allocations: 16.05 kB / 0.5179 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.3642, allocations: 8 kB / 0.5179 GB, free: 11.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.756e-05/0.3643, allocations: 99.2 kB / 0.518 GB, free: 11.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3643, allocations: 0 / 0.518 GB, free: 11.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00242/0.3667, allocations: 0.9424 MB / 0.5189 GB, free: 10.91 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.004108/0.3709, allocations: 1.43 MB / 0.5203 GB, free: 9.469 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.3713, allocations: 247.3 kB / 0.5205 GB, free: 9.215 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.3713, allocations: 0 / 0.5205 GB, free: 9.215 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.3715, allocations: 128.6 kB / 0.5206 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009699/0.3724, allocations: 145 kB / 0.5208 GB, free: 8.949 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008342/0.3733, allocations: 492.4 kB / 0.5213 GB, free: 8.434 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.3736, allocations: 0.7328 MB / 0.522 GB, free: 7.676 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.3737, allocations: 53.81 kB / 0.522 GB, free: 7.625 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.876e-05/0.3738, allocations: 31.44 kB / 0.522 GB, free: 7.594 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3738, allocations: 0 / 0.522 GB, free: 7.594 MB / 414.1 MB Notification: Performance of Templates: time 0.03784/0.4116, allocations: 27.95 MB / 0.5493 GB, free: 11.65 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)