Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.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.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u") [: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.292/0.292, allocations: 54.4 MB / 61.68 MB, free: 1.828 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.001176/0.001176, allocations: 191 kB / 75.38 MB, free: 10.6 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.6/1.6, allocations: 194.2 MB / 283.2 MB, free: 9.398 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.001739/0.001739, allocations: 113.7 kB / 341.3 MB, free: 2.266 MB / 258.8 MB Notification: Performance of FrontEnd - loaded program: time 8.516e-06/8.636e-06, allocations: 4 kB / 405 MB, free: 2.527 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1538, allocations: 57.63 MB / 462.6 MB, free: 8.812 MB / 386.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.264/1.418, allocations: 385.9 MB / 0.8286 GB, free: 154.9 MB / 498.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/1.418, allocations: 86.75 kB / 0.8287 GB, free: 154.9 MB / 498.8 MB Notification: Performance of FrontEnd: time 3.307/4.725, allocations: 0.8845 GB / 1.713 GB, free: 49.02 MB / 0.5028 GB Notification: Performance of Transformations before backend: time 0.0005832/4.726, allocations: 61.86 kB / 1.713 GB, free: 49.01 MB / 0.5028 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.008199/4.734, allocations: 2.159 MB / 1.715 GB, free: 47.79 MB / 0.5028 GB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/4.734, allocations: 13.62 kB / 1.715 GB, free: 47.79 MB / 0.5028 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002569/4.737, allocations: 398.5 kB / 1.716 GB, free: 47.67 MB / 0.5028 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01453/4.751, allocations: 4.688 MB / 1.72 GB, free: 46.76 MB / 0.5028 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/4.752, allocations: 41.06 kB / 1.72 GB, free: 46.76 MB / 0.5028 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005549/4.752, allocations: 83.28 kB / 1.72 GB, free: 46.76 MB / 0.5028 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002785/4.755, allocations: 0.8687 MB / 1.721 GB, free: 46.41 MB / 0.5028 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004006/4.759, allocations: 1.208 MB / 1.722 GB, free: 45.75 MB / 0.5028 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.717e-05/4.759, allocations: 7.875 kB / 1.722 GB, free: 45.75 MB / 0.5028 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003166/4.759, allocations: 6.062 kB / 1.723 GB, free: 45.75 MB / 0.5028 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.68e-05/4.759, allocations: 32.66 kB / 1.723 GB, free: 45.75 MB / 0.5028 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01368/4.773, allocations: 7.78 MB / 1.73 GB, free: 39.74 MB / 0.5028 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/4.774, allocations: 0.671 MB / 1.731 GB, free: 39.49 MB / 0.5028 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006126/4.775, allocations: 375.3 kB / 1.731 GB, free: 39.35 MB / 0.5028 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004409/4.779, allocations: 1.909 MB / 1.733 GB, free: 37.9 MB / 0.5028 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00077/4.78, allocations: 411.2 kB / 1.733 GB, free: 37.71 MB / 0.5028 GB Notification: Performance of pre-optimization done (n=73): time 3.737e-06/4.78, allocations: 0 / 1.733 GB, free: 37.71 MB / 0.5028 GB Notification: Performance of matching and sorting (n=75): time 0.007723/4.788, allocations: 2.158 MB / 1.736 GB, free: 36.67 MB / 0.5028 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/4.788, allocations: 213.4 kB / 1.736 GB, free: 36.42 MB / 0.5028 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003054/4.791, allocations: 1.192 MB / 1.737 GB, free: 35.92 MB / 0.5028 GB Notification: Performance of collectPreVariables (initialization): time 0.0001194/4.791, allocations: 28.42 kB / 1.737 GB, free: 35.89 MB / 0.5028 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007657/4.792, allocations: 0.5818 MB / 1.737 GB, free: 35.48 MB / 0.5028 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003278/4.792, allocations: 251.8 kB / 1.738 GB, free: 35.29 MB / 0.5028 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.37e-05/4.793, allocations: 0 / 1.738 GB, free: 35.29 MB / 0.5028 GB Notification: Performance of setup shared object (initialization): time 0.0001236/4.793, allocations: 354.7 kB / 1.738 GB, free: 34.96 MB / 0.5028 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/4.793, allocations: 306.5 kB / 1.738 GB, free: 34.84 MB / 0.5028 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008384/4.794, allocations: 0.6896 MB / 1.739 GB, free: 34.22 MB / 0.5028 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/4.796, allocations: 499.2 kB / 1.739 GB, free: 34.07 MB / 0.5028 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/4.796, allocations: 3.375 kB / 1.739 GB, free: 34.07 MB / 0.5028 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003076/4.799, allocations: 1.164 MB / 1.741 GB, free: 33.65 MB / 0.5028 GB Notification: Performance of prepare postOptimizeDAE: time 0.001102/4.8, allocations: 3.789 MB / 1.744 GB, free: 29.59 MB / 0.5028 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.885e-05/4.8, allocations: 9.531 kB / 1.744 GB, free: 29.59 MB / 0.5028 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.947e-05/4.8, allocations: 16.59 kB / 1.744 GB, free: 29.59 MB / 0.5028 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/4.801, allocations: 274.4 kB / 1.745 GB, free: 29.57 MB / 0.5028 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-05/4.801, allocations: 30.95 kB / 1.745 GB, free: 29.56 MB / 0.5028 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/4.803, allocations: 104.2 kB / 1.745 GB, free: 29.56 MB / 0.5028 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/4.803, allocations: 59.38 kB / 1.745 GB, free: 29.55 MB / 0.5028 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/4.803, allocations: 4.344 kB / 1.745 GB, free: 29.55 MB / 0.5028 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002222/4.806, allocations: 0.9232 MB / 1.746 GB, free: 29.26 MB / 0.5028 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-05/4.806, allocations: 14.5 kB / 1.746 GB, free: 29.26 MB / 0.5028 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/4.806, allocations: 18.97 kB / 1.746 GB, free: 29.26 MB / 0.5028 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/4.807, allocations: 258.5 kB / 1.746 GB, free: 29.24 MB / 0.5028 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.03e-05/4.807, allocations: 26.94 kB / 1.746 GB, free: 29.23 MB / 0.5028 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/4.809, allocations: 98.05 kB / 1.746 GB, free: 29.22 MB / 0.5028 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/4.809, allocations: 61.53 kB / 1.746 GB, free: 29.21 MB / 0.5028 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0003751/4.809, allocations: 148.3 kB / 1.746 GB, free: 29.07 MB / 0.5028 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005334/4.81, allocations: 163.2 kB / 1.746 GB, free: 28.98 MB / 0.5028 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/4.813, allocations: 1.176 MB / 1.748 GB, free: 28.12 MB / 0.5028 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/4.813, allocations: 11.23 kB / 1.748 GB, free: 28.11 MB / 0.5028 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/4.813, allocations: 4 kB / 1.748 GB, free: 28.11 MB / 0.5028 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001671/4.815, allocations: 0.8076 MB / 1.748 GB, free: 27.39 MB / 0.5028 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007438/4.822, allocations: 2.449 MB / 1.751 GB, free: 25.38 MB / 0.5028 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/4.822, allocations: 4 kB / 1.751 GB, free: 25.38 MB / 0.5028 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009776/4.823, allocations: 172.1 kB / 1.751 GB, free: 25.24 MB / 0.5028 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004186/4.824, allocations: 92.19 kB / 1.751 GB, free: 25.16 MB / 0.5028 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/4.824, allocations: 22.66 kB / 1.751 GB, free: 25.15 MB / 0.5028 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009059/4.825, allocations: 1.175 MB / 1.752 GB, free: 23.95 MB / 0.5028 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/4.825, allocations: 4 kB / 1.752 GB, free: 23.95 MB / 0.5028 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002864/4.828, allocations: 1.844 MB / 1.754 GB, free: 22.14 MB / 0.5028 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/4.829, allocations: 344.4 kB / 1.754 GB, free: 21.83 MB / 0.5028 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005553/4.829, allocations: 11.19 kB / 1.754 GB, free: 21.82 MB / 0.5028 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/4.831, allocations: 114.6 kB / 1.754 GB, free: 21.75 MB / 0.5028 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/4.831, allocations: 70.2 kB / 1.755 GB, free: 21.71 MB / 0.5028 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.702e-05/4.831, allocations: 36.94 kB / 1.755 GB, free: 21.68 MB / 0.5028 GB Notification: Performance of sort global known variables: time 0.001898/4.833, allocations: 0.8949 MB / 1.755 GB, free: 20.88 MB / 0.5028 GB Notification: Performance of remove unused functions: time 0.0047/4.838, allocations: 0.9131 MB / 1.756 GB, free: 19.98 MB / 0.5028 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002901/4.841, allocations: 1.112 MB / 1.757 GB, free: 19.1 MB / 0.5028 GB Notification: Performance of simCode: created initialization part: time 0.002781/4.844, allocations: 1.503 MB / 1.759 GB, free: 17.65 MB / 0.5028 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/4.844, allocations: 0 / 1.759 GB, free: 17.65 MB / 0.5028 GB Notification: Performance of simCode: created simulation system equations: time 0.0008658/4.844, allocations: 458.6 kB / 1.759 GB, free: 17.24 MB / 0.5028 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004148/4.849, allocations: 0.7279 MB / 1.76 GB, free: 16.65 MB / 0.5028 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006891/4.855, allocations: 2.516 MB / 1.763 GB, free: 14.08 MB / 0.5028 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001968/4.857, allocations: 1.605 MB / 1.764 GB, free: 12.44 MB / 0.5028 GB Notification: Performance of SimCode: time 1.172e-06/4.857, allocations: 0 / 1.764 GB, free: 12.44 MB / 0.5028 GB Notification: Performance of Templates: time 0.4336/5.291, allocations: 40.27 MB / 1.803 GB, free: 97.02 MB / 0.5184 GB make -j1 -f Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)