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) 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 12.0.0-master/package.mo", uses=false) 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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001123/0.001123, allocations: 196.3 kB / 16.14 MB, free: 6.691 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.385/1.385, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.75/2.75, allocations: 472.6 MB / 0.7447 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 74.45 kB / 0.9114 GB, free: 33.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3656, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003416/0.3691, allocations: 2.101 MB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.3704, allocations: 0.7013 MB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.3705, allocations: 7.938 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.3706, allocations: 19.8 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.608e-05/0.3708, allocations: 27.78 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003792/0.3711, allocations: 139.9 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003986/0.3715, allocations: 379.1 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003362/0.3719, allocations: 233.6 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.372, allocations: 111.6 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.3722, allocations: 135.3 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.3723, allocations: 20 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.021e-05/0.3724, allocations: 28 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.508e-05/0.3725, allocations: 67.73 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.3726, allocations: 131.3 kB / 1.072 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003694/0.373, allocations: 387 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.373, allocations: 7.984 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.182e-06/0.373, allocations: 0 / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.373, allocations: 0 / 1.072 GB, free: 6.445 MB / 0.8262 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.001021/0.374, allocations: 0.6029 MB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3741, allocations: 8.031 kB / 1.073 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.521e-05/0.3742, allocations: 32.56 kB / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.3745, allocations: 263.9 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.3745, allocations: 25.03 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.3746, allocations: 36.38 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006344/0.3752, allocations: 341.1 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3752, allocations: 0 / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.3753, allocations: 8 kB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.3753, allocations: 8 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005723/0.3759, allocations: 254.1 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.3774, allocations: 0.9551 MB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000621/0.378, allocations: 275.3 kB / 1.075 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.3783, allocations: 120.8 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.3783, allocations: 4 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004241/0.3787, allocations: 183.3 kB / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 3.126e-06/0.3787, allocations: 0 / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0008168/0.3795, allocations: 349.8 kB / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.3796, allocations: 59.39 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.3798, allocations: 207.2 kB / 1.076 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.3798, allocations: 45.7 kB / 1.076 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.564e-05/0.3799, allocations: 148.6 kB / 1.076 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.868e-05/0.38, allocations: 82.84 kB / 1.076 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.3801, allocations: 90.11 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3803, allocations: 338.8 kB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.3805, allocations: 104.8 kB / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.3808, allocations: 173.4 kB / 1.076 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004593/0.3813, allocations: 262.6 kB / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3813, allocations: 0 / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006778/0.382, allocations: 370.7 kB / 1.077 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/0.3821, allocations: 37.69 kB / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3821, allocations: 0 / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.3821, allocations: 4 kB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.3823, allocations: 48.06 kB / 1.077 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.3823, allocations: 4 kB / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.3826, allocations: 51.66 kB / 1.077 GB, free: 0.7305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.3826, allocations: 15.98 kB / 1.077 GB, free: 0.7148 MB / 0.8262 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.condition,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.condition,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.0001775/0.3828, allocations: 183 kB / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.3829, allocations: 27.72 kB / 1.077 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006348/0.3835, allocations: 296.3 kB / 1.078 GB, free: 220 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.3835, allocations: 4 kB / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3835, allocations: 0 / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3835, allocations: 0 / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.3847, allocations: 0.7519 MB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.3847, allocations: 0 / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.3848, allocations: 31.91 kB / 1.078 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3848, allocations: 3.938 kB / 1.078 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.3849, allocations: 8 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.3849, allocations: 3.938 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3849, allocations: 0 / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005657/0.3855, allocations: 375 kB / 1.079 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.346e-05/0.3855, allocations: 100.9 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.3856, allocations: 8 kB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.3858, allocations: 39.89 kB / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.386, allocations: 35.95 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.386, allocations: 8 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001022/0.3861, allocations: 135.7 kB / 1.079 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3861, allocations: 0 / 1.079 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003387/0.3864, allocations: 75.69 kB / 1.079 GB, free: 14.56 MB / 0.8419 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.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,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.0001889/0.3866, allocations: 129.4 kB / 1.079 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006663/0.3873, allocations: 334.9 kB / 1.08 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3873, allocations: 0 / 1.08 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002842/0.3876, allocations: 135.9 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/0.388, allocations: 39.52 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008901/0.3889, allocations: 0.5361 MB / 1.08 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/0.3892, allocations: 0.7642 MB / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001198/0.3893, allocations: 38.22 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.681e-05/0.3894, allocations: 23.44 kB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of SimCode: time 2.81e-07/0.3894, allocations: 0 / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.006313/0.3957, allocations: 2.846 MB / 1.084 GB, free: 9.672 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (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 & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches