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.005053/0.005053, allocations: 98.08 kB / 15.73 MB, free: 6.055 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.001479/0.001479, allocations: 199.3 kB / 16.68 MB, free: 5.977 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.847/2.847, allocations: 469.8 MB / 0.7425 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.003184/0.003184, allocations: 63.91 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2894, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003253/0.2927, allocations: 2.018 MB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.2939, allocations: 0.6897 MB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.371e-05/0.294, allocations: 7.938 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.2941, allocations: 35.61 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.758e-05/0.2942, allocations: 35.59 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004074/0.2946, allocations: 151.8 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000484/0.2951, allocations: 415.2 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003591/0.2955, allocations: 251.8 kB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001735/0.2957, allocations: 139.5 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.2959, allocations: 147.4 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.022e-05/0.2959, allocations: 40 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.296, allocations: 51.98 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.313e-05/0.2961, allocations: 79.77 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.2963, allocations: 155.2 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004675/0.2968, allocations: 434.3 kB / 1.225 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2968, allocations: 8 kB / 1.225 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2968, allocations: 0 / 1.225 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.2968, allocations: 4 kB / 1.225 GB, free: 9.695 MB / 0.9825 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.0009717/0.2978, allocations: 0.5987 MB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2978, allocations: 12.03 kB / 1.225 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.335e-05/0.2979, allocations: 62.72 kB / 1.225 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.045e-05/0.298, allocations: 32.75 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.2983, allocations: 278.1 kB / 1.226 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.2984, allocations: 29.03 kB / 1.226 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.982e-05/0.2984, allocations: 28.38 kB / 1.226 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00068/0.2991, allocations: 344.9 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.2991, allocations: 3.938 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.2992, allocations: 12 kB / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.2992, allocations: 4 kB / 1.226 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006281/0.2998, allocations: 250.1 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.3013, allocations: 0.9631 MB / 1.227 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006861/0.302, allocations: 262.9 kB / 1.227 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.3023, allocations: 125.3 kB / 1.228 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.3024, allocations: 4 kB / 1.228 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003992/0.3028, allocations: 179.8 kB / 1.228 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=32): time 3.867e-06/0.3028, allocations: 3.984 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of matching and sorting (n=32): time 0.0008883/0.3037, allocations: 353.3 kB / 1.228 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.3037, allocations: 55.41 kB / 1.228 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.304, allocations: 211.3 kB / 1.228 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.348e-05/0.304, allocations: 41.7 kB / 1.228 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.3041, allocations: 152.8 kB / 1.229 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.088e-05/0.3042, allocations: 87.36 kB / 1.229 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.3044, allocations: 94.06 kB / 1.229 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3045, allocations: 338.8 kB / 1.229 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.3048, allocations: 108.8 kB / 1.229 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.3052, allocations: 161.5 kB / 1.229 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005304/0.3057, allocations: 266.6 kB / 1.23 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3057, allocations: 0 / 1.23 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007553/0.3065, allocations: 374.7 kB / 1.23 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.821e-05/0.3065, allocations: 39.42 kB / 1.23 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3065, allocations: 0 / 1.23 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3066, allocations: 4 kB / 1.23 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.3068, allocations: 39.91 kB / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.3068, allocations: 4 kB / 1.23 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.3071, allocations: 59.86 kB / 1.23 GB, free: 3.883 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.3071, allocations: 20 kB / 1.23 GB, free: 3.863 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.0001864/0.3073, allocations: 177.6 kB / 1.23 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.3074, allocations: 27.8 kB / 1.23 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000673/0.308, allocations: 296.4 kB / 1.231 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.308, allocations: 4 kB / 1.231 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3081, allocations: 0 / 1.231 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3081, allocations: 3.984 kB / 1.231 GB, free: 3.359 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.3093, allocations: 0.7408 MB / 1.231 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.3093, allocations: 4 kB / 1.231 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.3095, allocations: 31.91 kB / 1.231 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.3095, allocations: 4 kB / 1.231 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.3095, allocations: 7.938 kB / 1.231 GB, free: 2.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.3095, allocations: 4 kB / 1.231 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3095, allocations: 0 / 1.231 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006378/0.3102, allocations: 380.2 kB / 1.232 GB, free: 2.125 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.571e-05/0.3102, allocations: 104.9 kB / 1.232 GB, free: 2.004 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.3103, allocations: 15.92 kB / 1.232 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.3105, allocations: 27.97 kB / 1.232 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3107, allocations: 39.95 kB / 1.232 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.3107, allocations: 11.98 kB / 1.232 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001179/0.3108, allocations: 131.8 kB / 1.232 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3108, allocations: 0 / 1.232 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003262/0.3111, allocations: 67.89 kB / 1.232 GB, free: 1.715 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.001012/0.3122, allocations: 0.9291 MB / 1.233 GB, free: 0.7578 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006911/0.3129, allocations: 335.1 kB / 1.233 GB, free: 428 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3129, allocations: 0 / 1.233 GB, free: 428 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003106/0.3132, allocations: 148.9 kB / 1.233 GB, free: 280 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.3135, allocations: 35.98 kB / 1.233 GB, free: 244 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003733/0.3173, allocations: 2.632 MB / 1.236 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.3177, allocations: 0.7603 MB / 1.237 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000121/0.3178, allocations: 30.28 kB / 1.237 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.318, allocations: 83.41 kB / 1.237 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of SimCode: time 2.164e-06/0.318, allocations: 112 / 1.237 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.3452, allocations: 5.653 MB / 1.242 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.155, allocations: 1.031 kB / 1.242 GB, free: 7.086 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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