Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.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.CheckDerivativesWater,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005556/0.005561, allocations: 100.6 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.001189/0.001189, allocations: 188.9 kB / 16.67 MB, free: 5.973 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.241/1.241, allocations: 205.1 MB / 222.5 MB, free: 4.367 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04262/0.04262, allocations: 9.093 MB / 279 MB, free: 11.95 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.00135/0.00135, allocations: 79.83 kB / 387.5 MB, free: 7.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.225, allocations: 48.15 MB / 435.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01276/0.2378, allocations: 12.82 MB / 448.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009123/0.247, allocations: 8.581 MB / 457 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.2471, allocations: 0 / 457 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.2473, allocations: 44.75 kB / 457.1 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005421/0.2528, allocations: 1.874 MB / 459 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005989/0.2588, allocations: 2.278 MB / 461.2 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000175/0.259, allocations: 130.8 kB / 461.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.268e-05/0.259, allocations: 8.938 kB / 461.4 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.17e-05/0.2591, allocations: 39.08 kB / 461.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.865e-05/0.2592, allocations: 50.09 kB / 461.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.2592, allocations: 3.469 kB / 461.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01291/0.2721, allocations: 6.926 MB / 468.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.623e-05/0.2722, allocations: 15.83 kB / 468.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.452e-05/0.2723, allocations: 43.75 kB / 468.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007886/0.2802, allocations: 3.77 MB / 472.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2802, allocations: 8 kB / 472.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2802, allocations: 0 / 472.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.2802, allocations: 0 / 472.2 MB, free: 12.12 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.002284/0.2825, allocations: 0.8813 MB / 473.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.2825, allocations: 15.97 kB / 473.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003499/0.2829, allocations: 44.8 kB / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.2831, allocations: 204.1 kB / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.2831, allocations: 8.562 kB / 473.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.2832, allocations: 15.94 kB / 473.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008374/0.284, allocations: 259.1 kB / 473.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.2841, allocations: 0 / 473.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.2841, allocations: 8 kB / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.2841, allocations: 4 kB / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000728/0.2848, allocations: 207.8 kB / 473.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006839/0.2855, allocations: 0.67 MB / 474.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000808/0.2863, allocations: 241 kB / 474.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.59e-05/0.2864, allocations: 61.67 kB / 474.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1189/0.4053, allocations: 64.23 MB / 0.5264 GB, free: 1.426 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.4054, allocations: 42.56 kB / 0.5264 GB, free: 1.375 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.094e-06/0.4054, allocations: 0 / 0.5264 GB, free: 1.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001587/0.407, allocations: 369.1 kB / 0.5268 GB, free: 1.008 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.4071, allocations: 77.11 kB / 0.5269 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.4072, allocations: 130.1 kB / 0.527 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.4072, allocations: 29.7 kB / 0.527 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.897e-05/0.4073, allocations: 96.03 kB / 0.5271 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.213e-05/0.4074, allocations: 47.3 kB / 0.5272 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.99e-05/0.4075, allocations: 69.58 kB / 0.5272 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.4076, allocations: 314.8 kB / 0.5275 GB, free: 212 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.4077, allocations: 67.89 kB / 0.5276 GB, free: 144 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.4079, allocations: 84.48 kB / 0.5277 GB, free: 48 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.4082, allocations: 148 kB / 0.5278 GB, free: 15.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.4082, allocations: 4 kB / 0.5278 GB, free: 15.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004672/0.4087, allocations: 213.3 kB / 0.528 GB, free: 15.67 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.4087, allocations: 4 kB / 0.528 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.4087, allocations: 7.938 kB / 0.528 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.4087, allocations: 0 / 0.528 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.4089, allocations: 59.89 kB / 0.5281 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.4089, allocations: 0 / 0.5281 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.409, allocations: 15.78 kB / 0.5281 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.4091, allocations: 19.98 kB / 0.5281 GB, free: 15.57 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001011/0.4092, allocations: 125.8 kB / 0.5282 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.017e-05/0.4093, allocations: 11.89 kB / 0.5283 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/0.4112, allocations: 2.108 MB / 0.5303 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.4112, allocations: 7.984 kB / 0.5303 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4112, allocations: 4 kB / 0.5303 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4112, allocations: 0 / 0.5303 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008743/0.4121, allocations: 1.044 MB / 0.5313 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.4121, allocations: 0 / 0.5313 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002045/0.4123, allocations: 43.89 kB / 0.5314 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.4123, allocations: 0 / 0.5314 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.4123, allocations: 11.94 kB / 0.5314 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4124, allocations: 0 / 0.5314 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4124, allocations: 0 / 0.5314 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006556/0.413, allocations: 0.6449 MB / 0.532 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/0.4131, allocations: 100.8 kB / 0.5321 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.4131, allocations: 16 kB / 0.5321 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.4133, allocations: 0 / 0.5321 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.027e-05/0.4133, allocations: 11.98 kB / 0.5322 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.4133, allocations: 8 kB / 0.5322 GB, free: 11.28 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.736e-05/0.4134, allocations: 99.27 kB / 0.5323 GB, free: 11.18 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4134, allocations: 4 kB / 0.5323 GB, free: 11.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002182/0.4156, allocations: 0.9057 MB / 0.5331 GB, free: 10.27 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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.003998/0.4196, allocations: 1.096 MB / 0.5342 GB, free: 9.168 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003988/0.42, allocations: 211.8 kB / 0.5344 GB, free: 8.961 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.42, allocations: 0 / 0.5344 GB, free: 8.961 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.4202, allocations: 155.9 kB / 0.5346 GB, free: 8.809 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005767/0.4208, allocations: 80.7 kB / 0.5346 GB, free: 8.73 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008736/0.4217, allocations: 0.5627 MB / 0.5352 GB, free: 8.137 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.422, allocations: 0.7328 MB / 0.5359 GB, free: 7.375 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004225/0.4224, allocations: 376.6 kB / 0.5363 GB, free: 7.008 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.4225, allocations: 35.41 kB / 0.5363 GB, free: 6.973 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4225, allocations: 0 / 0.5363 GB, free: 6.973 MB / 430.1 MB Notification: Performance of Templates: time 0.04043/0.4629, allocations: 33.6 MB / 0.5691 GB, free: 5.355 MB / 462.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)