Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.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.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.ports.1..m_flow|vol.heatPort.Q_flow|vol.heatPort.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate") translateModel(Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.ports.1..m_flow|vol.heatPort.Q_flow|vol.heatPort.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate") [: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.196/1.196, allocations: 249.4 MB / 256.7 MB, free: 6.93 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.0009868/0.0009868, allocations: 189.2 kB / 316 MB, free: 3.547 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.093/1.093, allocations: 205.2 MB / 0.5667 GB, free: 15.63 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.0008439/0.000844, allocations: 91.52 kB / 0.671 GB, free: 4.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.512e-06/6.532e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1597, allocations: 106.3 MB / 0.8846 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.85/4.01, allocations: 2.19 GB / 3.074 GB, free: 173.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/4.01, allocations: 87.61 kB / 3.074 GB, free: 173.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.9878/4.998, allocations: 379.4 MB / 3.445 GB, free: 125 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.978e-05/4.998, allocations: 16 kB / 3.445 GB, free: 125 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001293/4.999, allocations: 0.8879 MB / 3.446 GB, free: 124 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/4.999, allocations: 16.03 kB / 3.446 GB, free: 124 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/5.001, allocations: 271 kB / 3.446 GB, free: 123.8 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007357/5.001, allocations: 491.2 kB / 3.446 GB, free: 123.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003095/5.002, allocations: 92.92 kB / 3.446 GB, free: 123.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.941e-05/5.002, allocations: 24 kB / 3.446 GB, free: 123.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005487/5.002, allocations: 389.9 kB / 3.447 GB, free: 122.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006171/5.003, allocations: 0.5089 MB / 3.447 GB, free: 122.2 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/5.003, allocations: 0 / 3.447 GB, free: 122.2 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.857e-05/5.003, allocations: 3.938 kB / 3.447 GB, free: 122.2 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/5.003, allocations: 17 kB / 3.447 GB, free: 122.2 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/5.006, allocations: 2.066 MB / 3.449 GB, free: 120.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/5.006, allocations: 146.5 kB / 3.449 GB, free: 119.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/5.006, allocations: 88.83 kB / 3.45 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/5.006, allocations: 7.938 kB / 3.45 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.332e-05/5.006, allocations: 34.55 kB / 3.45 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/5.006, allocations: 0 / 3.45 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.001582/5.008, allocations: 433.9 kB / 3.45 GB, free: 119.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.995e-05/5.008, allocations: 77.11 kB / 3.45 GB, free: 119.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/5.008, allocations: 349.2 kB / 3.45 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/5.008, allocations: 29.7 kB / 3.45 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.498e-05/5.008, allocations: 271.1 kB / 3.451 GB, free: 118.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/5.008, allocations: 39.45 kB / 3.451 GB, free: 118.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/5.008, allocations: 0 / 3.451 GB, free: 118.5 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.189e-05/5.008, allocations: 346.8 kB / 3.451 GB, free: 118.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/5.008, allocations: 104 kB / 3.451 GB, free: 118.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/5.009, allocations: 192.4 kB / 3.451 GB, free: 117.9 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/5.009, allocations: 138.1 kB / 3.451 GB, free: 117.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/5.009, allocations: 0 / 3.451 GB, free: 117.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001599/5.01, allocations: 0.5483 MB / 3.452 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/5.01, allocations: 8.094 kB / 3.452 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/5.01, allocations: 4 kB / 3.452 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000331/5.011, allocations: 124.8 kB / 3.452 GB, free: 117 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000345/5.011, allocations: 83.88 kB / 3.452 GB, free: 117 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/5.013, allocations: 1.725 MB / 3.454 GB, free: 115.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005023/5.013, allocations: 79.77 kB / 3.454 GB, free: 115 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.696e-05/5.014, allocations: 15.98 kB / 3.454 GB, free: 115 MB / 0.8698 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaFlo.Q_flow:VARIABLE(unit = "W" ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001111/5.014, allocations: 112.9 kB / 3.454 GB, free: 114.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/5.014, allocations: 43.47 kB / 3.454 GB, free: 114.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.355e-05/5.014, allocations: 43.34 kB / 3.454 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/5.014, allocations: 7.906 kB / 3.454 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/5.014, allocations: 0 / 3.454 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/5.014, allocations: 0 / 3.454 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/5.016, allocations: 0.899 MB / 3.455 GB, free: 113.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/5.016, allocations: 4 kB / 3.455 GB, free: 113.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/5.016, allocations: 52.02 kB / 3.455 GB, free: 113.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002693/5.016, allocations: 128.7 kB / 3.455 GB, free: 113.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/5.016, allocations: 3.984 kB / 3.455 GB, free: 113.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/5.018, allocations: 1.725 MB / 3.457 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/5.018, allocations: 8.062 kB / 3.457 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00149/5.02, allocations: 0.5515 MB / 3.457 GB, free: 111.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/5.02, allocations: 152.6 kB / 3.458 GB, free: 111.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.524e-05/5.02, allocations: 4 kB / 3.458 GB, free: 111.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005697/5.02, allocations: 63.94 kB / 3.458 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.072e-05/5.02, allocations: 19.83 kB / 3.458 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.092e-05/5.02, allocations: 11.98 kB / 3.458 GB, free: 111 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0001962/5.021, allocations: 271.2 kB / 3.458 GB, free: 110.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0006968/5.021, allocations: 247.4 kB / 3.458 GB, free: 110.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001015/5.022, allocations: 1.145 MB / 3.459 GB, free: 109.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004615/5.023, allocations: 342.2 kB / 3.46 GB, free: 109.1 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/5.023, allocations: 0 / 3.46 GB, free: 109.1 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002108/5.023, allocations: 194.6 kB / 3.46 GB, free: 108.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000791/5.024, allocations: 180 kB / 3.46 GB, free: 108.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/5.026, allocations: 0.7417 MB / 3.461 GB, free: 108 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/5.026, allocations: 0.9197 MB / 3.462 GB, free: 107 MB / 0.8698 GB Notification: Performance of SimCode: time 2.6e-07/5.026, allocations: 0 / 3.462 GB, free: 107 MB / 0.8698 GB Notification: Performance of Templates: time 0.01699/5.043, allocations: 14.47 MB / 3.476 GB, free: 92.67 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_MixingVolumes_Examples_MixingVolumePrescribedHeatFlowRate.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches