Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conMix.TRoo|conMix.TRooSetHea|conMix.TRooSetCoo|conMix.yHot|conMix.yCol|m_flow.y",fileNamePrefix="Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conMix.TRoo|conMix.TRooSetHea|conMix.TRooSetCoo|conMix.yHot|conMix.yCol|m_flow.y",fileNamePrefix="Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 91.77 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001345, allocations: 180.9 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.561/2.561, allocations: 437.8 MB / 0.7128 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003877/0.0003879, allocations: 8 kB / 0.8735 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6488/0.6492, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004334/0.6536, allocations: 3.475 MB / 1.027 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00258/0.6562, allocations: 1.25 MB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000704/0.6569, allocations: 15.94 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004335/0.6574, allocations: 95.16 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005498/0.658, allocations: 87.36 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007985/0.6588, allocations: 315.7 kB / 1.029 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001152/0.6599, allocations: 0.9199 MB / 1.03 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008535/0.6608, allocations: 0.5113 MB / 1.03 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003632/0.6612, allocations: 226.7 kB / 1.03 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004034/0.6616, allocations: 286 kB / 1.031 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.6617, allocations: 24 kB / 1.031 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.706e-05/0.6618, allocations: 28 kB / 1.031 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.662, allocations: 115.3 kB / 1.031 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003428/0.6623, allocations: 335.5 kB / 1.031 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008504/0.6632, allocations: 0.9798 MB / 1.032 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.6632, allocations: 0 / 1.032 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.234e-06/0.6632, allocations: 0 / 1.032 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.925e-05/0.6632, allocations: 0 / 1.032 GB, free: 7.16 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.002499/0.6657, allocations: 1.119 MB / 1.033 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.6658, allocations: 11.98 kB / 1.033 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.666, allocations: 95.81 kB / 1.033 GB, free: 5.871 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006581/0.6667, allocations: 0.5306 MB / 1.034 GB, free: 5.301 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.649e-05/0.6667, allocations: 58.31 kB / 1.034 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.6668, allocations: 76.36 kB / 1.034 GB, free: 5.168 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.6685, allocations: 0.8505 MB / 1.035 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.6686, allocations: 0 / 1.035 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.529e-05/0.6687, allocations: 39.98 kB / 1.035 GB, free: 4.262 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.6687, allocations: 16 kB / 1.035 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.6705, allocations: 0.7651 MB / 1.036 GB, free: 3.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003511/0.6741, allocations: 2.497 MB / 1.038 GB, free: 0.9023 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.676, allocations: 0.8048 MB / 1.039 GB, free: 92 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008864/0.6769, allocations: 394 kB / 1.039 GB, free: 15.7 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 4.565e-05/0.677, allocations: 4.438 kB / 1.039 GB, free: 15.7 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001012/0.678, allocations: 413.2 kB / 1.04 GB, free: 15.28 MB / 0.795 GB Notification: Performance of pre-optimization done (n=51): time 4.729e-06/0.678, allocations: 3.984 kB / 1.04 GB, free: 15.27 MB / 0.795 GB Notification: Performance of matching and sorting (n=51): time 0.002577/0.6806, allocations: 0.9822 MB / 1.041 GB, free: 14.29 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.123e-05/0.6807, allocations: 138 kB / 1.041 GB, free: 14.12 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007141/0.6814, allocations: 0.5693 MB / 1.041 GB, free: 13.55 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.6815, allocations: 37.7 kB / 1.041 GB, free: 13.5 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002756/0.6818, allocations: 364.2 kB / 1.042 GB, free: 13.14 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.6819, allocations: 173.5 kB / 1.042 GB, free: 12.97 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.618e-05/0.682, allocations: 49.69 kB / 1.042 GB, free: 12.91 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.6822, allocations: 378.7 kB / 1.042 GB, free: 12.54 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008199/0.683, allocations: 317 kB / 1.042 GB, free: 12.23 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009256/0.6839, allocations: 461.1 kB / 1.043 GB, free: 11.73 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.6856, allocations: 0.7366 MB / 1.044 GB, free: 10.95 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.6856, allocations: 4 kB / 1.044 GB, free: 10.94 MB / 0.795 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00203/0.6876, allocations: 0.892 MB / 1.045 GB, free: 10.03 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.6878, allocations: 206.4 kB / 1.045 GB, free: 9.781 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.6878, allocations: 4 kB / 1.045 GB, free: 9.777 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.6878, allocations: 4 kB / 1.045 GB, free: 9.773 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006495/0.6885, allocations: 167.8 kB / 1.045 GB, free: 9.609 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.6885, allocations: 15.81 kB / 1.045 GB, free: 9.594 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006375/0.6892, allocations: 147.3 kB / 1.045 GB, free: 9.449 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.878e-05/0.6892, allocations: 27.98 kB / 1.045 GB, free: 9.422 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.14e-06/0.6892, allocations: 0 / 1.045 GB, free: 9.422 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001433/0.6907, allocations: 0.6921 MB / 1.046 GB, free: 8.719 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.6907, allocations: 4 kB / 1.046 GB, free: 8.715 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.6907, allocations: 8 kB / 1.046 GB, free: 8.707 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004922/0.6912, allocations: 135.8 kB / 1.046 GB, free: 8.574 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.6912, allocations: 4 kB / 1.046 GB, free: 8.57 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/0.6918, allocations: 119.4 kB / 1.046 GB, free: 8.453 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.132e-05/0.6918, allocations: 19.98 kB / 1.046 GB, free: 8.434 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 13 (conMix.conFloRat.con1.y,conMix.conCoo.con1.y,conMix.conHea.con1.y,m_flow.count,$PRE.m_flow.count,m_flow.T_start,$PRE.m_flow.T_start,TRoo.count,$PRE.TRoo.count,TRoo.T_start,$PRE.TRoo.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004128/0.6923, allocations: 305.4 kB / 1.046 GB, free: 8.125 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.6924, allocations: 63.25 kB / 1.046 GB, free: 8.062 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/0.6942, allocations: 0.7368 MB / 1.047 GB, free: 7.32 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.6943, allocations: 7.938 kB / 1.047 GB, free: 7.312 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.6943, allocations: 0 / 1.047 GB, free: 7.312 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.6943, allocations: 7.984 kB / 1.047 GB, free: 7.305 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000843/0.6951, allocations: 0.7081 MB / 1.048 GB, free: 6.547 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.6952, allocations: 0 / 1.048 GB, free: 6.547 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005981/0.6958, allocations: 139.8 kB / 1.048 GB, free: 6.41 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.6958, allocations: 4 kB / 1.048 GB, free: 6.406 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.162e-05/0.6958, allocations: 12 kB / 1.048 GB, free: 6.395 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6958, allocations: 0 / 1.048 GB, free: 6.395 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.6958, allocations: 0 / 1.048 GB, free: 6.395 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.6985, allocations: 1.112 MB / 1.049 GB, free: 5.262 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.6986, allocations: 144.3 kB / 1.049 GB, free: 5.102 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.943e-05/0.6987, allocations: 15.98 kB / 1.049 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004969/0.6992, allocations: 87.92 kB / 1.049 GB, free: 5 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.6994, allocations: 48.38 kB / 1.049 GB, free: 4.953 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.792e-05/0.6994, allocations: 19.98 kB / 1.049 GB, free: 4.934 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005543/0.7, allocations: 398.8 kB / 1.05 GB, free: 4.547 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.81e-07/0.7, allocations: 0 / 1.05 GB, free: 4.547 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007995/0.7008, allocations: 258.9 kB / 1.05 GB, free: 4.293 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (conMix.conHea.I.y,conMix.conCoo.I.y,conMix.conFloRat.I.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000181/0.701, allocations: 115.2 kB / 1.05 GB, free: 4.172 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00282/0.7038, allocations: 1.256 MB / 1.051 GB, free: 2.871 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.7038, allocations: 0.5625 kB / 1.051 GB, free: 2.871 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0008581/0.7047, allocations: 350.2 kB / 1.052 GB, free: 2.531 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007856/0.7055, allocations: 131.3 kB / 1.052 GB, free: 2.402 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.7081, allocations: 1.514 MB / 1.053 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.7087, allocations: 0.9143 MB / 1.054 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.7089, allocations: 51.42 kB / 1.054 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of SimCode: time 9.22e-07/0.709, allocations: 0 / 1.054 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of Templates: time 0.01402/0.723, allocations: 8.479 MB / 1.062 GB, free: 7.398 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches