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.001105/0.001105, allocations: 90.91 kB / 15.36 MB, free: 0.7383 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.009732/0.009732, allocations: 172 kB / 16.26 MB, free: 6.613 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.579/1.579, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.705/2.705, allocations: 462.7 MB / 0.7364 GB, free: 300 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003403, allocations: 8.562 kB / 0.9028 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3161, allocations: 159.6 MB / 1.059 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002616/0.3187, allocations: 1.736 MB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001419/0.3202, allocations: 0.7012 MB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.3205, allocations: 7.938 kB / 1.061 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.3206, allocations: 23.73 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.3208, allocations: 31.78 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.3214, allocations: 143.9 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005108/0.322, allocations: 363.3 kB / 1.062 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003755/0.3224, allocations: 213.3 kB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.3225, allocations: 95.58 kB / 1.062 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.3227, allocations: 119.4 kB / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.3227, allocations: 12 kB / 1.062 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.7e-05/0.3228, allocations: 23.98 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.971e-05/0.3229, allocations: 55.7 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.323, allocations: 141 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003922/0.3234, allocations: 375 kB / 1.063 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.3235, allocations: 3.984 kB / 1.063 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.799e-06/0.3235, allocations: 0 / 1.063 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.3235, allocations: 3.938 kB / 1.063 GB, free: 1.449 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.001025/0.3245, allocations: 0.5406 MB / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.3246, allocations: 8.031 kB / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.875e-05/0.3247, allocations: 32.66 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003236/0.325, allocations: 271.7 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/0.325, allocations: 29.03 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.674e-05/0.3251, allocations: 32.36 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006851/0.3258, allocations: 345.2 kB / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3258, allocations: 0 / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.3259, allocations: 12 kB / 1.064 GB, free: 92 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.3259, allocations: 11.94 kB / 1.064 GB, free: 80 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006163/0.3265, allocations: 266 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.328, allocations: 0.9513 MB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.3286, allocations: 282.4 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002616/0.3289, allocations: 132.7 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.3289, allocations: 4 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004308/0.3294, allocations: 191.2 kB / 1.066 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 2.304e-06/0.3294, allocations: 0 / 1.066 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0008907/0.3303, allocations: 361.8 kB / 1.066 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.3303, allocations: 59.41 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001962/0.3305, allocations: 211.2 kB / 1.066 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.781e-05/0.3306, allocations: 45.69 kB / 1.066 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.3307, allocations: 144.5 kB / 1.066 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.362e-05/0.3308, allocations: 86.92 kB / 1.066 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.217e-05/0.3309, allocations: 53.69 kB / 1.067 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.331, allocations: 338.8 kB / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00029/0.3313, allocations: 120.8 kB / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003155/0.3317, allocations: 165.5 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004876/0.3322, allocations: 274.6 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3322, allocations: 0 / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006689/0.3328, allocations: 374.6 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.3329, allocations: 41.84 kB / 1.068 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3329, allocations: 0 / 1.068 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3329, allocations: 4 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002074/0.3331, allocations: 43.91 kB / 1.068 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.3332, allocations: 4 kB / 1.068 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.3334, allocations: 67.56 kB / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-05/0.3335, allocations: 15.98 kB / 1.068 GB, free: 11.71 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.0001705/0.3336, allocations: 174.8 kB / 1.068 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.3337, allocations: 19.81 kB / 1.068 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006323/0.3343, allocations: 315.2 kB / 1.068 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3343, allocations: 4 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3343, allocations: 0 / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3344, allocations: 0 / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.3355, allocations: 0.7686 MB / 1.069 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3355, allocations: 0 / 1.069 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.3357, allocations: 35.91 kB / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.3357, allocations: 0 / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.3357, allocations: 12 kB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.3357, allocations: 3.938 kB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3357, allocations: 3.938 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005989/0.3363, allocations: 383.3 kB / 1.07 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.66e-05/0.3364, allocations: 104.8 kB / 1.07 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.778e-05/0.3364, allocations: 8 kB / 1.07 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.3367, allocations: 39.89 kB / 1.07 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.3368, allocations: 35.95 kB / 1.07 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.3368, allocations: 15.98 kB / 1.07 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.692e-05/0.3369, allocations: 135.2 kB / 1.07 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3369, allocations: 0 / 1.07 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003377/0.3373, allocations: 71.84 kB / 1.07 GB, free: 9.512 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.0001683/0.3375, allocations: 109.5 kB / 1.07 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006713/0.3381, allocations: 356.2 kB / 1.07 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3381, allocations: 0 / 1.07 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.3384, allocations: 143.8 kB / 1.071 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.3388, allocations: 40.22 kB / 1.071 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009067/0.3397, allocations: 0.5427 MB / 1.071 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.34, allocations: 0.7603 MB / 1.072 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001118/0.3402, allocations: 30.28 kB / 1.072 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.218e-05/0.3402, allocations: 23.44 kB / 1.072 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of SimCode: time 6.32e-07/0.3403, allocations: 0 / 1.072 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of Templates: time 0.006486/0.3467, allocations: 2.826 MB / 1.075 GB, free: 4.645 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