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.0009282/0.0009282, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001046/0.001046, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04428/0.04428, allocations: 9.059 MB / 279.4 MB, free: 12.27 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.0005298/0.0005298, allocations: 12.22 kB / 339.1 MB, free: 26.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08685, allocations: 49.19 MB / 388.3 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.0192/0.1061, allocations: 11.02 MB / 399.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.1183, allocations: 7.339 MB / 406.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.1185, allocations: 0 / 406.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002543/0.1187, allocations: 35.84 kB / 406.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006504/0.1252, allocations: 1.418 MB / 408.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008433/0.1337, allocations: 1.768 MB / 409.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002942/0.134, allocations: 107.8 kB / 410 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.64e-05/0.1341, allocations: 8 kB / 410 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.1342, allocations: 35.88 kB / 410 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.1344, allocations: 43.83 kB / 410 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.848e-05/0.1344, allocations: 4 kB / 410.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01648/0.1509, allocations: 6.738 MB / 416.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.596e-05/0.1509, allocations: 15.92 kB / 416.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.908e-05/0.151, allocations: 45.64 kB / 416.8 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004149/0.1552, allocations: 2.507 MB / 419.4 MB, free: 9.641 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1552, allocations: 4 kB / 419.4 MB, free: 9.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1552, allocations: 0 / 419.4 MB, free: 9.637 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.1552, allocations: 0 / 419.4 MB, free: 9.637 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001957/0.1572, allocations: 0.8578 MB / 420.2 MB, free: 8.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.1572, allocations: 8.031 kB / 420.2 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003408/0.1575, allocations: 39.88 kB / 420.3 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.1578, allocations: 214.8 kB / 420.5 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.1578, allocations: 4.188 kB / 420.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/0.1578, allocations: 16 kB / 420.5 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008188/0.1587, allocations: 256.5 kB / 420.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1587, allocations: 0 / 420.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.1587, allocations: 3.984 kB / 420.7 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.1587, allocations: 7.953 kB / 420.8 MB, free: 8.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007383/0.1595, allocations: 211.7 kB / 421 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007517/0.1602, allocations: 0.674 MB / 421.6 MB, free: 7.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008496/0.1611, allocations: 241 kB / 421.9 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3002/0.4613, allocations: 64.57 MB / 486.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.4614, allocations: 36.06 kB / 486.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.615e-06/0.4614, allocations: 0 / 486.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001697/0.4631, allocations: 369.6 kB / 486.8 MB, free: 5.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.4631, allocations: 77.11 kB / 486.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.4633, allocations: 129.6 kB / 487 MB, free: 5.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.4633, allocations: 33.53 kB / 487.1 MB, free: 5.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.464e-05/0.4634, allocations: 99.89 kB / 487.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.021e-05/0.4634, allocations: 48.39 kB / 487.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.4635, allocations: 4 kB / 487.2 MB, free: 5.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.4637, allocations: 321.1 kB / 487.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.4638, allocations: 55.97 kB / 487.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.4639, allocations: 87.3 kB / 487.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.4641, allocations: 66.64 kB / 487.7 MB, free: 4.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4641, allocations: 0 / 487.7 MB, free: 4.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004349/0.4645, allocations: 215.4 kB / 488 MB, free: 4.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4646, allocations: 8 kB / 488 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4646, allocations: 6.938 kB / 488 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.4646, allocations: 4 kB / 488 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002067/0.4648, allocations: 51.73 kB / 488 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.4648, allocations: 4 kB / 488 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.465, allocations: 14.58 kB / 488 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.465, allocations: 20.05 kB / 488.1 MB, free: 4.551 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001523/0.4652, allocations: 122.6 kB / 488.2 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.044e-05/0.4653, allocations: 15.91 kB / 488.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/0.4675, allocations: 2.098 MB / 490.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/0.4676, allocations: 5.062 kB / 490.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.4676, allocations: 4.516 kB / 490.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.4676, allocations: 3.953 kB / 490.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001244/0.4688, allocations: 1.048 MB / 491.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.4689, allocations: 3.984 kB / 491.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.4691, allocations: 35.44 kB / 491.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.4691, allocations: 0 / 491.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.4691, allocations: 8 kB / 491.4 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4692, allocations: 3.938 kB / 491.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.4692, allocations: 4.156 kB / 491.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008154/0.47, allocations: 0.6396 MB / 492 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.681e-05/0.4701, allocations: 107 kB / 492.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.4701, allocations: 8 kB / 492.2 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.4703, allocations: 0 / 492.2 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.4703, allocations: 24 kB / 492.2 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.4704, allocations: 3.891 kB / 492.2 MB, free: 292 kB / 334.1 MB Notification: Performance of sorting global known variables: time 8.931e-05/0.4705, allocations: 103.3 kB / 492.3 MB, free: 188 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4705, allocations: 0 / 492.3 MB, free: 188 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.003177/0.4737, allocations: 0.903 MB / 493.2 MB, free: 15.35 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005288/0.479, allocations: 1.098 MB / 494.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000502/0.4795, allocations: 216.4 kB / 494.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.4795, allocations: 0 / 494.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002345/0.4797, allocations: 152.5 kB / 494.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006357/0.4804, allocations: 68.05 kB / 494.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.4816, allocations: 0.6741 MB / 495.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.482, allocations: 0.737 MB / 496.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005029/0.4825, allocations: 381.5 kB / 496.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.4826, allocations: 31.42 kB / 496.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of SimCode: time 2.495e-06/0.4826, allocations: 0 / 496.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of Templates: time 0.05492/0.5375, allocations: 34.04 MB / 0.5181 GB, free: 10.03 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: