Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0011/0.0011, allocations: 177.3 kB / 15.95 MB, free: 216 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.439/1.439, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.751/2.751, allocations: 436.5 MB / 0.7104 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003813/0.0003814, allocations: 8 kB / 0.8708 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9264/0.9268, allocations: 153.7 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003304/0.9302, allocations: 2.496 MB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001985/0.9322, allocations: 1.052 MB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002957/0.9325, allocations: 15.94 kB / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.9327, allocations: 43.58 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003885/0.9331, allocations: 99.59 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.9338, allocations: 235 kB / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005847/0.9344, allocations: 416.4 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005715/0.935, allocations: 352.2 kB / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.9352, allocations: 175.2 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.9355, allocations: 179 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.9355, allocations: 20 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.019e-05/0.9356, allocations: 23.98 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.9358, allocations: 79.67 kB / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.9359, allocations: 109.5 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005172/0.9364, allocations: 0.5473 MB / 1.026 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.9364, allocations: 4 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.298e-06/0.9364, allocations: 4 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.9364, allocations: 0 / 1.026 GB, free: 11.27 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001591/0.938, allocations: 0.7932 MB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.9381, allocations: 12.03 kB / 1.027 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.9382, allocations: 55.34 kB / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006291/0.9389, allocations: 427.6 kB / 1.028 GB, free: 9.895 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.775e-05/0.9389, allocations: 44.98 kB / 1.028 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.329e-05/0.939, allocations: 51.95 kB / 1.028 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.9401, allocations: 0.5352 MB / 1.028 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.9401, allocations: 7.938 kB / 1.028 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.087e-05/0.9401, allocations: 20 kB / 1.028 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.9402, allocations: 12 kB / 1.028 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009478/0.9411, allocations: 411.7 kB / 1.029 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/0.9434, allocations: 1.86 MB / 1.031 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009777/0.9444, allocations: 389.4 kB / 1.031 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.646e-05/0.9445, allocations: 4 kB / 1.031 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005916/0.945, allocations: 257.7 kB / 1.031 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=35): time 2.494e-06/0.9451, allocations: 0 / 1.031 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35): time 0.001271/0.9463, allocations: 0.5113 MB / 1.032 GB, free: 5.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.9464, allocations: 89.06 kB / 1.032 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004255/0.9468, allocations: 397.4 kB / 1.032 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.858e-05/0.9469, allocations: 45.7 kB / 1.032 GB, free: 5.109 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.9471, allocations: 252.2 kB / 1.032 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.907e-05/0.9472, allocations: 98.77 kB / 1.033 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.9472, allocations: 12 kB / 1.033 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.9474, allocations: 350.8 kB / 1.033 GB, free: 4.398 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004046/0.9478, allocations: 165 kB / 1.033 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/0.9483, allocations: 277.8 kB / 1.033 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004168/0.9487, allocations: 195.5 kB / 1.034 GB, free: 3.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.9487, allocations: 0 / 1.034 GB, free: 3.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001038/0.9498, allocations: 0.5458 MB / 1.034 GB, free: 3.172 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/0.9498, allocations: 33.7 kB / 1.034 GB, free: 3.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.9498, allocations: 4 kB / 1.034 GB, free: 3.129 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.9498, allocations: 4 kB / 1.034 GB, free: 3.125 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.9502, allocations: 88.03 kB / 1.034 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.9502, allocations: 11.95 kB / 1.034 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/0.9506, allocations: 87.39 kB / 1.034 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.223e-05/0.9506, allocations: 16 kB / 1.034 GB, free: 2.926 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.active,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * 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.000247/0.9509, allocations: 223.1 kB / 1.035 GB, free: 2.703 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.9509, allocations: 39.53 kB / 1.035 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009326/0.9519, allocations: 410.6 kB / 1.035 GB, free: 2.254 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.9519, allocations: 4 kB / 1.035 GB, free: 2.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.9519, allocations: 0 / 1.035 GB, free: 2.25 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.118e-06/0.9519, allocations: 11.89 kB / 1.035 GB, free: 2.238 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.9535, allocations: 0.9748 MB / 1.036 GB, free: 1.203 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.9535, allocations: 4 kB / 1.036 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.9538, allocations: 51.94 kB / 1.036 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.9538, allocations: 4 kB / 1.036 GB, free: 1.145 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.9538, allocations: 15.94 kB / 1.036 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.9538, allocations: 0 / 1.036 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.9538, allocations: 0 / 1.036 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.9551, allocations: 0.6987 MB / 1.037 GB, free: 404 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.9553, allocations: 148.5 kB / 1.037 GB, free: 236 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.809e-05/0.9553, allocations: 11.98 kB / 1.037 GB, free: 224 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.9556, allocations: 43.95 kB / 1.037 GB, free: 180 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.9558, allocations: 55.8 kB / 1.037 GB, free: 124 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/0.9558, allocations: 15.98 kB / 1.037 GB, free: 108 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002754/0.9561, allocations: 259.2 kB / 1.037 GB, free: 15.86 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9561, allocations: 0 / 1.037 GB, free: 15.86 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004262/0.9565, allocations: 103.7 kB / 1.037 GB, free: 15.75 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.active,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001895/0.9567, allocations: 125.4 kB / 1.037 GB, free: 15.62 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009534/0.9577, allocations: 451.5 kB / 1.038 GB, free: 15.17 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/0.9577, allocations: 4 kB / 1.038 GB, free: 15.16 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004429/0.9582, allocations: 204.1 kB / 1.038 GB, free: 14.96 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.9586, allocations: 78.03 kB / 1.038 GB, free: 14.89 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.9603, allocations: 0.8754 MB / 1.039 GB, free: 13.98 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.9607, allocations: 0.8362 MB / 1.04 GB, free: 13.12 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002136/0.9609, allocations: 55.44 kB / 1.04 GB, free: 13.07 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.961, allocations: 31.44 kB / 1.04 GB, free: 13.04 MB / 0.795 GB Notification: Performance of SimCode: time 6.31e-07/0.961, allocations: 0 / 1.04 GB, free: 13.04 MB / 0.795 GB Notification: Performance of Templates: time 0.008979/0.97, allocations: 4.444 MB / 1.044 GB, free: 8.633 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches