Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001255/0.001255, allocations: 86.48 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.625/2.625, allocations: 390.9 MB / 0.666 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003645, allocations: 8 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7535/0.7539, allocations: 142.4 MB / 0.9544 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.00331/0.7572, allocations: 3.276 MB / 0.9576 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001989/0.7592, allocations: 1.2 MB / 0.9588 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003974/0.7597, allocations: 15.88 kB / 0.9588 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.7599, allocations: 90.7 kB / 0.9589 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002265/0.7602, allocations: 72.02 kB / 0.959 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005109/0.7607, allocations: 203.5 kB / 0.9592 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007901/0.7615, allocations: 0.8769 MB / 0.96 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005496/0.762, allocations: 369.7 kB / 0.9604 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.7623, allocations: 217.2 kB / 0.9606 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.7626, allocations: 271.2 kB / 0.9608 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.002e-05/0.7626, allocations: 23.28 kB / 0.9609 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.376e-05/0.7627, allocations: 24.09 kB / 0.9609 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.799e-05/0.7628, allocations: 111.1 kB / 0.961 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.7629, allocations: 150.9 kB / 0.9611 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007295/0.7637, allocations: 0.9757 MB / 0.9621 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.7637, allocations: 0 / 0.9621 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.044e-06/0.7637, allocations: 0 / 0.9621 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.137e-05/0.7637, allocations: 1 kB / 0.9621 GB, free: 1.676 MB / 0.7169 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.00196/0.7657, allocations: 1.119 MB / 0.9632 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.7657, allocations: 12.81 kB / 0.9632 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.7659, allocations: 100.7 kB / 0.9633 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005927/0.7665, allocations: 0.5208 MB / 0.9638 GB, free: 292 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.7666, allocations: 55.88 kB / 0.9639 GB, free: 268 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.7667, allocations: 74.59 kB / 0.9639 GB, free: 244 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.7684, allocations: 0.8393 MB / 0.9647 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.7684, allocations: 0 / 0.9647 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.38e-05/0.7685, allocations: 31.56 kB / 0.9648 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.7685, allocations: 16.28 kB / 0.9648 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001811/0.7703, allocations: 0.7616 MB / 0.9655 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.774, allocations: 2.489 MB / 0.968 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/0.7759, allocations: 0.7975 MB / 0.9687 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008194/0.7767, allocations: 387.6 kB / 0.9691 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.121e-05/0.7767, allocations: 9.781 kB / 0.9691 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009762/0.7777, allocations: 409.9 kB / 0.9695 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=51): time 3.226e-06/0.7777, allocations: 0 / 0.9695 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of matching and sorting (n=51): time 0.002368/0.7801, allocations: 0.9733 MB / 0.9705 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.38e-05/0.7802, allocations: 139.3 kB / 0.9706 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008001/0.781, allocations: 0.5621 MB / 0.9711 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.398e-05/0.7811, allocations: 41.81 kB / 0.9712 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003105/0.7814, allocations: 371.2 kB / 0.9715 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.7816, allocations: 169.1 kB / 0.9717 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.7816, allocations: 10.97 kB / 0.9717 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.7818, allocations: 377 kB / 0.9721 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007578/0.7826, allocations: 302.2 kB / 0.9724 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000854/0.7834, allocations: 466.1 kB / 0.9728 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008174/0.7842, allocations: 380.3 kB / 0.9732 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.7843, allocations: 4.812 kB / 0.9732 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001844/0.7861, allocations: 0.8806 MB / 0.974 GB, free: 9.742 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000148/0.7863, allocations: 212 kB / 0.9742 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.7863, allocations: 2.062 kB / 0.9742 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.7863, allocations: 5.781 kB / 0.9742 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.7869, allocations: 167.8 kB / 0.9744 GB, free: 9.453 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.787, allocations: 8.047 kB / 0.9744 GB, free: 9.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.7876, allocations: 149.2 kB / 0.9746 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.7876, allocations: 20.09 kB / 0.9746 GB, free: 9.375 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.333e-06/0.7876, allocations: 7.5 kB / 0.9746 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001377/0.789, allocations: 0.6882 MB / 0.9753 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.789, allocations: 2.875 kB / 0.9753 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.7891, allocations: 5.094 kB / 0.9753 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004745/0.7895, allocations: 139.9 kB / 0.9754 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.7895, allocations: 4.75 kB / 0.9754 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.79, allocations: 121.5 kB / 0.9755 GB, free: 8.918 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.7901, allocations: 23.28 kB / 0.9755 GB, free: 8.91 MB / 0.7325 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,$whenCondition2,$whenCondition1,$PRE.TRoo.T_start,TRoo.T_start,$PRE.TRoo.count,TRoo.count,$PRE.m_flow.T_start,m_flow.T_start,$PRE.m_flow.count,m_flow.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004463/0.7905, allocations: 310.5 kB / 0.9758 GB, free: 8.641 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-05/0.7906, allocations: 68.77 kB / 0.9759 GB, free: 8.602 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/0.7923, allocations: 0.7266 MB / 0.9766 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.7923, allocations: 5.719 kB / 0.9766 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.7923, allocations: 0 / 0.9766 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.7923, allocations: 3.984 kB / 0.9766 GB, free: 8.23 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008489/0.7932, allocations: 0.716 MB / 0.9773 GB, free: 7.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.7932, allocations: 0 / 0.9773 GB, free: 7.543 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005243/0.7937, allocations: 139.8 kB / 0.9774 GB, free: 7.406 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.7938, allocations: 4 kB / 0.9775 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.7938, allocations: 8 kB / 0.9775 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.7938, allocations: 4 kB / 0.9775 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.7938, allocations: 0 / 0.9775 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/0.7961, allocations: 1.101 MB / 0.9785 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.7963, allocations: 152.2 kB / 0.9787 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.942e-05/0.7964, allocations: 23.86 kB / 0.9787 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004115/0.7968, allocations: 83.92 kB / 0.9788 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.7969, allocations: 48.36 kB / 0.9788 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.359e-05/0.797, allocations: 15.98 kB / 0.9788 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004733/0.7975, allocations: 398.8 kB / 0.9792 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7975, allocations: 0 / 0.9792 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007341/0.7982, allocations: 262.9 kB / 0.9795 GB, free: 5.289 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001464/0.7984, allocations: 119.2 kB / 0.9796 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002472/0.8008, allocations: 1.245 MB / 0.9808 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.8008, allocations: 0 / 0.9808 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007437/0.8016, allocations: 346.9 kB / 0.9811 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006046/0.8022, allocations: 118.2 kB / 0.9813 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.8044, allocations: 1.399 MB / 0.9826 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.8048, allocations: 0.9104 MB / 0.9835 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003335/0.8052, allocations: 76.89 kB / 0.9836 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.8053, allocations: 51.42 kB / 0.9836 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of SimCode: time 6.11e-07/0.8053, allocations: 0 / 0.9836 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of Templates: time 0.01211/0.8174, allocations: 6.843 MB / 0.9903 GB, free: 10.14 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches