Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 109.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.202/3.202, allocations: 497.2 MB / 0.7811 GB, free: 33.76 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 68.84 kB / 1.134 GB, free: 33.59 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3433, allocations: 173.9 MB / 1.304 GB, free: 1.438 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.004053/0.3474, allocations: 2.013 MB / 1.306 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.3489, allocations: 0.6974 MB / 1.307 GB, free: 14.7 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.349, allocations: 8 kB / 1.307 GB, free: 14.7 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.3492, allocations: 39.55 kB / 1.307 GB, free: 14.66 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.3493, allocations: 35.66 kB / 1.307 GB, free: 14.62 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004726/0.3498, allocations: 159.8 kB / 1.307 GB, free: 14.46 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004849/0.3502, allocations: 403.2 kB / 1.307 GB, free: 14.07 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.3506, allocations: 212.1 kB / 1.307 GB, free: 13.86 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.3508, allocations: 143.5 kB / 1.308 GB, free: 13.72 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001922/0.351, allocations: 143.4 kB / 1.308 GB, free: 13.58 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.854e-05/0.351, allocations: 40 kB / 1.308 GB, free: 13.54 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.979e-05/0.3511, allocations: 51.98 kB / 1.308 GB, free: 13.49 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.156e-05/0.3512, allocations: 75.83 kB / 1.308 GB, free: 13.42 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.3514, allocations: 155.2 kB / 1.308 GB, free: 13.27 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0005125/0.3519, allocations: 442.3 kB / 1.308 GB, free: 12.83 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3519, allocations: 4 kB / 1.308 GB, free: 12.83 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3519, allocations: 0 / 1.308 GB, free: 12.83 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.3519, allocations: 0 / 1.308 GB, free: 12.83 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001002/0.3529, allocations: 0.6025 MB / 1.309 GB, free: 12.17 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.353, allocations: 12.62 kB / 1.309 GB, free: 12.16 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.784e-05/0.353, allocations: 62.72 kB / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.19e-05/0.3531, allocations: 32.75 kB / 1.309 GB, free: 12.05 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.3535, allocations: 275 kB / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.407e-05/0.3536, allocations: 29.03 kB / 1.309 GB, free: 11.72 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.98e-05/0.3536, allocations: 36.36 kB / 1.309 GB, free: 11.69 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006526/0.3543, allocations: 333 kB / 1.31 GB, free: 11.35 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3543, allocations: 0 / 1.31 GB, free: 11.35 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.3543, allocations: 12 kB / 1.31 GB, free: 11.34 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.3543, allocations: 8 kB / 1.31 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007084/0.3551, allocations: 254 kB / 1.31 GB, free: 11.08 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.3567, allocations: 0.9554 MB / 1.311 GB, free: 10.07 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006346/0.3574, allocations: 249.2 kB / 1.311 GB, free: 9.82 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.3576, allocations: 113.3 kB / 1.311 GB, free: 9.707 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.3577, allocations: 7.938 kB / 1.311 GB, free: 9.699 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.3581, allocations: 179.3 kB / 1.311 GB, free: 9.512 MB / 1.014 GB Notification: Performance of pre-optimization done (n=32): time 1.773e-06/0.3581, allocations: 0 / 1.311 GB, free: 9.512 MB / 1.014 GB Notification: Performance of matching and sorting (n=32): time 0.000882/0.3589, allocations: 361.2 kB / 1.312 GB, free: 9.152 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.359, allocations: 59.41 kB / 1.312 GB, free: 9.082 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.3592, allocations: 207.4 kB / 1.312 GB, free: 8.863 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.441e-05/0.3593, allocations: 37.7 kB / 1.312 GB, free: 8.82 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3594, allocations: 144.9 kB / 1.312 GB, free: 8.676 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 9.715e-05/0.3595, allocations: 95.25 kB / 1.312 GB, free: 8.582 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.3596, allocations: 86.12 kB / 1.312 GB, free: 8.492 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3598, allocations: 338.8 kB / 1.313 GB, free: 8.152 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002727/0.3601, allocations: 108.8 kB / 1.313 GB, free: 8.047 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.3604, allocations: 161.5 kB / 1.313 GB, free: 7.871 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000508/0.3609, allocations: 267.4 kB / 1.313 GB, free: 7.586 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3609, allocations: 0 / 1.313 GB, free: 7.586 MB / 1.014 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007105/0.3616, allocations: 374.5 kB / 1.314 GB, free: 7.207 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/0.3616, allocations: 39.27 kB / 1.314 GB, free: 7.164 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3616, allocations: 0 / 1.314 GB, free: 7.164 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3617, allocations: 4 kB / 1.314 GB, free: 7.16 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.3619, allocations: 43.91 kB / 1.314 GB, free: 7.117 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.3619, allocations: 4 kB / 1.314 GB, free: 7.113 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002654/0.3622, allocations: 59.83 kB / 1.314 GB, free: 7.055 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.3622, allocations: 19.98 kB / 1.314 GB, free: 7.035 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,wseCon.stateGraphRoot.activeSteps,wseCon.T2.t_start,$PRE.wseCon.T2.t_start,wseCon.T2.fire,wseCon.T2.enableFire,wseCon.T2.localCondition,wseCon.on.oldActive,$PRE.wseCon.on.oldActive,wseCon.on.newActive,$PRE.wseCon.on.newActive,wseCon.on.localActive,$PRE.wseCon.on.localActive,wseCon.on.active,wseCon.T1.t_start,$PRE.wseCon.T1.t_start,wseCon.T1.fire,wseCon.T1.enableFire,wseCon.T1.localCondition,wseCon.off.active,wseCon.off.oldActive,$PRE.wseCon.off.oldActive,wseCon.off.newActive,$PRE.wseCon.off.newActive,wseCon.off.localActive,$PRE.wseCon.off.localActive,wseCHWST.count,$PRE.wseCHWST.count,wseCHWST.T_start,$PRE.wseCHWST.T_start,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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.0002085/0.3624, allocations: 174.8 kB / 1.314 GB, free: 6.859 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.3625, allocations: 19.89 kB / 1.314 GB, free: 6.84 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006618/0.3631, allocations: 308.2 kB / 1.314 GB, free: 6.535 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.3631, allocations: 4 kB / 1.314 GB, free: 6.531 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3631, allocations: 0 / 1.314 GB, free: 6.531 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3631, allocations: 3.984 kB / 1.314 GB, free: 6.527 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.3644, allocations: 0.7407 MB / 1.315 GB, free: 5.727 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3644, allocations: 0 / 1.315 GB, free: 5.727 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.3645, allocations: 35.91 kB / 1.315 GB, free: 5.691 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3645, allocations: 4 kB / 1.315 GB, free: 5.688 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.3645, allocations: 7.938 kB / 1.315 GB, free: 5.68 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3645, allocations: 0 / 1.315 GB, free: 5.68 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3645, allocations: 0 / 1.315 GB, free: 5.68 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006192/0.3652, allocations: 372.9 kB / 1.315 GB, free: 5.301 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.693e-05/0.3652, allocations: 100.9 kB / 1.316 GB, free: 5.184 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.3653, allocations: 11.94 kB / 1.316 GB, free: 5.172 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.3655, allocations: 39.89 kB / 1.316 GB, free: 5.133 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.3656, allocations: 35.95 kB / 1.316 GB, free: 5.098 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.403e-05/0.3657, allocations: 15.94 kB / 1.316 GB, free: 5.082 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000128/0.3658, allocations: 135.5 kB / 1.316 GB, free: 4.949 MB / 1.014 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3658, allocations: 0 / 1.316 GB, free: 4.949 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003604/0.3661, allocations: 67.84 kB / 1.316 GB, free: 4.883 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.active,wseCon.off.active,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.localActive,wseCon.off.newActive,wseCon.off.oldActive,wseCon.T1.localCondition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.localActive,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.localCondition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001052/0.3672, allocations: 0.9337 MB / 1.317 GB, free: 3.922 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0007027/0.3679, allocations: 327.3 kB / 1.317 GB, free: 3.59 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3679, allocations: 0 / 1.317 GB, free: 3.59 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.3682, allocations: 123.8 kB / 1.317 GB, free: 3.469 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.3685, allocations: 35.97 kB / 1.317 GB, free: 3.434 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/0.3723, allocations: 2.647 MB / 1.32 GB, free: 0.668 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005494/0.3729, allocations: 0.7603 MB / 1.321 GB, free: 15.88 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001389/0.373, allocations: 30.28 kB / 1.321 GB, free: 15.85 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.3732, allocations: 83.39 kB / 1.321 GB, free: 15.77 MB / 1.029 GB Notification: Performance of SimCode: time 9.72e-07/0.3732, allocations: 4 kB / 1.321 GB, free: 15.76 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03224/0.4054, allocations: 5.672 MB / 1.326 GB, free: 10.25 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.326/8.732, allocations: 11.69 kB / 1.326 GB, free: 10.24 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.275578659959137]