Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.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.CheckDerivativesHelium,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 114.7 kB / 16.37 MB, free: 5.984 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.001406/0.001406, allocations: 192.6 kB / 17.31 MB, free: 5.602 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.815/1.815, 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.04573/0.04573, allocations: 9.088 MB / 279.6 MB, free: 2.973 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.001761/0.001762, allocations: 68.28 kB / 339.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.4006, allocations: 48.15 MB / 387.6 MB, free: 51.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.02467/0.4254, allocations: 17.35 MB / 405 MB, free: 38.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0171/0.4426, allocations: 16.8 MB / 421.8 MB, free: 24.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.4428, allocations: 1.281 kB / 421.8 MB, free: 24.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009789/0.4438, allocations: 271.9 kB / 422.1 MB, free: 24.79 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.02177/0.4656, allocations: 6.034 MB / 428.1 MB, free: 18.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00211/0.4677, allocations: 0.5401 MB / 428.6 MB, free: 18.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002601/0.468, allocations: 187 kB / 428.8 MB, free: 18.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.179e-05/0.4681, allocations: 13.11 kB / 428.8 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.4683, allocations: 75.66 kB / 428.9 MB, free: 18.12 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.4684, allocations: 63.66 kB / 429 MB, free: 18.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.4684, allocations: 4 kB / 429 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02037/0.4888, allocations: 9.541 MB / 438.5 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.861e-05/0.4889, allocations: 11.92 kB / 438.5 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.489, allocations: 59.67 kB / 438.6 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01538/0.5044, allocations: 4.003 MB / 442.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.5045, allocations: 0 / 442.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.5045, allocations: 4 kB / 442.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.5045, allocations: 0 / 442.6 MB, free: 4.41 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.001867/0.5064, allocations: 0.8857 MB / 443.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.5064, allocations: 12.03 kB / 443.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.5066, allocations: 31.73 kB / 443.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.5068, allocations: 198.9 kB / 443.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.5068, allocations: 4 kB / 443.7 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.8e-05/0.5069, allocations: 8 kB / 443.7 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.5071, allocations: 130.1 kB / 443.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.5071, allocations: 0 / 443.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.5071, allocations: 8 kB / 443.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.5071, allocations: 3.938 kB / 443.9 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000112/0.5072, allocations: 95.89 kB / 443.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005765/0.5078, allocations: 0.5698 MB / 444.5 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.5081, allocations: 129.1 kB / 444.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.955e-05/0.5082, allocations: 93.58 kB / 444.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0668/0.575, allocations: 33.17 MB / 477.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.708e-05/0.5751, allocations: 38.56 kB / 477.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 4.508e-06/0.5751, allocations: 0 / 477.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009601/0.5761, allocations: 225.2 kB / 478.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.475e-05/0.5762, allocations: 89.09 kB / 478.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.5764, allocations: 114.1 kB / 478.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.5764, allocations: 25.7 kB / 478.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.14e-05/0.5765, allocations: 88.58 kB / 478.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.5766, allocations: 86.78 kB / 478.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.5768, allocations: 45.64 kB / 478.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.577, allocations: 322.8 kB / 478.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.5771, allocations: 43.98 kB / 479 MB, free: 10.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.5772, allocations: 68.25 kB / 479 MB, free: 10.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.5774, allocations: 116.2 kB / 479.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.5774, allocations: 0 / 479.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003464/0.5778, allocations: 177.5 kB / 479.3 MB, free: 9.859 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.5778, allocations: 7.984 kB / 479.3 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.5779, allocations: 0 / 479.3 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.5779, allocations: 0 / 479.3 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.578, allocations: 16 kB / 479.3 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.578, allocations: 4 kB / 479.3 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.183e-05/0.5781, allocations: 7.844 kB / 479.3 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.5782, allocations: 12 kB / 479.4 MB, free: 9.812 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.0001404/0.5783, allocations: 129.7 kB / 479.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.191e-05/0.5784, allocations: 11.91 kB / 479.5 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005851/0.579, allocations: 310.4 kB / 479.8 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003491/0.5794, allocations: 242.1 kB / 480 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.5794, allocations: 0 / 480 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.5794, allocations: 0 / 480 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.5807, allocations: 0.7594 MB / 480.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.5807, allocations: 0 / 480.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.5809, allocations: 43.86 kB / 480.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.5809, allocations: 0 / 480.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.581, allocations: 8 kB / 480.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.581, allocations: 0 / 480.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.581, allocations: 1.125 kB / 480.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007811/0.5818, allocations: 0.5311 MB / 481.4 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.5819, allocations: 100.8 kB / 481.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.5819, allocations: 4 kB / 481.5 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.5821, allocations: 4 kB / 481.5 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.812e-05/0.5821, allocations: 15.97 kB / 481.5 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.5821, allocations: 12 kB / 481.5 MB, free: 7.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.756e-05/0.5822, allocations: 91.27 kB / 481.6 MB, free: 7.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5822, allocations: 0 / 481.6 MB, free: 7.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004022/0.5863, allocations: 0.9252 MB / 482.5 MB, free: 6.539 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.006671/0.593, allocations: 1.431 MB / 484 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.5935, allocations: 250.2 kB / 484.2 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.5935, allocations: 0 / 484.2 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.5937, allocations: 127.8 kB / 484.3 MB, free: 4.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.5948, allocations: 147.6 kB / 484.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.596, allocations: 479.5 kB / 484.9 MB, free: 4.102 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.5965, allocations: 0.7367 MB / 485.7 MB, free: 3.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.5967, allocations: 46.75 kB / 485.7 MB, free: 3.293 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.326e-05/0.5968, allocations: 23.44 kB / 485.7 MB, free: 3.273 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5968, allocations: 4 kB / 485.7 MB, free: 3.27 MB / 366.1 MB Notification: Performance of Templates: time 0.05361/0.6505, allocations: 27.92 MB / 0.5016 GB, free: 7.418 MB / 398.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1)