Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly.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.ActiveBeams.Examples.HeatingOnly,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|beaCooHea.heaToRoo.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly") translateModel(Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|beaCooHea.heaToRoo.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.538/1.538, allocations: 249.3 MB / 261.8 MB, free: 5.902 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.001085/0.001085, allocations: 166.7 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.69/1.69, allocations: 205.2 MB / 0.572 GB, free: 10.59 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.0008415/0.0008415, allocations: 98.41 kB / 0.6764 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.95e-05/3.994e-05, allocations: 4 kB / 0.7879 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2447, allocations: 106.3 MB / 0.8918 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.854/7.099, allocations: 2.461 GB / 3.353 GB, free: 267.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/7.099, allocations: 99.94 kB / 3.353 GB, free: 267.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.03/11.13, allocations: 1.202 GB / 4.554 GB, free: 29.21 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.415e-06/11.13, allocations: 7.938 kB / 4.554 GB, free: 29.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0005885/11.13, allocations: 80.31 kB / 4.554 GB, free: 29.12 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: 483 * Number of variables: 483 Notification: Performance of Generate backend data structure: time 0.01067/11.14, allocations: 3.472 MB / 4.558 GB, free: 25.54 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/11.14, allocations: 15.97 kB / 4.558 GB, free: 25.52 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00332/11.14, allocations: 0.5171 MB / 4.558 GB, free: 25 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007813/11.15, allocations: 3.285 MB / 4.562 GB, free: 21.73 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/11.15, allocations: 151 kB / 4.562 GB, free: 21.59 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003141/11.15, allocations: 211 kB / 4.562 GB, free: 21.38 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003688/11.16, allocations: 2.368 MB / 4.564 GB, free: 18.96 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.917e-05/11.16, allocations: 0 / 4.564 GB, free: 18.96 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/11.16, allocations: 80 kB / 4.564 GB, free: 18.88 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.312e-05/11.16, allocations: 67.66 kB / 4.564 GB, free: 18.82 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002508/11.16, allocations: 1.826 MB / 4.566 GB, free: 16.99 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01243/11.17, allocations: 9.829 MB / 4.576 GB, free: 6.891 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/11.17, allocations: 1.328 MB / 4.577 GB, free: 5.555 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009293/11.17, allocations: 0.9288 MB / 4.578 GB, free: 4.625 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007738/11.18, allocations: 1.172 MB / 4.579 GB, free: 3.199 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/11.18, allocations: 47.56 kB / 4.579 GB, free: 3.145 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=113): time 4.408e-06/11.18, allocations: 4 kB / 4.579 GB, free: 3.141 MB / 0.8855 GB Notification: Performance of matching and sorting (n=115): time 0.007681/11.18, allocations: 4.844 MB / 4.584 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001813/11.18, allocations: 290 kB / 4.584 GB, free: 13.78 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005059/11.19, allocations: 2.97 MB / 4.587 GB, free: 10.82 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0002076/11.19, allocations: 57.7 kB / 4.587 GB, free: 10.75 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.001251/11.19, allocations: 1.41 MB / 4.589 GB, free: 9.336 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003636/11.19, allocations: 394.2 kB / 4.589 GB, free: 8.949 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-05/11.19, allocations: 28 kB / 4.589 GB, free: 8.922 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001508/11.19, allocations: 361.9 kB / 4.589 GB, free: 8.562 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/11.19, allocations: 0.9873 MB / 4.59 GB, free: 7.578 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/11.19, allocations: 1.412 MB / 4.592 GB, free: 6.012 MB / 0.9011 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.00577/11.2, allocations: 2.925 MB / 4.594 GB, free: 2.945 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/11.2, allocations: 3.953 kB / 4.594 GB, free: 2.941 MB / 0.9011 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005328/11.2, allocations: 3.023 MB / 4.597 GB, free: 15.83 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001302/11.21, allocations: 2.91 MB / 4.6 GB, free: 12.63 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/11.21, allocations: 4 kB / 4.6 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.323e-05/11.21, allocations: 15.94 kB / 4.6 GB, free: 12.61 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/11.21, allocations: 263.6 kB / 4.601 GB, free: 12.36 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000462/11.21, allocations: 0.6094 MB / 4.601 GB, free: 11.72 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002939/11.21, allocations: 191.5 kB / 4.601 GB, free: 11.54 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00019/11.21, allocations: 83.92 kB / 4.601 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/11.21, allocations: 4 kB / 4.601 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004/11.21, allocations: 3.118 MB / 4.604 GB, free: 8.262 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/11.21, allocations: 4 kB / 4.604 GB, free: 8.258 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/11.21, allocations: 12 kB / 4.604 GB, free: 8.246 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009208/11.22, allocations: 243.6 kB / 4.605 GB, free: 8.008 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.288e-05/11.22, allocations: 16.48 kB / 4.605 GB, free: 7.992 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003096/11.22, allocations: 183.6 kB / 4.605 GB, free: 7.812 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/11.22, allocations: 83.91 kB / 4.605 GB, free: 7.73 MB / 0.9167 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: vol.dynBal.medium.p = vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 7 (beaCooHea.conCoo.mod.temDif_mod.i,beaCooHea.conCoo.mod.watFlo_mod.i,beaCooHea.conCoo.mod.airFlo_mod.i,beaCooHea.conHea.mod.temDif_mod.i,beaCooHea.conHea.mod.watFlo_mod.i,beaCooHea.conHea.mod.airFlo_mod.i,conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 12 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006005/11.22, allocations: 378.5 kB / 4.605 GB, free: 7.32 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005723/11.22, allocations: 312.2 kB / 4.606 GB, free: 7.012 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003953/11.22, allocations: 2.299 MB / 4.608 GB, free: 4.664 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/11.22, allocations: 12 kB / 4.608 GB, free: 4.652 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/11.22, allocations: 0 / 4.608 GB, free: 4.652 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002573/11.23, allocations: 2.093 MB / 4.61 GB, free: 2.477 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7146/11.94, allocations: 5.54 MB / 4.615 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/11.94, allocations: 9.281 kB / 4.615 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/11.94, allocations: 228.6 kB / 4.616 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-05/11.94, allocations: 10.19 kB / 4.616 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/11.94, allocations: 39.64 kB / 4.616 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002828/11.94, allocations: 0.6137 MB / 4.616 GB, free: 103.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-05/11.94, allocations: 8.844 kB / 4.616 GB, free: 103.8 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006055/11.95, allocations: 4.348 MB / 4.62 GB, free: 102.5 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00229/11.95, allocations: 0.6806 MB / 4.621 GB, free: 102.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000883/11.95, allocations: 46.03 kB / 4.621 GB, free: 102.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/11.95, allocations: 157 kB / 4.621 GB, free: 102.4 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003761/11.95, allocations: 155.5 kB / 4.621 GB, free: 102.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/11.95, allocations: 48.66 kB / 4.622 GB, free: 102.4 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.005432/11.96, allocations: 2.309 MB / 4.624 GB, free: 102.3 MB / 0.9167 GB Notification: Performance of sort global known variables: time 3.81e-07/11.96, allocations: 0 / 4.624 GB, free: 102.3 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.008308/11.97, allocations: 1.46 MB / 4.625 GB, free: 102.3 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 5 (conPID.I.y,vol.dynBal.U,vol.dynBal.mXi[1],beaCooHea.conCoo.hex.vol.dynBal.U,beaCooHea.conHea.hex.vol.dynBal.U) * Number of discrete variables: 6 (beaCooHea.conCoo.mod.temDif_mod.i,beaCooHea.conCoo.mod.watFlo_mod.i,beaCooHea.conCoo.mod.airFlo_mod.i,beaCooHea.conHea.mod.temDif_mod.i,beaCooHea.conHea.mod.watFlo_mod.i,beaCooHea.conHea.mod.airFlo_mod.i) * Number of discrete states: 6 (beaCooHea.conHea.mod.airFlo_mod.i,beaCooHea.conCoo.mod.airFlo_mod.i,beaCooHea.conCoo.mod.watFlo_mod.i,beaCooHea.conCoo.mod.temDif_mod.i,beaCooHea.conHea.mod.watFlo_mod.i,beaCooHea.conHea.mod.temDif_mod.i) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005173/11.97, allocations: 2.882 MB / 4.628 GB, free: 101.4 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.007772/11.98, allocations: 5.37 MB / 4.633 GB, free: 99.82 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-05/11.98, allocations: 2.219 kB / 4.633 GB, free: 99.82 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.002827/11.98, allocations: 1.822 MB / 4.635 GB, free: 99.44 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01058/12, allocations: 1.608 MB / 4.637 GB, free: 99.4 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/12.01, allocations: 4.892 MB / 4.641 GB, free: 98.24 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004813/12.02, allocations: 2.075 MB / 4.643 GB, free: 97.49 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.007463/12.02, allocations: 1.046 MB / 4.644 GB, free: 97.46 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006254/12.03, allocations: 147.3 kB / 4.645 GB, free: 97.46 MB / 0.9167 GB Notification: Performance of SimCode: time 1.102e-06/12.03, allocations: 0 / 4.645 GB, free: 97.46 MB / 0.9167 GB Notification: Performance of Templates: time 0.1521/12.18, allocations: 98 MB / 4.74 GB, free: 92.43 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_ActiveBeams_Examples_HeatingOnly.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.HeatingOnly.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches