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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00209/0.00209, allocations: 181.4 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.03881/0.03881, allocations: 8.671 MB / 16.54 MB, free: 196 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.065/1.065, allocations: 205.2 MB / 223.8 MB, free: 4.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008192/0.0008195, allocations: 91.19 kB / 273.4 MB, free: 2.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.653e-06/6.933e-06, allocations: 0 / 328.6 MB, free: 11.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2093, allocations: 49.18 MB / 377.7 MB, free: 41.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.636/4.845, allocations: 2.77 GB / 3.138 GB, free: 94.15 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/4.845, allocations: 59.83 kB / 3.139 GB, free: 94.1 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.4481/5.293, allocations: 104.7 MB / 3.241 GB, free: 88.83 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.11e-05/5.294, allocations: 0 / 3.241 GB, free: 88.83 MB / 442.7 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.004427/5.298, allocations: 0.8881 MB / 3.242 GB, free: 88.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/5.298, allocations: 11.91 kB / 3.242 GB, free: 88.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003759/5.298, allocations: 42.67 kB / 3.242 GB, free: 88.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/5.299, allocations: 211.8 kB / 3.242 GB, free: 88.12 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/5.299, allocations: 7.812 kB / 3.242 GB, free: 88.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/5.299, allocations: 7.938 kB / 3.242 GB, free: 88.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001308/5.299, allocations: 63.41 kB / 3.242 GB, free: 88.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/5.299, allocations: 107.7 kB / 3.242 GB, free: 88.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/5.299, allocations: 3.906 kB / 3.242 GB, free: 88.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/5.299, allocations: 0 / 3.242 GB, free: 88.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/5.299, allocations: 7.906 kB / 3.242 GB, free: 88.07 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004937/5.299, allocations: 0.6215 MB / 3.243 GB, free: 87.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/5.3, allocations: 126.9 kB / 3.243 GB, free: 87.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.373e-05/5.3, allocations: 52.98 kB / 3.243 GB, free: 87.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1087/5.408, allocations: 64 MB / 3.305 GB, free: 47.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/5.409, allocations: 30.56 kB / 3.305 GB, free: 47.31 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 2.354e-06/5.409, allocations: 0 / 3.305 GB, free: 47.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007894/5.409, allocations: 198 kB / 3.306 GB, free: 47.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/5.409, allocations: 80.64 kB / 3.306 GB, free: 47.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.681e-05/5.409, allocations: 115.5 kB / 3.306 GB, free: 47.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/5.41, allocations: 25.7 kB / 3.306 GB, free: 47.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.941e-05/5.41, allocations: 94.5 kB / 3.306 GB, free: 46.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.212e-05/5.41, allocations: 53.72 kB / 3.306 GB, free: 46.94 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/5.41, allocations: 0 / 3.306 GB, free: 46.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.878e-05/5.41, allocations: 318 kB / 3.306 GB, free: 46.63 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.612e-05/5.41, allocations: 28.53 kB / 3.306 GB, free: 46.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.75e-05/5.41, allocations: 59.86 kB / 3.306 GB, free: 46.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/5.41, allocations: 36.36 kB / 3.306 GB, free: 46.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/5.41, allocations: 3.906 kB / 3.306 GB, free: 46.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005414/5.41, allocations: 217.4 kB / 3.307 GB, free: 46.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/5.41, allocations: 7.5 kB / 3.307 GB, free: 46.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/5.411, allocations: 0 / 3.307 GB, free: 46.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/5.411, allocations: 0 / 3.307 GB, free: 46.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/5.411, allocations: 41.33 kB / 3.307 GB, free: 46.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/5.411, allocations: 5.281 kB / 3.307 GB, free: 46.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.803e-05/5.411, allocations: 6.859 kB / 3.307 GB, free: 46.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/5.411, allocations: 9.094 kB / 3.307 GB, free: 46.55 MB / 442.7 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 () * 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 6.272e-05/5.411, allocations: 107.9 kB / 3.307 GB, free: 46.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/5.411, allocations: 106.4 kB / 3.307 GB, free: 46.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006767/5.412, allocations: 0.7159 MB / 3.308 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/5.412, allocations: 7.609 kB / 3.308 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/5.412, allocations: 0 / 3.308 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/5.412, allocations: 0 / 3.308 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000332/5.412, allocations: 350.3 kB / 3.308 GB, free: 46.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/5.412, allocations: 0 / 3.308 GB, free: 46.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/5.412, allocations: 22.06 kB / 3.308 GB, free: 46.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/5.412, allocations: 12.44 kB / 3.308 GB, free: 46.19 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/5.412, allocations: 0 / 3.308 GB, free: 46.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/5.412, allocations: 0 / 3.308 GB, free: 46.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/5.412, allocations: 7.812 kB / 3.308 GB, free: 46.19 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001098/5.414, allocations: 0.912 MB / 3.309 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.803e-05/5.414, allocations: 92.36 kB / 3.309 GB, free: 45.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/5.414, allocations: 7.75 kB / 3.309 GB, free: 45.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/5.414, allocations: 3.656 kB / 3.309 GB, free: 45.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/5.414, allocations: 19.8 kB / 3.309 GB, free: 45.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/5.414, allocations: 3.969 kB / 3.309 GB, free: 45.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.994e-05/5.414, allocations: 104.1 kB / 3.309 GB, free: 45.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003979/5.418, allocations: 0.9241 MB / 3.31 GB, free: 45.61 MB / 442.7 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 () * 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.006888/5.425, allocations: 1.315 MB / 3.311 GB, free: 45.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000326/5.425, allocations: 308.8 kB / 3.311 GB, free: 45.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/5.425, allocations: 0 / 3.311 GB, free: 45.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002354/5.425, allocations: 329.9 kB / 3.312 GB, free: 45.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/5.426, allocations: 54.06 kB / 3.312 GB, free: 45.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007533/5.427, allocations: 0.5378 MB / 3.312 GB, free: 45.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/5.427, allocations: 0.7626 MB / 3.313 GB, free: 44.4 MB / 442.7 MB Notification: Performance of SimCode: time 2.3e-07/5.427, allocations: 0 / 3.313 GB, free: 44.4 MB / 442.7 MB Notification: Performance of Templates: time 0.03405/5.461, allocations: 25.87 MB / 3.338 GB, free: 42.77 MB / 442.7 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)