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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009368/0.0009368, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.005577/0.005576, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.294/1.294, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.487/2.487, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002917, allocations: 9.125 kB / 0.9029 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2371, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.001941/0.2391, allocations: 1.752 MB / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009805/0.2401, allocations: 0.6935 MB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.854e-05/0.2402, allocations: 4 kB / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.68e-05/0.2403, allocations: 15.8 kB / 1.061 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.263e-05/0.2404, allocations: 31.78 kB / 1.061 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.2408, allocations: 151.8 kB / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.2411, allocations: 351.3 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002698/0.2414, allocations: 215.7 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.2415, allocations: 91.64 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.2416, allocations: 119.3 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.199e-05/0.2417, allocations: 20 kB / 1.062 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.365e-05/0.2417, allocations: 20 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.599e-05/0.2418, allocations: 55.75 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.2419, allocations: 141 kB / 1.062 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.2422, allocations: 374.9 kB / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2422, allocations: 0 / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2422, allocations: 0 / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.2423, allocations: 0 / 1.063 GB, free: 0.8438 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.0007313/0.243, allocations: 0.5483 MB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.243, allocations: 15.95 kB / 1.063 GB, free: 232 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.261e-05/0.2431, allocations: 70.67 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.164e-05/0.2432, allocations: 32.64 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.2434, allocations: 263.9 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.2435, allocations: 25.03 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.945e-05/0.2435, allocations: 36.38 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005922/0.2441, allocations: 348.8 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2442, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.2442, allocations: 12 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.2442, allocations: 11.98 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005711/0.2448, allocations: 262.1 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.246, allocations: 0.9551 MB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005864/0.2466, allocations: 282.8 kB / 1.065 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002409/0.2469, allocations: 124.8 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.2469, allocations: 4 kB / 1.066 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003694/0.2473, allocations: 195.1 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 3.046e-06/0.2473, allocations: 3.984 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0007675/0.2481, allocations: 369.8 kB / 1.066 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.2481, allocations: 59.39 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.2483, allocations: 199.3 kB / 1.066 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.2483, allocations: 41.7 kB / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/0.2484, allocations: 152.5 kB / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.985e-05/0.2485, allocations: 78.94 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.301e-05/0.2486, allocations: 57.69 kB / 1.067 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.745e-05/0.2487, allocations: 334.8 kB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.2489, allocations: 124.8 kB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002743/0.2492, allocations: 169.5 kB / 1.067 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004465/0.2497, allocations: 266.7 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2497, allocations: 0 / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006526/0.2503, allocations: 378.6 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.2504, allocations: 37.86 kB / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2504, allocations: 0 / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.2504, allocations: 4 kB / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.2506, allocations: 47.91 kB / 1.068 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.2506, allocations: 3.938 kB / 1.068 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.2509, allocations: 71.53 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.2509, allocations: 16 kB / 1.068 GB, free: 11.02 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.0001538/0.2511, allocations: 173.7 kB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.43e-05/0.2511, allocations: 19.81 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005957/0.2517, allocations: 308.4 kB / 1.069 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2517, allocations: 7.938 kB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.2517, allocations: 0 / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2518, allocations: 3.984 kB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.2528, allocations: 0.7713 MB / 1.069 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2528, allocations: 0 / 1.069 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.2529, allocations: 31.92 kB / 1.069 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.253, allocations: 4 kB / 1.069 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.253, allocations: 15.88 kB / 1.069 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.253, allocations: 3.984 kB / 1.069 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.253, allocations: 3.984 kB / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/0.2535, allocations: 379.1 kB / 1.07 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.078e-05/0.2536, allocations: 100.8 kB / 1.07 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.483e-05/0.2536, allocations: 11.94 kB / 1.07 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.2539, allocations: 31.97 kB / 1.07 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.309e-05/0.254, allocations: 43.94 kB / 1.07 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.254, allocations: 12 kB / 1.07 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.039e-05/0.2541, allocations: 131.8 kB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2541, allocations: 0 / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003056/0.2544, allocations: 71.78 kB / 1.07 GB, free: 8.812 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.000831/0.2552, allocations: 0.9407 MB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005927/0.2559, allocations: 352.2 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2559, allocations: 0 / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.2561, allocations: 147.8 kB / 1.072 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.2565, allocations: 37.55 kB / 1.072 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003214/0.2597, allocations: 2.741 MB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.26, allocations: 0.7603 MB / 1.075 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001084/0.2601, allocations: 34.22 kB / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.2603, allocations: 83.41 kB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.2603, allocations: 0 / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.126/2.386, allocations: 5.095 MB / 1.08 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/2.386, allocations: 235 kB / 1.08 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.284/4.67, allocations: 0 / 1.08 GB, free: 14.39 MB / 0.8419 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=50 --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