Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_AHUs_SingleZone_VAV_Validation_ZoneState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_AHUs_SingleZone_VAV_Validation_ZoneState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 174.7 kB / 498.1 MB, free: 5.746 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 223.2 MB / 0.7948 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009392/0.0009393, allocations: 86.58 kB / 0.9346 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003573, allocations: 8.562 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.291, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1931/0.4841, allocations: 154.1 MB / 1.373 GB, free: 7.875 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.4844, allocations: 83.94 kB / 1.374 GB, free: 7.793 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02341/0.5079, allocations: 8.554 MB / 1.382 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.336e-06/0.5079, allocations: 4 kB / 1.382 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.858e-05/0.508, allocations: 15.94 kB / 1.382 GB, free: 15.21 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001179/0.5091, allocations: 0.5963 MB / 1.383 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.5092, allocations: 16.03 kB / 1.383 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.229e-05/0.5093, allocations: 50.55 kB / 1.383 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.5094, allocations: 35.58 kB / 1.383 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006288/0.51, allocations: 326.3 kB / 1.383 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.353e-05/0.5101, allocations: 23.94 kB / 1.383 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.019e-05/0.5101, allocations: 20 kB / 1.383 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/0.5105, allocations: 185.1 kB / 1.383 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.5105, allocations: 0 / 1.383 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.5106, allocations: 11.94 kB / 1.383 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.5106, allocations: 8 kB / 1.383 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.5109, allocations: 143.9 kB / 1.383 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.512, allocations: 0.6727 MB / 1.384 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004568/0.5125, allocations: 209.4 kB / 1.384 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.5126, allocations: 4 kB / 1.384 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002684/0.5128, allocations: 128.3 kB / 1.384 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=18): time 2.314e-06/0.5128, allocations: 0 / 1.384 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of matching and sorting (n=18): time 0.0005548/0.5134, allocations: 258.8 kB / 1.385 GB, free: 12.37 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.5135, allocations: 55.41 kB / 1.385 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004172/0.5139, allocations: 337.9 kB / 1.385 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.5139, allocations: 33.7 kB / 1.385 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.5141, allocations: 172.4 kB / 1.385 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.823e-05/0.5141, allocations: 47.39 kB / 1.385 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.56e-05/0.5141, allocations: 4 kB / 1.385 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.5143, allocations: 338.8 kB / 1.385 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.5145, allocations: 104 kB / 1.386 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002191/0.5147, allocations: 148.2 kB / 1.386 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.5149, allocations: 104.9 kB / 1.386 GB, free: 11 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5149, allocations: 4 kB / 1.386 GB, free: 11 MB / 0.8855 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004889/0.5154, allocations: 297.2 kB / 1.386 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.5154, allocations: 8.031 kB / 1.386 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.5155, allocations: 0 / 1.386 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.5155, allocations: 11.89 kB / 1.386 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.5156, allocations: 31.98 kB / 1.386 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.5157, allocations: 0 / 1.386 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.5158, allocations: 43.81 kB / 1.386 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.933e-05/0.5159, allocations: 16 kB / 1.386 GB, free: 10.59 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 19 ($whenCondition1,$PRE.uHeaCoo.tab.nextTimeEvent,zonSta.yZonSta,zonSta.booToIntCoo.u,zonSta.booToIntDea.u,$PRE.zonSta.hysUHea.y,zonSta.hysUHea.y,$PRE.zonSta.hysUCoo.y,zonSta.hysUCoo.y,zonSta.isCoo.u1,$PRE.zonSta.hysU.y,zonSta.hysU.y,zonSta.addInt.u1,zonSta.addInt.u2,zonSta.addInt.y,zonSta.addInt1.u2,uHeaCoo.tab.nextTimeEvent,$PRE.uHeaCoo.tab.nextTimeEventScaled,uHeaCoo.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0001734/0.5161, allocations: 168 kB / 1.386 GB, free: 10.42 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.147e-05/0.5161, allocations: 27.72 kB / 1.386 GB, free: 10.39 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004183/0.5166, allocations: 221.1 kB / 1.387 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.5166, allocations: 0 / 1.387 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5166, allocations: 0 / 1.387 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5166, allocations: 0 / 1.387 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003183/0.5169, allocations: 349.2 kB / 1.387 GB, free: 9.781 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.5169, allocations: 0 / 1.387 GB, free: 9.781 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.45e-05/0.517, allocations: 19.98 kB / 1.387 GB, free: 9.762 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.5171, allocations: 4 kB / 1.387 GB, free: 9.758 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.5171, allocations: 4.047 kB / 1.387 GB, free: 9.754 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5171, allocations: 0 / 1.387 GB, free: 9.754 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5171, allocations: 3.984 kB / 1.387 GB, free: 9.75 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003595/0.5175, allocations: 233.8 kB / 1.387 GB, free: 9.504 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.963e-05/0.5176, allocations: 112.7 kB / 1.387 GB, free: 9.375 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.435e-05/0.5176, allocations: 7.984 kB / 1.387 GB, free: 9.367 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.5177, allocations: 23.98 kB / 1.387 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.096e-05/0.5178, allocations: 31.94 kB / 1.387 GB, free: 9.312 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.5179, allocations: 8 kB / 1.387 GB, free: 9.305 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002432/0.5181, allocations: 237.9 kB / 1.388 GB, free: 9.07 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5181, allocations: 0 / 1.388 GB, free: 9.07 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003264/0.5184, allocations: 67.94 kB / 1.388 GB, free: 9.004 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,zonSta.yZonSta,zonSta.booToIntCoo.u,zonSta.booToIntDea.u,zonSta.hysUHea.y,zonSta.hysUCoo.y,zonSta.isCoo.u1,zonSta.hysU.y,zonSta.addInt.u1,zonSta.addInt.u2,zonSta.addInt.y,zonSta.addInt1.u2,uHeaCoo.tab.nextTimeEvent,uHeaCoo.tab.nextTimeEventScaled) * Number of discrete states: 5 (zonSta.hysU.y,zonSta.hysUCoo.y,zonSta.hysUHea.y,uHeaCoo.tab.nextTimeEvent,uHeaCoo.tab.nextTimeEventScaled) * 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 (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.001533/0.52, allocations: 1.097 MB / 1.389 GB, free: 8.035 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004144/0.5204, allocations: 213.2 kB / 1.389 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5204, allocations: 0 / 1.389 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.5206, allocations: 87.91 kB / 1.389 GB, free: 7.742 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.5209, allocations: 44.8 kB / 1.389 GB, free: 7.695 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.5222, allocations: 0.9915 MB / 1.39 GB, free: 6.648 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.5226, allocations: 0.7872 MB / 1.391 GB, free: 5.836 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001356/0.5227, allocations: 38.27 kB / 1.391 GB, free: 5.801 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.5229, allocations: 107.4 kB / 1.391 GB, free: 5.695 MB / 0.8855 GB Notification: Performance of SimCode: time 6.62e-07/0.5229, allocations: 0 / 1.391 GB, free: 5.695 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.5423, allocations: 6.077 MB / 1.397 GB, free: 15.83 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/0.5426, allocations: 248.3 kB / 1.397 GB, free: 15.5 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.03/2.573, allocations: 64 / 1.397 GB, free: 15.5 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_AHUs_SingleZone_VAV_Validation_ZoneState_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_ASHRAE_G36_PR1_AHUs_SingleZone_VAV_Validation_ZoneState.fmu > Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.SingleZone.VAV.Validation.ZoneState_res.mat does not exist to compare? outputFormat=mat