Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates.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.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=0,variableFilter="time|zonSta.yZonSta|zonSta.uHea|zonSta.uCoo",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates") translateModel(Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=0,variableFilter="time|zonSta.yZonSta|zonSta.uHea|zonSta.uCoo",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 109 kB / 16.37 MB, free: 6.477 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.00258/0.00258, allocations: 194.7 kB / 17.31 MB, free: 5.824 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.442/1.442, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.582/2.582, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.03 kB / 0.8774 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3385, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates): time 0.002589/0.3411, allocations: 1.152 MB / 1.028 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001643/0.3428, allocations: 1.381 MB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.886e-05/0.3429, allocations: 4 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.161e-05/0.343, allocations: 27.67 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.3431, allocations: 39.59 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007068/0.3438, allocations: 294.7 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004945/0.3443, allocations: 431.8 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002593/0.3446, allocations: 112.2 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.3448, allocations: 159.5 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.345, allocations: 155.3 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.8e-05/0.345, allocations: 48 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.3451, allocations: 59.98 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.444e-05/0.3452, allocations: 63.81 kB / 1.031 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.3454, allocations: 159.3 kB / 1.031 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004221/0.3458, allocations: 490.4 kB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.3458, allocations: 8 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3458, allocations: 0 / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.3458, allocations: 0 / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008516/0.3467, allocations: 0.6044 MB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3467, allocations: 12.03 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/0.3468, allocations: 32.59 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006236/0.3474, allocations: 331.7 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.3475, allocations: 20.38 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.3475, allocations: 28.36 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002938/0.3478, allocations: 169.9 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3479, allocations: 0 / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.3479, allocations: 23.91 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.3479, allocations: 4 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002058/0.3481, allocations: 116 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.3491, allocations: 0.6757 MB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.3496, allocations: 166.8 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.3497, allocations: 68.83 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.3497, allocations: 0 / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.35, allocations: 127.3 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.35, allocations: 0 / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0004612/0.3505, allocations: 223.1 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.3506, allocations: 55.41 kB / 1.034 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.3508, allocations: 215 kB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.3508, allocations: 45.69 kB / 1.034 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.351, allocations: 144.4 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.416e-05/0.351, allocations: 43.36 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.3511, allocations: 77.67 kB / 1.034 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3513, allocations: 338.8 kB / 1.035 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.3515, allocations: 99.95 kB / 1.035 GB, free: 9.691 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.3517, allocations: 159.8 kB / 1.035 GB, free: 9.512 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.352, allocations: 217.5 kB / 1.035 GB, free: 9.273 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.352, allocations: 0 / 1.035 GB, free: 9.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005359/0.3526, allocations: 363.7 kB / 1.035 GB, free: 8.902 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.6e-05/0.3526, allocations: 67.33 kB / 1.035 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.3527, allocations: 0 / 1.035 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.3527, allocations: 4 kB / 1.035 GB, free: 8.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.697e-05/0.3528, allocations: 19.94 kB / 1.035 GB, free: 8.801 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.3528, allocations: 12.11 kB / 1.035 GB, free: 8.789 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003377/0.3531, allocations: 71.77 kB / 1.036 GB, free: 8.719 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.624e-05/0.3532, allocations: 15.98 kB / 1.036 GB, free: 8.703 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,uHea.booPul.y,$PRE.uHea.booPul.y,uCoo.booPul.y,$PRE.uCoo.booPul.y,zonSta.addInt.y,zonSta.notHea.y,zonSta.hysU.y,$PRE.zonSta.hysU.y,zonSta.isCoo.y,zonSta.hysUCoo.y,$PRE.zonSta.hysUCoo.y,zonSta.hysUHea.y,$PRE.zonSta.hysUHea.y,zonSta.booToIntDea.y,zonSta.isDea.y,zonSta.booToIntCoo.y,zonSta.booToIntHea.y,zonSta.yZonSta) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * 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.0001553/0.3533, allocations: 159.5 kB / 1.036 GB, free: 8.539 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.3534, allocations: 23.66 kB / 1.036 GB, free: 8.516 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.692e-05/0.3534, allocations: 25.86 kB / 1.036 GB, free: 8.496 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3534, allocations: 4 kB / 1.036 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3534, allocations: 0 / 1.036 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3534, allocations: 48 / 1.036 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/0.3537, allocations: 293.4 kB / 1.036 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3537, allocations: 3.938 kB / 1.036 GB, free: 8.152 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.403e-05/0.3538, allocations: 19.92 kB / 1.036 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.3538, allocations: 11.94 kB / 1.036 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.3538, allocations: 4 kB / 1.036 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3538, allocations: 4 kB / 1.036 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3538, allocations: 0 / 1.036 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.3541, allocations: 194.7 kB / 1.036 GB, free: 7.906 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-05/0.3542, allocations: 96.86 kB / 1.036 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.3542, allocations: 7.938 kB / 1.036 GB, free: 7.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-05/0.3543, allocations: 19.98 kB / 1.036 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.3544, allocations: 31.95 kB / 1.036 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.3544, allocations: 15.92 kB / 1.036 GB, free: 7.719 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001066/0.3546, allocations: 144.4 kB / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3546, allocations: 0 / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002799/0.3548, allocations: 67.75 kB / 1.037 GB, free: 7.512 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,zonSta.yZonSta,zonSta.booToIntHea.y,zonSta.booToIntCoo.y,zonSta.isDea.y,zonSta.booToIntDea.y,zonSta.hysUHea.y,zonSta.hysUCoo.y,zonSta.isCoo.y,zonSta.hysU.y,zonSta.notHea.y,zonSta.addInt.y,uCoo.booPul.y,uHea.booPul.y) * Number of discrete states: 3 (zonSta.hysU.y,zonSta.hysUCoo.y,zonSta.hysUHea.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001738/0.355, allocations: 119.2 kB / 1.037 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004685/0.3555, allocations: 343.8 kB / 1.037 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3555, allocations: 0 / 1.037 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.3556, allocations: 78.48 kB / 1.037 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.3559, allocations: 31.98 kB / 1.037 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006021/0.3566, allocations: 372.5 kB / 1.038 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.3569, allocations: 0.7404 MB / 1.038 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.885e-05/0.357, allocations: 25.94 kB / 1.038 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.664e-05/0.357, allocations: 27.44 kB / 1.038 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of SimCode: time 3.01e-07/0.357, allocations: 0 / 1.038 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of Templates: time 0.006908/0.364, allocations: 3.494 MB / 1.042 GB, free: 2.254 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates.sim & ./Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_ASHRAE_G36_ThermalZones_Validation_ZoneStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches