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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001297/0.001297, 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.00129/0.00129, allocations: 193.3 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.268/1.268, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.576/2.576, allocations: 469.4 MB / 0.742 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 64.44 kB / 0.9083 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2372, allocations: 159.1 MB / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00304/0.2403, allocations: 2.02 MB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.2414, allocations: 0.6897 MB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.2415, allocations: 4 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.2416, allocations: 39.61 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.2417, allocations: 39.59 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.2422, allocations: 159.7 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004218/0.2426, allocations: 399.3 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000344/0.2429, allocations: 248.1 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.2431, allocations: 135.6 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.2433, allocations: 151.3 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.649e-05/0.2433, allocations: 40 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.03e-05/0.2434, allocations: 51.98 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.428e-05/0.2435, allocations: 79.77 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.2436, allocations: 151.3 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003659/0.244, allocations: 414.7 kB / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.244, allocations: 0 / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.92e-07/0.244, allocations: 0 / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.2441, allocations: 4 kB / 1.068 GB, free: 9.953 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.0008488/0.2449, allocations: 0.6084 MB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.2449, allocations: 12.03 kB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.676e-05/0.245, allocations: 66.72 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.444e-05/0.2451, allocations: 28.66 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.2454, allocations: 271.8 kB / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.2454, allocations: 25.03 kB / 1.069 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.2455, allocations: 32.38 kB / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006038/0.2461, allocations: 344.9 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.2461, allocations: 3.938 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/0.2461, allocations: 12 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.2461, allocations: 8 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005625/0.2467, allocations: 250.1 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.248, allocations: 0.9512 MB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006227/0.2487, allocations: 271.7 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.2489, allocations: 121.5 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.249, allocations: 4 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003698/0.2493, allocations: 187.7 kB / 1.071 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 1.863e-06/0.2493, allocations: 0 / 1.071 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0007985/0.2502, allocations: 345.3 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.2502, allocations: 59.34 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.2504, allocations: 203.3 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.2504, allocations: 49.69 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.591e-05/0.2505, allocations: 152.5 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.381e-05/0.2506, allocations: 82.95 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.2507, allocations: 90.02 kB / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2508, allocations: 338.8 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002677/0.2511, allocations: 108.8 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002862/0.2514, allocations: 169.4 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004654/0.2519, allocations: 250.7 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2519, allocations: 4 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006693/0.2526, allocations: 366.8 kB / 1.073 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/0.2526, allocations: 33.7 kB / 1.073 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2526, allocations: 3.984 kB / 1.073 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.2526, allocations: 4 kB / 1.073 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.2528, allocations: 47.91 kB / 1.073 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.2529, allocations: 12.09 kB / 1.073 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.2531, allocations: 51.66 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.2532, allocations: 12 kB / 1.074 GB, free: 4.152 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.0001613/0.2533, allocations: 181.7 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.524e-05/0.2534, allocations: 19.81 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006143/0.254, allocations: 292.3 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.254, allocations: 7.984 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.254, allocations: 0 / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.254, allocations: 4 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.2551, allocations: 0.7559 MB / 1.075 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.2551, allocations: 4 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001351/0.2552, allocations: 27.92 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.634e-06/0.2553, allocations: 0 / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.2553, allocations: 11.92 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2553, allocations: 7.938 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2553, allocations: 0 / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005622/0.2559, allocations: 371 kB / 1.075 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.193e-05/0.2559, allocations: 104.8 kB / 1.075 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.904e-05/0.256, allocations: 11.94 kB / 1.075 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.2562, allocations: 31.95 kB / 1.075 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.653e-05/0.2563, allocations: 47.89 kB / 1.075 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.2563, allocations: 8 kB / 1.075 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.123e-05/0.2564, allocations: 131.8 kB / 1.075 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2565, allocations: 0 / 1.075 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003121/0.2568, allocations: 71.83 kB / 1.076 GB, free: 1.992 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.0008617/0.2576, allocations: 0.9251 MB / 1.076 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006994/0.2583, allocations: 362.7 kB / 1.077 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2584, allocations: 0 / 1.077 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.2586, allocations: 141.3 kB / 1.077 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.259, allocations: 35.02 kB / 1.077 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.2622, allocations: 2.625 MB / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.2625, allocations: 0.7603 MB / 1.08 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001048/0.2626, allocations: 30.28 kB / 1.08 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.2628, allocations: 83.41 kB / 1.08 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.2628, allocations: 0 / 1.08 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02048/0.2833, allocations: 5.547 MB / 1.086 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.998/7.282, allocations: 10.55 kB / 1.086 GB, free: 7.438 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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