Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.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.WaterCooler_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|coo.TSet|coo.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|coo.TSet|coo.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T") [: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.189/1.189, allocations: 249.4 MB / 256.7 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009946/0.0009945, allocations: 188.3 kB / 316 MB, free: 3.52 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.062/1.062, allocations: 205.1 MB / 0.5667 GB, free: 15.66 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.0007786/0.0007786, allocations: 85.7 kB / 0.671 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.853e-06/6.883e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1558, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9182/1.074, allocations: 447.3 MB / 1.321 GB, free: 299.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/1.074, allocations: 95.52 kB / 1.321 GB, free: 299.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.868/3.942, allocations: 1.136 GB / 2.458 GB, free: 122.9 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001794/3.942, allocations: 56.59 kB / 2.458 GB, free: 122.9 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003249/3.945, allocations: 2.085 MB / 2.46 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/3.945, allocations: 10.84 kB / 2.46 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00197/3.947, allocations: 484.4 kB / 2.46 GB, free: 121.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005154/3.953, allocations: 2.319 MB / 2.462 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.973e-05/3.953, allocations: 36.05 kB / 2.462 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/3.953, allocations: 73.8 kB / 2.462 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001348/3.954, allocations: 0.7816 MB / 2.463 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/3.956, allocations: 1.103 MB / 2.464 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/3.956, allocations: 0 / 2.464 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.01e-05/3.956, allocations: 7.625 kB / 2.464 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.04e-05/3.956, allocations: 28.05 kB / 2.464 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006562/3.962, allocations: 6.913 MB / 2.471 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008275/3.963, allocations: 0.6205 MB / 2.472 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003764/3.964, allocations: 315.2 kB / 2.472 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0037/3.967, allocations: 2.82 MB / 2.475 GB, free: 111.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004557/3.968, allocations: 342.8 kB / 2.475 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=64): time 2.836e-06/3.968, allocations: 0 / 2.475 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=64): time 0.002116/3.97, allocations: 0.8615 MB / 2.476 GB, free: 111.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/3.97, allocations: 163.8 kB / 2.476 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/3.971, allocations: 1.249 MB / 2.477 GB, free: 110.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/3.971, allocations: 25.7 kB / 2.477 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004382/3.972, allocations: 0.5795 MB / 2.478 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/3.972, allocations: 220.9 kB / 2.478 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/3.972, allocations: 0 / 2.478 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.534e-05/3.972, allocations: 345.9 kB / 2.478 GB, free: 109.7 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003793/3.973, allocations: 278.4 kB / 2.479 GB, free: 109.6 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005528/3.973, allocations: 0.6988 MB / 2.479 GB, free: 109 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/3.975, allocations: 0.5405 MB / 2.48 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/3.975, allocations: 3.625 kB / 2.48 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002486/3.977, allocations: 1.196 MB / 2.481 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007218/3.978, allocations: 4.506 MB / 2.485 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/3.978, allocations: 12.78 kB / 2.485 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.542e-05/3.978, allocations: 24.69 kB / 2.486 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/3.979, allocations: 259.2 kB / 2.486 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/3.979, allocations: 26.91 kB / 2.486 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/3.98, allocations: 162.5 kB / 2.486 GB, free: 103.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/3.981, allocations: 55.89 kB / 2.486 GB, free: 103.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-06/3.981, allocations: 3.25 kB / 2.486 GB, free: 103.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002203/3.983, allocations: 0.9697 MB / 2.487 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/3.983, allocations: 13.14 kB / 2.487 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/3.983, allocations: 18.28 kB / 2.487 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/3.984, allocations: 254.2 kB / 2.487 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.427e-05/3.984, allocations: 22.98 kB / 2.487 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/3.985, allocations: 133.3 kB / 2.487 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/3.985, allocations: 59.78 kB / 2.487 GB, free: 103.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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.0002265/3.986, allocations: 143 kB / 2.488 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002151/3.986, allocations: 168 kB / 2.488 GB, free: 103.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002636/3.988, allocations: 1.138 MB / 2.489 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/3.988, allocations: 8.953 kB / 2.489 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/3.988, allocations: 1.75 kB / 2.489 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001694/3.99, allocations: 0.9031 MB / 2.49 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003908/3.994, allocations: 2.124 MB / 2.492 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/3.994, allocations: 7.719 kB / 2.492 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007489/3.995, allocations: 140.3 kB / 2.492 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/3.995, allocations: 29.91 kB / 2.492 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.642e-05/3.995, allocations: 19.67 kB / 2.492 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008045/3.996, allocations: 1.26 MB / 2.493 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/3.996, allocations: 5.594 kB / 2.493 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002296/3.998, allocations: 1.43 MB / 2.495 GB, free: 99.42 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005645/3.999, allocations: 344.8 kB / 2.495 GB, free: 99.17 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002094/3.999, allocations: 7.953 kB / 2.495 GB, free: 99.17 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008819/4, allocations: 78.5 kB / 2.495 GB, free: 99.16 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/4, allocations: 49 kB / 2.495 GB, free: 99.16 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.271e-05/4, allocations: 35 kB / 2.495 GB, free: 99.15 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001309/4.001, allocations: 0.9276 MB / 2.496 GB, free: 98.76 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003566/4.005, allocations: 0.9964 MB / 2.497 GB, free: 98.52 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,coo.outCon.T) * 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 (74): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.002179/4.007, allocations: 1.223 MB / 2.498 GB, free: 98.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002351/4.01, allocations: 1.37 MB / 2.5 GB, free: 97.62 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/4.01, allocations: 3.781 kB / 2.5 GB, free: 97.62 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0006748/4.01, allocations: 447.1 kB / 2.5 GB, free: 97.41 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/4.013, allocations: 0.6033 MB / 2.501 GB, free: 97.28 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005474/4.019, allocations: 2.363 MB / 2.503 GB, free: 96.41 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001598/4.02, allocations: 1.572 MB / 2.504 GB, free: 95.62 MB / 0.8855 GB Notification: Performance of SimCode: time 6.21e-07/4.02, allocations: 0.75 kB / 2.504 GB, free: 95.62 MB / 0.8855 GB Notification: Performance of Templates: time 0.05673/4.077, allocations: 37.17 MB / 2.541 GB, free: 69.75 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches