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 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: 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.00113/0.00113, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001225/0.001225, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.342/1.342, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.704/2.704, allocations: 461.9 MB / 0.7342 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 60.36 kB / 0.8984 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3205, allocations: 157.4 MB / 1.052 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003365/0.3239, allocations: 2.106 MB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001395/0.3253, allocations: 0.709 MB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.3255, allocations: 7.938 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.3256, allocations: 19.8 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.3257, allocations: 27.78 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.3261, allocations: 139.9 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003744/0.3265, allocations: 371.2 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.3269, allocations: 221.6 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.327, allocations: 115.6 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.3272, allocations: 135.3 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.3272, allocations: 20 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.388e-05/0.3273, allocations: 28 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.281e-05/0.3274, allocations: 63.75 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.3275, allocations: 135.2 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.3279, allocations: 387.1 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3279, allocations: 0 / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.72e-07/0.3279, allocations: 0 / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.3279, allocations: 4 kB / 1.056 GB, free: 4.352 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009644/0.3289, allocations: 0.604 MB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.3289, allocations: 8.031 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.825e-05/0.329, allocations: 32.56 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.3293, allocations: 270.9 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.3293, allocations: 29.03 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.34e-05/0.3294, allocations: 28.38 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006504/0.3301, allocations: 353 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.3301, allocations: 0 / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.3301, allocations: 12 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.3301, allocations: 8 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005693/0.3307, allocations: 250.1 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.3322, allocations: 0.9513 MB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006363/0.3328, allocations: 270.8 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002426/0.3331, allocations: 120.8 kB / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.3331, allocations: 4 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004728/0.3336, allocations: 187.2 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=32): time 2.234e-06/0.3336, allocations: 3.938 kB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=32): time 0.0008425/0.3344, allocations: 341.9 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.3345, allocations: 55.41 kB / 1.06 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.3347, allocations: 203.3 kB / 1.06 GB, free: 464 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.3347, allocations: 49.69 kB / 1.06 GB, free: 408 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3348, allocations: 152.5 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.319e-05/0.3349, allocations: 82.94 kB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.335, allocations: 86.11 kB / 1.06 GB, free: 76 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3352, allocations: 338.8 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.3355, allocations: 112.8 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.3357, allocations: 169.4 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004658/0.3362, allocations: 254.7 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3362, allocations: 4 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006741/0.3369, allocations: 366.6 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.337, allocations: 33.7 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.337, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.337, allocations: 7.984 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.3372, allocations: 43.91 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.3372, allocations: 8.156 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.3375, allocations: 55.56 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.551e-05/0.3375, allocations: 12 kB / 1.062 GB, free: 14.63 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.0001838/0.3377, allocations: 186.7 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.599e-05/0.3378, allocations: 23.75 kB / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006132/0.3384, allocations: 291.2 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3384, allocations: 7.984 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3384, allocations: 0 / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3384, allocations: 0 / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.3395, allocations: 0.7569 MB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3396, allocations: 0 / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.3397, allocations: 27.92 kB / 1.063 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3397, allocations: 4 kB / 1.063 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.3397, allocations: 11.92 kB / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3398, allocations: 3.938 kB / 1.063 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3398, allocations: 0 / 1.063 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.3403, allocations: 375.3 kB / 1.063 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.3404, allocations: 108.8 kB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.818e-05/0.3404, allocations: 8 kB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.3407, allocations: 35.89 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.3408, allocations: 39.95 kB / 1.064 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.3408, allocations: 12 kB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.826e-05/0.3409, allocations: 127.2 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.21e-07/0.341, allocations: 0 / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003322/0.3413, allocations: 71.78 kB / 1.064 GB, free: 12.46 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: 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.0001729/0.3415, allocations: 121.4 kB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006368/0.3421, allocations: 344.2 kB / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3421, allocations: 0 / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002773/0.3424, allocations: 135.8 kB / 1.064 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.3428, allocations: 33.47 kB / 1.064 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008736/0.3437, allocations: 0.5441 MB / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.344, allocations: 0.7603 MB / 1.066 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001193/0.3441, allocations: 30.28 kB / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.235e-05/0.3442, allocations: 27.42 kB / 1.066 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of SimCode: time 4.7e-07/0.3442, allocations: 0 / 1.066 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of Templates: time 0.006067/0.3503, allocations: 2.858 MB / 1.068 GB, free: 7.578 MB / 0.8262 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