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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_ThermalZones_Validation_ZoneStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_ThermalZones_Validation_ZoneStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 108 kB / 15.6 MB, free: 132 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.001141/0.001141, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.196/1.196, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.367/2.367, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 61.62 kB / 0.8992 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2163, allocations: 157.4 MB / 1.053 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates): time 0.002187/0.2185, allocations: 1.148 MB / 1.054 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001515/0.2201, allocations: 1.397 MB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.2202, allocations: 4 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.91e-05/0.2203, allocations: 23.67 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.2204, allocations: 39.66 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.221, allocations: 297.5 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.2214, allocations: 419.9 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.2216, allocations: 117.8 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.2218, allocations: 155.5 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.2219, allocations: 147.3 kB / 1.057 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.222, allocations: 44 kB / 1.057 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.701e-05/0.2221, allocations: 59.98 kB / 1.057 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.768e-05/0.2221, allocations: 59.77 kB / 1.057 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.2223, allocations: 163.3 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.2226, allocations: 474.9 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2227, allocations: 4 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2227, allocations: 0 / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.2227, allocations: 0 / 1.057 GB, free: 3.719 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.0007342/0.2234, allocations: 0.611 MB / 1.058 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.2235, allocations: 12.62 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.279e-05/0.2235, allocations: 54.67 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.2236, allocations: 32.66 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005886/0.2242, allocations: 327.8 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.2242, allocations: 24.38 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.708e-05/0.2243, allocations: 28.38 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.2245, allocations: 173.6 kB / 1.059 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.2245, allocations: 3.984 kB / 1.059 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.2246, allocations: 8 kB / 1.059 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.2246, allocations: 4 kB / 1.059 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.2248, allocations: 112 kB / 1.059 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008378/0.2256, allocations: 0.6952 MB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003484/0.226, allocations: 162.8 kB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2261, allocations: 72.77 kB / 1.06 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.2261, allocations: 8.281 kB / 1.06 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002094/0.2263, allocations: 127.3 kB / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.453e-06/0.2263, allocations: 0 / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0003705/0.2267, allocations: 215.1 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.2267, allocations: 59.41 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.2269, allocations: 222.7 kB / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.227, allocations: 41.7 kB / 1.06 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.27e-05/0.2271, allocations: 140.5 kB / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.2e-05/0.2271, allocations: 55.28 kB / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.2272, allocations: 77.67 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.869e-05/0.2273, allocations: 330.8 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.2275, allocations: 95.95 kB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.2277, allocations: 167.2 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.228, allocations: 210 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.228, allocations: 0 / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005002/0.2285, allocations: 352.7 kB / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.631e-05/0.2285, allocations: 73.2 kB / 1.062 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2285, allocations: 4 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.2286, allocations: 3.938 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-05/0.2286, allocations: 15.98 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.2286, allocations: 4 kB / 1.062 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.229, allocations: 79.89 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.2291, allocations: 15.98 kB / 1.062 GB, free: 14.85 MB / 0.8262 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.0001283/0.2292, allocations: 156.4 kB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.2292, allocations: 23.66 kB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.958e-05/0.2293, allocations: 33.73 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2293, allocations: 8 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2293, allocations: 0 / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2293, allocations: 0 / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.2295, allocations: 293.4 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2295, allocations: 0 / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.303e-05/0.2296, allocations: 19.94 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2296, allocations: 3.938 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.2296, allocations: 7.984 kB / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2296, allocations: 0 / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2296, allocations: 0 / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002359/0.2299, allocations: 194.8 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/0.2299, allocations: 104.8 kB / 1.063 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.082e-05/0.23, allocations: 8 kB / 1.063 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.76e-05/0.23, allocations: 7.984 kB / 1.063 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.067e-05/0.2301, allocations: 35.95 kB / 1.063 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.2301, allocations: 7.938 kB / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000104/0.2303, allocations: 144.6 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2303, allocations: 4 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002607/0.2305, allocations: 63.75 kB / 1.063 GB, free: 13.66 MB / 0.8262 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.0005195/0.2311, allocations: 0.7587 MB / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004569/0.2315, allocations: 350.6 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2315, allocations: 0 / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.2316, allocations: 79.91 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.2319, allocations: 45.8 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.2344, allocations: 2.426 MB / 1.066 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.2347, allocations: 0.7363 MB / 1.067 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.549e-05/0.2348, allocations: 29.94 kB / 1.067 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.2349, allocations: 75.41 kB / 1.067 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2349, allocations: 0 / 1.067 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.438/3.673, allocations: 5.398 MB / 1.072 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/14.57, allocations: 10.14 kB / 1.072 GB, free: 3.723 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.ThermalZones.Validation.ZoneStates_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_ThermalZones_Validation_ZoneStates_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_ThermalZones_Validation_ZoneStates.fmu > 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