Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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/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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.174/1.174, allocations: 249.4 MB / 256.7 MB, free: 15.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 188.7 kB / 316 MB, free: 7.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.232/1.232, allocations: 205.1 MB / 0.5667 GB, free: 23.95 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008365/0.0008365, allocations: 98.69 kB / 0.671 GB, free: 1.266 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 7.935e-06/7.945e-06, allocations: 4 kB / 0.7807 GB, free: 0.7812 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.357, allocations: 106.3 MB / 0.8846 GB, free: 76.36 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6691/1.026, allocations: 439.6 MB / 1.314 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/1.026, allocations: 92.7 kB / 1.314 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.166/4.192, allocations: 1.104 GB / 2.418 GB, free: 126.7 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001861/4.192, allocations: 51.41 kB / 2.418 GB, free: 126.7 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.003309/4.196, allocations: 2.198 MB / 2.42 GB, free: 125.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/4.196, allocations: 14.17 kB / 2.42 GB, free: 125.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/4.197, allocations: 386.4 kB / 2.42 GB, free: 125.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004527/4.202, allocations: 2.49 MB / 2.423 GB, free: 125.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/4.202, allocations: 41.03 kB / 2.423 GB, free: 125.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/4.202, allocations: 80.69 kB / 2.423 GB, free: 125.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001364/4.203, allocations: 0.8734 MB / 2.424 GB, free: 125.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/4.205, allocations: 1.184 MB / 2.425 GB, free: 125.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/4.205, allocations: 6.562 kB / 2.425 GB, free: 125.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-05/4.205, allocations: 3.062 kB / 2.425 GB, free: 125.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.188e-05/4.205, allocations: 31.25 kB / 2.425 GB, free: 125.1 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006745/4.212, allocations: 7.653 MB / 2.432 GB, free: 120.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008472/4.213, allocations: 0.6556 MB / 2.433 GB, free: 120.6 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003919/4.213, allocations: 362.8 kB / 2.433 GB, free: 120.6 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002581/4.216, allocations: 2.147 MB / 2.435 GB, free: 119.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004513/4.216, allocations: 377.6 kB / 2.436 GB, free: 119.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=72): time 2.254e-06/4.216, allocations: 0 / 2.436 GB, free: 119.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72): time 0.001766/4.218, allocations: 0.8614 MB / 2.437 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/4.218, allocations: 162.7 kB / 2.437 GB, free: 119 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/4.219, allocations: 1.197 MB / 2.438 GB, free: 118.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.315e-05/4.219, allocations: 29.58 kB / 2.438 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000352/4.22, allocations: 0.5834 MB / 2.438 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/4.22, allocations: 245.3 kB / 2.439 GB, free: 118.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.307e-05/4.22, allocations: 3.812 kB / 2.439 GB, free: 118.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.632e-05/4.22, allocations: 351.3 kB / 2.439 GB, free: 118.1 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/4.22, allocations: 298.9 kB / 2.439 GB, free: 118.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005083/4.221, allocations: 0.6655 MB / 2.44 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/4.222, allocations: 0.4938 MB / 2.44 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.79e-06/4.222, allocations: 3 kB / 2.44 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.001961/4.224, allocations: 1.147 MB / 2.442 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005075/4.224, allocations: 3.7 MB / 2.445 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/4.224, allocations: 13.38 kB / 2.445 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/4.224, allocations: 17.72 kB / 2.445 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009662/4.225, allocations: 263 kB / 2.446 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/4.225, allocations: 17.72 kB / 2.446 GB, free: 113.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/4.227, allocations: 170.1 kB / 2.446 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.018e-05/4.227, allocations: 53.05 kB / 2.446 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.861e-06/4.227, allocations: 2.531 kB / 2.446 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001691/4.229, allocations: 0.9314 MB / 2.447 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/4.229, allocations: 10.91 kB / 2.447 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/4.229, allocations: 19.28 kB / 2.447 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009099/4.229, allocations: 259.7 kB / 2.447 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/4.229, allocations: 24.59 kB / 2.447 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/4.231, allocations: 151 kB / 2.447 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.888e-05/4.231, allocations: 57.17 kB / 2.447 GB, free: 113.5 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (125): * Single equations (assignments): 121 * 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.0001857/4.231, allocations: 134.6 kB / 2.447 GB, free: 113.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/4.231, allocations: 172.4 kB / 2.447 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002083/4.233, allocations: 1.089 MB / 2.448 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/4.233, allocations: 11.44 kB / 2.449 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/4.233, allocations: 0 / 2.449 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001183/4.234, allocations: 0.7406 MB / 2.449 GB, free: 113.1 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/4.238, allocations: 2.202 MB / 2.451 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/4.238, allocations: 0 / 2.451 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007587/4.238, allocations: 173.2 kB / 2.452 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001619/4.239, allocations: 29.44 kB / 2.452 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/4.239, allocations: 14.56 kB / 2.452 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006857/4.239, allocations: 1.264 MB / 2.453 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/4.239, allocations: 0 / 2.453 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001866/4.241, allocations: 1.472 MB / 2.454 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00052/4.242, allocations: 356.6 kB / 2.455 GB, free: 111.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002048/4.242, allocations: 7.234 kB / 2.455 GB, free: 111.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009274/4.243, allocations: 95.77 kB / 2.455 GB, free: 111.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/4.243, allocations: 57.08 kB / 2.455 GB, free: 111.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.53e-05/4.243, allocations: 32.2 kB / 2.455 GB, free: 111.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0009879/4.244, allocations: 0.8997 MB / 2.456 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002681/4.247, allocations: 1.082 MB / 2.457 GB, free: 110.7 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (81): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001599/4.248, allocations: 1.142 MB / 2.458 GB, free: 110.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001828/4.25, allocations: 1.45 MB / 2.459 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/4.25, allocations: 0 / 2.459 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005813/4.251, allocations: 496.1 kB / 2.46 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002673/4.253, allocations: 0.7092 MB / 2.46 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004074/4.258, allocations: 2.415 MB / 2.463 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/4.259, allocations: 1.604 MB / 2.464 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of SimCode: time 7.41e-07/4.259, allocations: 0 / 2.464 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of Templates: time 0.05254/4.311, allocations: 39.81 MB / 2.503 GB, free: 107.5 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches