Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_11_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.001652/0.001652, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.406/1.406, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.573/2.573, allocations: 469.8 MB / 0.7424 GB, free: 7.492 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 68.7 kB / 0.9087 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2398, allocations: 159.1 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003127/0.243, allocations: 2.016 MB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.2441, allocations: 0.6975 MB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.319e-05/0.2442, allocations: 4 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.2443, allocations: 35.61 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.788e-05/0.2444, allocations: 39.59 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.2448, allocations: 155.8 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004009/0.2452, allocations: 403.2 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003214/0.2455, allocations: 248.1 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.2457, allocations: 135.6 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.2458, allocations: 151.3 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.526e-05/0.2459, allocations: 40 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.39e-05/0.246, allocations: 47.98 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.2461, allocations: 83.77 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.2462, allocations: 155.3 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003812/0.2466, allocations: 414.7 kB / 1.069 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2466, allocations: 3.984 kB / 1.069 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2466, allocations: 0 / 1.069 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.2466, allocations: 0 / 1.069 GB, free: 9.602 MB / 0.8262 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.0008519/0.2475, allocations: 0.6067 MB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.2475, allocations: 8.031 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.712e-05/0.2476, allocations: 70.72 kB / 1.069 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.531e-05/0.2477, allocations: 28.66 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.248, allocations: 267.8 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.248, allocations: 29.03 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.248, allocations: 28.38 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005838/0.2486, allocations: 340.9 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.2487, allocations: 0 / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.2487, allocations: 16 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.2487, allocations: 8 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005354/0.2492, allocations: 250.1 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.2506, allocations: 0.9551 MB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005877/0.2512, allocations: 269.6 kB / 1.071 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/0.2514, allocations: 124.8 kB / 1.071 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.2515, allocations: 4 kB / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003651/0.2518, allocations: 187.7 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 1.583e-06/0.2518, allocations: 0 / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0007508/0.2526, allocations: 345.3 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.2527, allocations: 63.39 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.2528, allocations: 203.2 kB / 1.072 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.421e-05/0.2529, allocations: 45.7 kB / 1.072 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.722e-05/0.253, allocations: 148.5 kB / 1.072 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.113e-05/0.2531, allocations: 82.94 kB / 1.072 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.2532, allocations: 90.02 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.2533, allocations: 338.8 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.2536, allocations: 112.8 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/0.2539, allocations: 169.4 kB / 1.073 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004475/0.2543, allocations: 254.7 kB / 1.073 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2543, allocations: 0 / 1.073 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006364/0.255, allocations: 370.9 kB / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.255, allocations: 37.69 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.255, allocations: 0 / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.255, allocations: 4 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.2552, allocations: 43.91 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.2552, allocations: 7.938 kB / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.2555, allocations: 51.66 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.2555, allocations: 16.03 kB / 1.074 GB, free: 3.801 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.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.0001619/0.2557, allocations: 177.7 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.2557, allocations: 19.81 kB / 1.074 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005742/0.2563, allocations: 300.2 kB / 1.074 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2563, allocations: 11.94 kB / 1.074 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2563, allocations: 0 / 1.074 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2563, allocations: 0 / 1.074 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.2574, allocations: 0.752 MB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2574, allocations: 0 / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.2575, allocations: 27.92 kB / 1.075 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2575, allocations: 4 kB / 1.075 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.09e-05/0.2575, allocations: 15.92 kB / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2575, allocations: 0 / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.2575, allocations: 0 / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005513/0.2581, allocations: 371 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.849e-05/0.2582, allocations: 100.8 kB / 1.076 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.2582, allocations: 19.94 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.2584, allocations: 35.95 kB / 1.076 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.33e-05/0.2585, allocations: 35.95 kB / 1.076 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.2586, allocations: 19.92 kB / 1.076 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.644e-05/0.2587, allocations: 131.8 kB / 1.076 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2587, allocations: 0 / 1.076 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002878/0.259, allocations: 67.83 kB / 1.076 GB, free: 1.641 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.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.0008693/0.2598, allocations: 0.9251 MB / 1.077 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006637/0.2605, allocations: 362.7 kB / 1.077 GB, free: 328 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2605, allocations: 0 / 1.077 GB, free: 328 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.2608, allocations: 137 kB / 1.077 GB, free: 192 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.2611, allocations: 39.95 kB / 1.077 GB, free: 152 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003265/0.2644, allocations: 2.625 MB / 1.08 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.2647, allocations: 0.7564 MB / 1.081 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.867e-05/0.2648, allocations: 30.28 kB / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.265, allocations: 87.41 kB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of SimCode: time 2.81e-07/0.265, allocations: 3.938 kB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.674/1.939, allocations: 5.537 MB / 1.086 GB, free: 7.094 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/14.92, allocations: 13.72 kB / 1.086 GB, free: 7.082 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches