Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Running command: translateModel(Annex60.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck") translateModel(Annex60.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck") [: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/Annex60 1.0.0/package.mo): time 0.2781/0.2781, allocations: 54.4 MB / 61.68 MB, free: 1.836 MB / 50.85 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001889/0.001889, allocations: 186.9 kB / 75.38 MB, free: 10.62 MB / 66.85 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.62/1.62, allocations: 194.2 MB / 283.2 MB, free: 9.336 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001676/0.001676, allocations: 112.3 kB / 341.3 MB, free: 2.25 MB / 258.8 MB Notification: Performance of FrontEnd - loaded program: time 9.908e-06/9.938e-06, allocations: 0 / 404.9 MB, free: 2.52 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1499, allocations: 57.65 MB / 462.6 MB, free: 8.785 MB / 386.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8834/1.033, allocations: 308.7 MB / 0.7532 GB, free: 55.37 MB / 482.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/1.034, allocations: 71.59 kB / 0.7533 GB, free: 55.33 MB / 482.8 MB Notification: Performance of FrontEnd: time 0.02451/1.058, allocations: 12.01 MB / 0.765 GB, free: 46.33 MB / 482.8 MB Notification: Performance of Transformations before backend: time 8.506e-06/1.058, allocations: 0 / 0.765 GB, free: 46.33 MB / 482.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000389/1.059, allocations: 341.7 kB / 0.7653 GB, free: 45.96 MB / 482.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/1.059, allocations: 15.97 kB / 0.7654 GB, free: 45.94 MB / 482.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/1.059, allocations: 0 / 0.7654 GB, free: 45.94 MB / 482.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/1.059, allocations: 171.9 kB / 0.7655 GB, free: 45.73 MB / 482.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/1.059, allocations: 0 / 0.7655 GB, free: 45.73 MB / 482.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.521e-05/1.059, allocations: 7.906 kB / 0.7655 GB, free: 45.73 MB / 482.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001046/1.059, allocations: 17.05 kB / 0.7655 GB, free: 45.71 MB / 482.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/1.059, allocations: 50.69 kB / 0.7656 GB, free: 45.66 MB / 482.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/1.059, allocations: 7.812 kB / 0.7656 GB, free: 45.66 MB / 482.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/1.059, allocations: 4 kB / 0.7656 GB, free: 45.66 MB / 482.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/1.059, allocations: 4 kB / 0.7656 GB, free: 45.65 MB / 482.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002083/1.06, allocations: 137.5 kB / 0.7657 GB, free: 45.48 MB / 482.8 MB Notification: Performance of preOpt comSubExp (simulation): time 8.759e-05/1.06, allocations: 39.7 kB / 0.7658 GB, free: 45.45 MB / 482.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.688e-05/1.06, allocations: 15.61 kB / 0.7658 GB, free: 45.43 MB / 482.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007843/1.061, allocations: 0.6029 MB / 0.7664 GB, free: 44.73 MB / 482.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/1.061, allocations: 38.48 kB / 0.7664 GB, free: 44.68 MB / 482.8 MB Notification: Performance of pre-optimization done (n=5): time 1.433e-06/1.061, allocations: 0 / 0.7664 GB, free: 44.68 MB / 482.8 MB Notification: Performance of matching and sorting (n=7): time 0.0006573/1.061, allocations: 272 kB / 0.7667 GB, free: 44.38 MB / 482.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/1.061, allocations: 51.41 kB / 0.7667 GB, free: 44.32 MB / 482.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.394e-05/1.061, allocations: 99.03 kB / 0.7668 GB, free: 44.21 MB / 482.8 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/1.061, allocations: 25.7 kB / 0.7668 GB, free: 44.18 MB / 482.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.163e-05/1.062, allocations: 86.2 kB / 0.7669 GB, free: 44.1 MB / 482.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.862e-05/1.062, allocations: 30.67 kB / 0.767 GB, free: 44.07 MB / 482.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-06/1.062, allocations: 0 / 0.767 GB, free: 44.07 MB / 482.8 MB Notification: Performance of setup shared object (initialization): time 8.344e-05/1.062, allocations: 321.5 kB / 0.7673 GB, free: 43.75 MB / 482.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.458e-05/1.062, allocations: 7.5 kB / 0.7673 GB, free: 43.75 MB / 482.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.03e-05/1.062, allocations: 50.42 kB / 0.7673 GB, free: 43.69 MB / 482.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.436e-05/1.062, allocations: 19.23 kB / 0.7673 GB, free: 43.67 MB / 482.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/1.062, allocations: 0 / 0.7673 GB, free: 43.67 MB / 482.8 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001166/1.062, allocations: 79.09 kB / 0.7674 GB, free: 43.59 MB / 482.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/1.062, allocations: 8 kB / 0.7674 GB, free: 43.59 MB / 482.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/1.062, allocations: 3.984 kB / 0.7674 GB, free: 43.58 MB / 482.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/1.062, allocations: 8.125 kB / 0.7674 GB, free: 43.57 MB / 482.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.906e-05/1.062, allocations: 21.44 kB / 0.7675 GB, free: 43.56 MB / 482.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/1.062, allocations: 3.938 kB / 0.7675 GB, free: 43.55 MB / 482.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.508e-05/1.062, allocations: 4 kB / 0.7675 GB, free: 43.55 MB / 482.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/1.062, allocations: 4 kB / 0.7675 GB, free: 43.55 MB / 482.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 7.443e-05/1.062, allocations: 107.1 kB / 0.7676 GB, free: 43.44 MB / 482.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/1.062, allocations: 7.984 kB / 0.7676 GB, free: 43.43 MB / 482.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.439e-05/1.062, allocations: 9.062 kB / 0.7676 GB, free: 43.43 MB / 482.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/1.062, allocations: 0 / 0.7676 GB, free: 43.43 MB / 482.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/1.062, allocations: 4 kB / 0.7676 GB, free: 43.42 MB / 482.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/1.062, allocations: 3.906 kB / 0.7676 GB, free: 43.42 MB / 482.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/1.063, allocations: 156.2 kB / 0.7677 GB, free: 43.23 MB / 482.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/1.063, allocations: 0 / 0.7677 GB, free: 43.23 MB / 482.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.657e-05/1.063, allocations: 12 kB / 0.7678 GB, free: 43.22 MB / 482.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/1.063, allocations: 4.281 kB / 0.7678 GB, free: 43.21 MB / 482.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/1.063, allocations: 0 / 0.7678 GB, free: 43.21 MB / 482.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.051e-06/1.063, allocations: 3.938 kB / 0.7678 GB, free: 43.21 MB / 482.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.063, allocations: 3.984 kB / 0.7678 GB, free: 43.21 MB / 482.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00016/1.063, allocations: 168.6 kB / 0.7679 GB, free: 43.04 MB / 482.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.247e-05/1.063, allocations: 92.47 kB / 0.768 GB, free: 42.93 MB / 482.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/1.063, allocations: 3.984 kB / 0.768 GB, free: 42.93 MB / 482.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/1.063, allocations: 1 kB / 0.768 GB, free: 42.93 MB / 482.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/1.063, allocations: 4 kB / 0.768 GB, free: 42.93 MB / 482.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/1.063, allocations: 0 / 0.768 GB, free: 42.93 MB / 482.8 MB Notification: Performance of sort global known variables: time 2.995e-05/1.063, allocations: 79.28 kB / 0.7681 GB, free: 42.85 MB / 482.8 MB Notification: Performance of remove unused functions: time 0.0002568/1.064, allocations: 19.23 kB / 0.7681 GB, free: 42.83 MB / 482.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0001872/1.064, allocations: 112.7 kB / 0.7682 GB, free: 42.71 MB / 482.8 MB Notification: Performance of simCode: created initialization part: time 0.000118/1.064, allocations: 42.48 kB / 0.7683 GB, free: 42.68 MB / 482.8 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/1.064, allocations: 0 / 0.7683 GB, free: 42.68 MB / 482.8 MB Notification: Performance of simCode: created simulation system equations: time 1.565e-05/1.064, allocations: 15.94 kB / 0.7683 GB, free: 42.66 MB / 482.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/1.064, allocations: 10.72 kB / 0.7683 GB, free: 42.66 MB / 482.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005299/1.065, allocations: 257 kB / 0.7685 GB, free: 42.4 MB / 482.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002147/1.065, allocations: 0.6997 MB / 0.7692 GB, free: 41.67 MB / 482.8 MB Notification: Performance of SimCode: time 3.61e-07/1.065, allocations: 1.219 kB / 0.7692 GB, free: 41.67 MB / 482.8 MB Notification: Performance of Templates: time 0.003359/1.068, allocations: 0.7963 MB / 0.77 GB, free: 40.91 MB / 482.8 MB make -j1 -f Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck.makefile (rm -f Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck.sim & ./Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Media.Examples.WaterDerivativeCheck.pipe 2>&1)