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.006175/0.006175, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.00127/0.00127, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.229/1.229, allocations: 205.1 MB / 222.5 MB, free: 4.387 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04353/0.04353, allocations: 9.101 MB / 279 MB, free: 11.94 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.001442/0.001442, allocations: 74.39 kB / 387.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2208, allocations: 48.15 MB / 435.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01846/0.2393, allocations: 17.41 MB / 453 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01593/0.2552, allocations: 16.92 MB / 470 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.6e-05/0.2554, allocations: 1.156 kB / 470 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006776/0.2561, allocations: 322.2 kB / 470.3 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.01478/0.2709, allocations: 6.439 MB / 476.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.2723, allocations: 0.6142 MB / 477.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.2725, allocations: 203 kB / 477.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.89e-05/0.2726, allocations: 5.125 kB / 477.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.2727, allocations: 95.62 kB / 477.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.2728, allocations: 51.72 kB / 477.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.2729, allocations: 4 kB / 477.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01598/0.2888, allocations: 9.942 MB / 487.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.2889, allocations: 11.92 kB / 487.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.364e-05/0.289, allocations: 55.72 kB / 487.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009627/0.2986, allocations: 4.015 MB / 491.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.83e-06/0.2987, allocations: 0 / 491.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2987, allocations: 0 / 491.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.2987, allocations: 0 / 491.7 MB, free: 8.543 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.002012/0.3007, allocations: 0.8967 MB / 492.6 MB, free: 7.598 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.3008, allocations: 15.97 kB / 492.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.301, allocations: 23.83 kB / 492.6 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.3012, allocations: 194.8 kB / 492.8 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.3012, allocations: 7.984 kB / 492.8 MB, free: 7.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.3012, allocations: 8 kB / 492.8 MB, free: 7.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.3014, allocations: 143.2 kB / 493 MB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3015, allocations: 0 / 493 MB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.3015, allocations: 0 / 493 MB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.3015, allocations: 15.86 kB / 493 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.3016, allocations: 91.97 kB / 493.1 MB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006605/0.3023, allocations: 0.5776 MB / 493.7 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.3026, allocations: 125.2 kB / 493.8 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3027, allocations: 81.7 kB / 493.9 MB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05451/0.3572, allocations: 33.17 MB / 0.5147 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.3572, allocations: 46.48 kB / 0.5147 GB, free: 15.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.635e-06/0.3573, allocations: 0 / 0.5147 GB, free: 15.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005881/0.3579, allocations: 229.2 kB / 0.5149 GB, free: 15.19 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.3579, allocations: 77.11 kB / 0.515 GB, free: 15.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.386e-05/0.358, allocations: 121.8 kB / 0.5151 GB, free: 14.97 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.358, allocations: 29.7 kB / 0.5152 GB, free: 14.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.374e-05/0.3581, allocations: 92.56 kB / 0.5153 GB, free: 14.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.3581, allocations: 74.84 kB / 0.5153 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.101e-05/0.3582, allocations: 33.7 kB / 0.5154 GB, free: 14.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.3583, allocations: 330.8 kB / 0.5157 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.607e-05/0.3584, allocations: 39.98 kB / 0.5157 GB, free: 14.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.259e-05/0.3585, allocations: 69.69 kB / 0.5158 GB, free: 14.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.3586, allocations: 125.8 kB / 0.5159 GB, free: 14.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3586, allocations: 0 / 0.5159 GB, free: 14.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002268/0.3589, allocations: 165.8 kB / 0.5161 GB, free: 13.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.3589, allocations: 8 kB / 0.5161 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3589, allocations: 0 / 0.5161 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3589, allocations: 0 / 0.5161 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.865e-05/0.359, allocations: 31.86 kB / 0.5161 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.359, allocations: 4 kB / 0.5161 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.703e-05/0.3591, allocations: 7.844 kB / 0.5161 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.3591, allocations: 8 kB / 0.5161 GB, free: 13.92 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.719e-05/0.3592, allocations: 125.8 kB / 0.5162 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.26e-05/0.3593, allocations: 11.91 kB / 0.5162 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000427/0.3597, allocations: 309.5 kB / 0.5165 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002717/0.36, allocations: 245.4 kB / 0.5168 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.36, allocations: 0 / 0.5168 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.36, allocations: 7.938 kB / 0.5168 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000886/0.3609, allocations: 0.754 MB / 0.5175 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/0.3609, allocations: 4 kB / 0.5175 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.3611, allocations: 39.92 kB / 0.5176 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.3611, allocations: 4 kB / 0.5176 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.3611, allocations: 4 kB / 0.5176 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3611, allocations: 4 kB / 0.5176 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3611, allocations: 7.984 kB / 0.5176 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000527/0.3617, allocations: 0.5297 MB / 0.5181 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.181e-05/0.3617, allocations: 96.95 kB / 0.5182 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.3618, allocations: 8 kB / 0.5182 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3619, allocations: 4 kB / 0.5182 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.613e-05/0.3619, allocations: 15.98 kB / 0.5182 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.3619, allocations: 19.98 kB / 0.5182 GB, free: 11.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.962e-05/0.362, allocations: 95.22 kB / 0.5183 GB, free: 11.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.362, allocations: 0 / 0.5183 GB, free: 11.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001951/0.364, allocations: 0.9213 MB / 0.5192 GB, free: 10.63 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.002997/0.367, allocations: 1.417 MB / 0.5206 GB, free: 9.199 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000344/0.3673, allocations: 251.2 kB / 0.5208 GB, free: 8.941 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3673, allocations: 4 kB / 0.5209 GB, free: 8.938 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.3675, allocations: 116.7 kB / 0.521 GB, free: 8.824 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008687/0.3684, allocations: 145 kB / 0.5211 GB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007358/0.3691, allocations: 476.8 kB / 0.5216 GB, free: 8.184 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.3694, allocations: 0.7367 MB / 0.5223 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.3695, allocations: 49.88 kB / 0.5223 GB, free: 7.375 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.909e-05/0.3696, allocations: 23.44 kB / 0.5223 GB, free: 7.352 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3696, allocations: 0 / 0.5223 GB, free: 7.352 MB / 414.1 MB Notification: Performance of Templates: time 0.0336/0.4032, allocations: 27.97 MB / 0.5497 GB, free: 11.39 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)