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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004685/0.004685, allocations: 99.52 kB / 15.73 MB, free: 6.047 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.001348/0.001348, allocations: 203.2 kB / 16.68 MB, free: 5.965 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.211/1.211, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.515/2.515, allocations: 482.6 MB / 0.7551 GB, free: 6.625 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 60.11 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2914, allocations: 162.3 MB / 1.242 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003014/0.2945, allocations: 2.019 MB / 1.244 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.2956, allocations: 0.6858 MB / 1.244 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2957, allocations: 7.938 kB / 1.244 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.2958, allocations: 31.61 kB / 1.245 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.797e-05/0.2959, allocations: 35.59 kB / 1.245 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.2963, allocations: 155.8 kB / 1.245 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004338/0.2967, allocations: 407.2 kB / 1.245 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003222/0.2971, allocations: 252.1 kB / 1.245 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.2972, allocations: 143.5 kB / 1.245 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.2974, allocations: 135.4 kB / 1.246 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.022e-05/0.2975, allocations: 47.92 kB / 1.246 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.16e-05/0.2976, allocations: 51.98 kB / 1.246 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.028e-05/0.2977, allocations: 75.83 kB / 1.246 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.2978, allocations: 159.2 kB / 1.246 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004445/0.2983, allocations: 438.4 kB / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2983, allocations: 0 / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2983, allocations: 0 / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.2983, allocations: 0 / 1.246 GB, free: 4.301 MB / 0.9669 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.000888/0.2992, allocations: 0.6064 MB / 1.247 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.2992, allocations: 12.03 kB / 1.247 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.972e-05/0.2993, allocations: 66.72 kB / 1.247 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.728e-05/0.2994, allocations: 32.75 kB / 1.247 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.2997, allocations: 275.8 kB / 1.247 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.313e-05/0.2997, allocations: 37 kB / 1.247 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.517e-05/0.2998, allocations: 28.38 kB / 1.247 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005925/0.3004, allocations: 336.9 kB / 1.248 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3004, allocations: 0 / 1.248 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.3004, allocations: 19.98 kB / 1.248 GB, free: 2.789 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3005, allocations: 8 kB / 1.248 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005448/0.301, allocations: 246.1 kB / 1.248 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.3024, allocations: 0.9515 MB / 1.249 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006042/0.303, allocations: 270.9 kB / 1.249 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.3032, allocations: 116.8 kB / 1.249 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.3033, allocations: 4 kB / 1.249 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003624/0.3036, allocations: 187.8 kB / 1.249 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=32): time 3.487e-06/0.3037, allocations: 0 / 1.249 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of matching and sorting (n=32): time 0.0007795/0.3044, allocations: 353.3 kB / 1.25 GB, free: 0.5938 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.3045, allocations: 63.34 kB / 1.25 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.3047, allocations: 203.4 kB / 1.25 GB, free: 312 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.3047, allocations: 41.7 kB / 1.25 GB, free: 264 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3048, allocations: 148.8 kB / 1.25 GB, free: 112 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.402e-05/0.3049, allocations: 91.3 kB / 1.25 GB, free: 20 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3051, allocations: 86.19 kB / 1.25 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.3052, allocations: 342.8 kB / 1.251 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002551/0.3055, allocations: 108.8 kB / 1.251 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.3058, allocations: 165.4 kB / 1.251 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004603/0.3062, allocations: 254.7 kB / 1.251 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3062, allocations: 0 / 1.251 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006467/0.3069, allocations: 378.7 kB / 1.252 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.3069, allocations: 33.7 kB / 1.252 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3069, allocations: 4 kB / 1.252 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.307, allocations: 4 kB / 1.252 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.3072, allocations: 43.91 kB / 1.252 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.3072, allocations: 4 kB / 1.252 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002312/0.3074, allocations: 59.89 kB / 1.252 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.3075, allocations: 12 kB / 1.252 GB, free: 14.47 MB / 0.9825 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.0001681/0.3076, allocations: 181.6 kB / 1.252 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/0.3077, allocations: 23.86 kB / 1.252 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005869/0.3083, allocations: 296.9 kB / 1.252 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3083, allocations: 4 kB / 1.252 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3083, allocations: 0 / 1.252 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.3083, allocations: 3.984 kB / 1.252 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.3093, allocations: 0.7447 MB / 1.253 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3093, allocations: 3.938 kB / 1.253 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.3095, allocations: 35.91 kB / 1.253 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3095, allocations: 0 / 1.253 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.3095, allocations: 11.94 kB / 1.253 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3095, allocations: 0 / 1.253 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3095, allocations: 0 / 1.253 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005325/0.31, allocations: 376.2 kB / 1.253 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.3101, allocations: 100.9 kB / 1.253 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/0.3102, allocations: 19.94 kB / 1.253 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.3104, allocations: 31.95 kB / 1.253 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.957e-05/0.3105, allocations: 39.89 kB / 1.254 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.3105, allocations: 12 kB / 1.254 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001004/0.3106, allocations: 135.7 kB / 1.254 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3106, allocations: 0 / 1.254 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002828/0.3109, allocations: 67.89 kB / 1.254 GB, free: 12.32 MB / 0.9825 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.0008794/0.3118, allocations: 0.9291 MB / 1.255 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006072/0.3124, allocations: 335.1 kB / 1.255 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3124, allocations: 4 kB / 1.255 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.3127, allocations: 140.9 kB / 1.255 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.313, allocations: 32.28 kB / 1.255 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.3163, allocations: 2.635 MB / 1.258 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.3166, allocations: 0.7642 MB / 1.258 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.797e-05/0.3167, allocations: 30.28 kB / 1.258 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.3169, allocations: 83.41 kB / 1.259 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.3169, allocations: 4 kB / 1.259 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5228/0.8397, allocations: 5.644 MB / 1.264 GB, free: 1.703 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.98/8.82, allocations: 13.31 kB / 1.264 GB, free: 1.695 MB / 0.9825 GB (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 --timeout=400 --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) 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