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.001548/0.001548, allocations: 108.3 kB / 15.99 MB, free: 6.371 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.001499/0.001499, allocations: 194.9 kB / 16.91 MB, free: 6.199 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.386/1.386, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.699/2.699, allocations: 482.2 MB / 0.7548 GB, free: 7.352 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 64.03 kB / 0.9238 GB, free: 0.543 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8211/0.8231, allocations: 162.2 MB / 1.082 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003239/0.8264, allocations: 2.102 MB / 1.084 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.8276, allocations: 0.6932 MB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.8278, allocations: 5.469 kB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.8279, allocations: 19.06 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.828, allocations: 34.5 kB / 1.085 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004266/0.8285, allocations: 143.8 kB / 1.085 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005165/0.829, allocations: 405.8 kB / 1.085 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003799/0.8294, allocations: 237 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.8296, allocations: 142.1 kB / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.8298, allocations: 145.7 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.303e-05/0.8298, allocations: 39.41 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.83, allocations: 49.58 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.8301, allocations: 81.14 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.8303, allocations: 151.1 kB / 1.086 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003966/0.8307, allocations: 335.2 kB / 1.087 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.8307, allocations: 1.312 kB / 1.087 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.056e-06/0.8307, allocations: 0 / 1.087 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.8307, allocations: 3.938 kB / 1.087 GB, free: 14.93 MB / 0.8419 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.001001/0.8317, allocations: 0.602 MB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.8317, allocations: 10.42 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.263e-05/0.8318, allocations: 29.03 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.8321, allocations: 270.2 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.331e-05/0.8322, allocations: 31.83 kB / 1.088 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/0.8323, allocations: 34.56 kB / 1.088 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006802/0.8329, allocations: 341.9 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.833, allocations: 1.953 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.424e-05/0.833, allocations: 10.56 kB / 1.088 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.833, allocations: 7.453 kB / 1.088 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005835/0.8336, allocations: 248.1 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.8352, allocations: 0.9587 MB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006665/0.8358, allocations: 272.4 kB / 1.089 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.8361, allocations: 124.1 kB / 1.089 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.8361, allocations: 2.594 kB / 1.089 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004988/0.8366, allocations: 187.2 kB / 1.09 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 2.304e-06/0.8367, allocations: 3.938 kB / 1.09 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of matching and sorting (n=32): time 0.0008716/0.8375, allocations: 347.8 kB / 1.09 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.8376, allocations: 62.5 kB / 1.09 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002009/0.8378, allocations: 198.8 kB / 1.09 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.8379, allocations: 40.41 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.838, allocations: 157 kB / 1.09 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.989e-05/0.8381, allocations: 81.7 kB / 1.09 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.8382, allocations: 96.94 kB / 1.091 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.8384, allocations: 335.5 kB / 1.091 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.8387, allocations: 109.7 kB / 1.091 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.839, allocations: 161 kB / 1.091 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005074/0.8395, allocations: 261.5 kB / 1.091 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.8395, allocations: 1.344 kB / 1.091 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007588/0.8403, allocations: 371.5 kB / 1.092 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.8403, allocations: 32.31 kB / 1.092 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.8403, allocations: 1.625 kB / 1.092 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.8404, allocations: 3.812 kB / 1.092 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.8406, allocations: 47.16 kB / 1.092 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.8406, allocations: 8.688 kB / 1.092 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.8409, allocations: 58.55 kB / 1.092 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.8409, allocations: 15.83 kB / 1.092 GB, free: 11.45 MB / 0.8419 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.0002164/0.8412, allocations: 177.2 kB / 1.092 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.8412, allocations: 23.05 kB / 1.092 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006758/0.8419, allocations: 301.7 kB / 1.092 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.8419, allocations: 3.469 kB / 1.092 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.8419, allocations: 0.625 kB / 1.092 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.8419, allocations: 2.609 kB / 1.092 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.8432, allocations: 0.7517 MB / 1.093 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.8432, allocations: 1.406 kB / 1.093 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.8434, allocations: 29.22 kB / 1.093 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.8434, allocations: 2.094 kB / 1.093 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.8434, allocations: 7.375 kB / 1.093 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.8434, allocations: 4.938 kB / 1.093 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.8434, allocations: 4.719 kB / 1.093 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006466/0.8441, allocations: 369.6 kB / 1.094 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.798e-05/0.8442, allocations: 97.28 kB / 1.094 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.8442, allocations: 11.42 kB / 1.094 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.8445, allocations: 34.23 kB / 1.094 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.8446, allocations: 44.92 kB / 1.094 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.8447, allocations: 12.41 kB / 1.094 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001449/0.8448, allocations: 133.3 kB / 1.094 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8448, allocations: 0 / 1.094 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004064/0.8452, allocations: 74.77 kB / 1.094 GB, free: 10.18 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.0001967/0.8454, allocations: 118.1 kB / 1.094 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007744/0.8462, allocations: 359.2 kB / 1.094 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8462, allocations: 1.281 kB / 1.094 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000299/0.8465, allocations: 136.4 kB / 1.095 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003623/0.8469, allocations: 36.53 kB / 1.095 GB, free: 9.859 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009891/0.8479, allocations: 0.5689 MB / 1.095 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.8483, allocations: 0.7564 MB / 1.096 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.56e-05/0.8484, allocations: 27.19 kB / 1.096 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.8484, allocations: 1.344 kB / 1.096 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of Templates: time 0.0067/0.8551, allocations: 3.482 MB / 1.099 GB, free: 8.348 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/jenkins1/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