Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.VAVReheat.BaseClasses.Controls.Examples.OperationModes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSch.occupied|cap.T|mode.y",fileNamePrefix="Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes") translateModel(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSch.occupied|cap.T|mode.y",fileNamePrefix="Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 110 kB / 16.42 MB, free: 6.512 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.002093/0.002093, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.417/1.417, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.3/2.3, allocations: 390.2 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001542, allocations: 67.88 kB / 0.9516 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.183/1.184, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes): time 0.007432/1.192, allocations: 4.752 MB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005495/1.197, allocations: 2.101 MB / 1.095 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/1.199, allocations: 30.84 kB / 1.095 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006761/1.2, allocations: 176.5 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0009687/1.201, allocations: 193 kB / 1.096 GB, free: 400 kB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002722/1.204, allocations: 0.8248 MB / 1.097 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003796/1.207, allocations: 1.856 MB / 1.098 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003087/1.21, allocations: 1.492 MB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/1.212, allocations: 0.6372 MB / 1.1 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009767/1.213, allocations: 0.6818 MB / 1.101 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0003357/1.213, allocations: 193.4 kB / 1.101 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006975/1.214, allocations: 289.7 kB / 1.102 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004579/1.214, allocations: 417.9 kB / 1.102 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0008988/1.215, allocations: 0.7428 MB / 1.103 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004063/1.219, allocations: 2.204 MB / 1.105 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/1.219, allocations: 0.5625 kB / 1.105 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.646e-06/1.219, allocations: 0.6875 kB / 1.105 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.849e-05/1.219, allocations: 0 / 1.105 GB, free: 11.75 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.004467/1.224, allocations: 1.703 MB / 1.106 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/1.224, allocations: 8.188 kB / 1.106 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004037/1.224, allocations: 161.4 kB / 1.107 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/1.226, allocations: 0.7605 MB / 1.107 GB, free: 10 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/1.226, allocations: 128.9 kB / 1.107 GB, free: 9.945 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002603/1.226, allocations: 161.2 kB / 1.108 GB, free: 9.895 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003394/1.229, allocations: 1.606 MB / 1.109 GB, free: 9.066 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.797e-05/1.229, allocations: 7.094 kB / 1.109 GB, free: 9.062 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/1.23, allocations: 63.64 kB / 1.109 GB, free: 9.016 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-05/1.23, allocations: 36.53 kB / 1.109 GB, free: 9.016 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002788/1.232, allocations: 1.207 MB / 1.11 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009686/1.242, allocations: 5.656 MB / 1.116 GB, free: 4.637 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/1.245, allocations: 1.168 MB / 1.117 GB, free: 3.949 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/1.246, allocations: 0.5261 MB / 1.118 GB, free: 3.68 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/1.246, allocations: 21.75 kB / 1.118 GB, free: 3.676 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/1.247, allocations: 0.6414 MB / 1.118 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=124): time 4.528e-06/1.247, allocations: 0 / 1.118 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of matching and sorting (n=124): time 0.002989/1.25, allocations: 1.274 MB / 1.12 GB, free: 2.859 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001638/1.25, allocations: 263.5 kB / 1.12 GB, free: 2.57 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/1.251, allocations: 0.6361 MB / 1.12 GB, free: 2.246 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001969/1.252, allocations: 81.28 kB / 1.121 GB, free: 2.184 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005179/1.252, allocations: 0.5178 MB / 1.121 GB, free: 1.77 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003591/1.253, allocations: 321.6 kB / 1.121 GB, free: 1.523 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000569/1.253, allocations: 342.9 kB / 1.122 GB, free: 1.375 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001723/1.253, allocations: 350.2 kB / 1.122 GB, free: 1.047 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008188/1.254, allocations: 427.6 kB / 1.122 GB, free: 0.8867 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/1.255, allocations: 0.7735 MB / 1.123 GB, free: 316 kB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/1.257, allocations: 1.018 MB / 1.124 GB, free: 15.6 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/1.257, allocations: 2.594 kB / 1.124 GB, free: 15.6 MB / 0.8887 GB Notification: Performance of matching and sorting (n=193) (initialization): time 0.002595/1.26, allocations: 1.275 MB / 1.125 GB, free: 15.07 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/1.26, allocations: 13.16 kB / 1.125 GB, free: 15.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.308e-05/1.26, allocations: 10.05 kB / 1.125 GB, free: 15.07 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.427e-05/1.26, allocations: 16.91 kB / 1.125 GB, free: 15.07 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007285/1.261, allocations: 179.7 kB / 1.126 GB, free: 15.04 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.79e-05/1.261, allocations: 23.58 kB / 1.126 GB, free: 15.03 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009596/1.262, allocations: 167.3 kB / 1.126 GB, free: 14.94 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/1.262, allocations: 67.47 kB / 1.126 GB, free: 14.92 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 134 ($PRE.operationModes.start.enableFire,$PRE.operationModes.t2.enableFire,$PRE.operationModes.t1.enableFire,$PRE.operationModes.t6.enableFire,$PRE.operationModes.t5.enableFire,$PRE.operationModes.t3.enableFire,$PRE.operationModes.t4.enableFire,$PRE.operationModes.t7.enableFire,$PRE.operationModes.t9.enableFire,$PRE.operationModes.t8.enableFire,operationModes.start.t_start,$PRE.operationModes.start.t_start,operationModes.t5.t_start,$PRE.operationModes.t5.t_start,operationModes.t3.t_start,$PRE.operationModes.t3.t_start,operationModes.t4.t_start,$PRE.operationModes.t4.t_start,operationModes.t7.t_start,$PRE.operationModes.t7.t_start,operationModes.t9.t_start,$PRE.operationModes.t9.t_start,operationModes.t8.t_start,$PRE.operationModes.t8.t_start,operationModes.stateGraphRoot.resume,operationModes.stateGraphRoot.suspend,operationModes.start.condition,operationModes.preCooSta.and3.u[2],occSch.tNext,$PRE.occSch.tNext,occSch.tNonOcc,$PRE.occSch.tNonOcc,occSch.tOcc,$PRE.occSch.tOcc,occSch.occupied,$PRE.occSch.occupied,modSel1.y,modSel.y,operationModes.or2.y,operationModes.yEco,operationModes.yFan,operationModes.sum.u[6],operationModes.sum.u[5],operationModes.sum.u[4],operationModes.sum.u[3],operationModes.sum.u[2],operationModes.sum.u[1],operationModes.t8.enableFire,operationModes.not1.y,operationModes.t9.enableFire,operationModes.t9.localCondition,operationModes.preCooSta.and3.u[3],operationModes.preCooSta.and3.u[1],operationModes.t7.enableFire,operationModes.t7.localCondition,operationModes.morPreCoo.active,operationModes.morPreCoo.oldActive,$PRE.operationModes.morPreCoo.oldActive,operationModes.morPreCoo.newActive,$PRE.operationModes.morPreCoo.newActive,operationModes.morPreCoo.localActive,$PRE.operationModes.morPreCoo.localActive,operationModes.t4.enableFire,operationModes.t4.localCondition,operationModes.t3.enableFire,operationModes.t3.localCondition,operationModes.occ.active,operationModes.occ.oldActive,$PRE.operationModes.occ.oldActive,operationModes.occ.newActive,$PRE.operationModes.occ.newActive,operationModes.occ.inPort[3].occupied,operationModes.occ.inPort[2].occupied,operationModes.occ.localActive,$PRE.operationModes.occ.localActive,operationModes.t5.enableFire,operationModes.t5.localCondition,operationModes.t6.t_start,$PRE.operationModes.t6.t_start,operationModes.t6.fire,operationModes.t6.enableFire,operationModes.morWarUp.active,operationModes.morWarUp.oldActive,$PRE.operationModes.morWarUp.oldActive,operationModes.morWarUp.newActive,$PRE.operationModes.morWarUp.newActive,operationModes.morWarUp.inPort[2].occupied,operationModes.morWarUp.localActive,$PRE.operationModes.morWarUp.localActive,operationModes.stateGraphRoot.activeSteps,operationModes.t1.t_start,$PRE.operationModes.t1.t_start,operationModes.t1.fire,operationModes.t1.enableFire,operationModes.t1.localCondition,operationModes.t2.t_start,$PRE.operationModes.t2.t_start,operationModes.t2.fire,operationModes.t2.enableFire,operationModes.t2.localCondition,operationModes.unOccNigSetBac.active,operationModes.unOccNigSetBac.oldActive,$PRE.operationModes.unOccNigSetBac.oldActive,operationModes.unOccNigSetBac.newActive,$PRE.operationModes.unOccNigSetBac.newActive,operationModes.unOccNigSetBac.outPort[2].available,operationModes.unOccNigSetBac.localActive,$PRE.operationModes.unOccNigSetBac.localActive,operationModes.unOccOff.active,operationModes.unOccOff.oldActive,$PRE.operationModes.unOccOff.oldActive,operationModes.unOccOff.newActive,$PRE.operationModes.unOccOff.newActive,operationModes.unOccOff.outPort[4].available,operationModes.unOccOff.outPort[3].available,operationModes.unOccOff.outPort[2].available,operationModes.unOccOff.inPort[3].occupied,operationModes.unOccOff.inPort[2].occupied,operationModes.unOccOff.localActive,$PRE.operationModes.unOccOff.localActive,operationModes.start.enableFire,operationModes.initialStepWithSignal.active,operationModes.initialStepWithSignal.oldActive,$PRE.operationModes.initialStepWithSignal.oldActive,operationModes.initialStepWithSignal.newActive,$PRE.operationModes.initialStepWithSignal.newActive,operationModes.initialStepWithSignal.localActive,$PRE.operationModes.initialStepWithSignal.localActive,controlBus.controlMode,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001012/1.263, allocations: 437.2 kB / 1.126 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002289/1.263, allocations: 88.02 kB / 1.126 GB, free: 14.56 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/1.265, allocations: 1.037 MB / 1.127 GB, free: 14.13 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.839e-05/1.265, allocations: 12.62 kB / 1.127 GB, free: 14.12 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/1.265, allocations: 2.203 kB / 1.127 GB, free: 14.12 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005299/1.266, allocations: 270 kB / 1.128 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/1.266, allocations: 32.58 kB / 1.128 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004905/1.267, allocations: 56 kB / 1.128 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004128/1.267, allocations: 148.8 kB / 1.128 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002831/1.27, allocations: 1.692 MB / 1.13 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003479/1.273, allocations: 2.274 MB / 1.132 GB, free: 11.44 MB / 0.8887 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001115/1.274, allocations: 0.5544 MB / 1.132 GB, free: 11.21 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0006305/1.275, allocations: 359 kB / 1.133 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of Backend: time 3.51e-07/1.275, allocations: 1.625 kB / 1.133 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003141/1.278, allocations: 0.9026 MB / 1.134 GB, free: 10.65 MB / 0.8887 GB Notification: Performance of SimCode: time 0.004574/1.283, allocations: 2.299 MB / 1.136 GB, free: 9.211 MB / 0.8887 GB Notification: Performance of Templates: time 0.04018/1.323, allocations: 14.17 MB / 1.15 GB, free: 5.18 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.makefile (rm -f Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.pipe ; mkfifo Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.pipe >> ../files/Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.sim & ./Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_OperationModes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.OperationModes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches