Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_10_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.0009031/0.0009031, allocations: 90.52 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.005399/0.005399, allocations: 171.1 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.26/1.26, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.394/2.394, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002957, allocations: 8 kB / 0.873 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5276/0.5279, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.001983/0.5299, allocations: 1.738 MB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.5309, allocations: 0.6897 MB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.486e-05/0.531, allocations: 4 kB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.5311, allocations: 23.73 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.659e-05/0.5312, allocations: 31.72 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003411/0.5316, allocations: 143.9 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.5319, allocations: 367.2 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.5322, allocations: 211.6 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.5324, allocations: 103.5 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.5325, allocations: 107.4 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.5325, allocations: 12 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.866e-05/0.5326, allocations: 27.98 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.946e-05/0.5327, allocations: 51.75 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.5328, allocations: 153 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003126/0.5331, allocations: 372.9 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.5331, allocations: 0 / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.674e-06/0.5331, allocations: 4 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.5331, allocations: 0 / 1.027 GB, free: 11.82 MB / 0.7794 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.0007655/0.5339, allocations: 0.5382 MB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.534, allocations: 12.03 kB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.641e-05/0.534, allocations: 70.66 kB / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.065e-05/0.5341, allocations: 36.56 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002561/0.5344, allocations: 275.7 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.574e-05/0.5344, allocations: 33.02 kB / 1.028 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.704e-05/0.5345, allocations: 28.38 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005835/0.535, allocations: 337 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.5351, allocations: 0 / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.5351, allocations: 23.98 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.5351, allocations: 8 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005472/0.5357, allocations: 258 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.5369, allocations: 0.959 MB / 1.03 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005844/0.5375, allocations: 274.9 kB / 1.03 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/0.5378, allocations: 124.8 kB / 1.03 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.5378, allocations: 11.94 kB / 1.03 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003691/0.5382, allocations: 187.2 kB / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=32): time 1.713e-06/0.5382, allocations: 0 / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of matching and sorting (n=32): time 0.0007757/0.539, allocations: 373.2 kB / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.539, allocations: 59.39 kB / 1.031 GB, free: 8.047 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.5392, allocations: 199.3 kB / 1.031 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.5392, allocations: 45.69 kB / 1.031 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.5393, allocations: 156.5 kB / 1.031 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.5394, allocations: 83 kB / 1.031 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.418e-05/0.5395, allocations: 57.67 kB / 1.031 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.597e-05/0.5396, allocations: 338.8 kB / 1.031 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002579/0.5398, allocations: 108.8 kB / 1.031 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.5401, allocations: 177.5 kB / 1.032 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004573/0.5406, allocations: 266.6 kB / 1.032 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5406, allocations: 0 / 1.032 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006522/0.5413, allocations: 390.5 kB / 1.032 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.5413, allocations: 29.7 kB / 1.032 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.5413, allocations: 4 kB / 1.032 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.5413, allocations: 0 / 1.032 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.5415, allocations: 47.91 kB / 1.032 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.5415, allocations: 4 kB / 1.032 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.5418, allocations: 59.81 kB / 1.032 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.122e-05/0.5418, allocations: 15.98 kB / 1.032 GB, free: 6.004 MB / 0.7794 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.0001568/0.542, allocations: 181.7 kB / 1.033 GB, free: 5.816 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.542, allocations: 23.7 kB / 1.033 GB, free: 5.793 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005998/0.5426, allocations: 311.1 kB / 1.033 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.5427, allocations: 4 kB / 1.033 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5427, allocations: 4 kB / 1.033 GB, free: 5.473 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.5427, allocations: 3.938 kB / 1.033 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.5437, allocations: 0.7686 MB / 1.034 GB, free: 4.645 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.5437, allocations: 8 kB / 1.034 GB, free: 4.637 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.5439, allocations: 31.91 kB / 1.034 GB, free: 4.605 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.5439, allocations: 4 kB / 1.034 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.5439, allocations: 7.938 kB / 1.034 GB, free: 4.594 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.5439, allocations: 4 kB / 1.034 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.5439, allocations: 0 / 1.034 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005481/0.5445, allocations: 383.3 kB / 1.034 GB, free: 4.199 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.5445, allocations: 100.8 kB / 1.034 GB, free: 4.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.613e-05/0.5446, allocations: 11.94 kB / 1.034 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.5448, allocations: 43.95 kB / 1.034 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/0.5449, allocations: 35.95 kB / 1.034 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.5449, allocations: 11.98 kB / 1.034 GB, free: 3.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.859e-05/0.545, allocations: 131.5 kB / 1.034 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.545, allocations: 0 / 1.034 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003001/0.5453, allocations: 67.84 kB / 1.034 GB, free: 3.785 MB / 0.7794 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.0008153/0.5462, allocations: 0.9376 MB / 1.035 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005932/0.5468, allocations: 351 kB / 1.036 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.5468, allocations: 0 / 1.036 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002727/0.5471, allocations: 144.1 kB / 1.036 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.5474, allocations: 32.53 kB / 1.036 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.5505, allocations: 2.744 MB / 1.039 GB, free: 15.43 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.5508, allocations: 0.7564 MB / 1.039 GB, free: 14.64 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001038/0.5509, allocations: 30.27 kB / 1.039 GB, free: 14.61 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.5511, allocations: 91.39 kB / 1.039 GB, free: 14.52 MB / 0.795 GB Notification: Performance of SimCode: time 1.403e-06/0.5511, allocations: 112 / 1.039 GB, free: 14.52 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.955/3.506, allocations: 5.093 MB / 1.044 GB, free: 9.613 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002548/3.506, allocations: 228.4 kB / 1.045 GB, free: 9.359 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/5.275, allocations: 2.109 kB / 1.045 GB, free: 9.359 MB / 0.795 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches