Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_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.007515/0.007515, allocations: 100.1 kB / 15.73 MB, free: 6.445 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.001852/0.001852, allocations: 191.1 kB / 16.67 MB, free: 6.348 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2285, allocations: 140.4 MB / 1.087 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003068/0.2316, allocations: 2.016 MB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2328, allocations: 0.6819 MB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.233, allocations: 7.938 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.2331, allocations: 35.61 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.2333, allocations: 39.59 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004262/0.2337, allocations: 159.8 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000445/0.2342, allocations: 407.2 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003382/0.2345, allocations: 252 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.2347, allocations: 135.5 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.2349, allocations: 147.4 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.341e-05/0.2349, allocations: 40 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.275e-05/0.235, allocations: 48 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.001e-05/0.2351, allocations: 83.75 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.2353, allocations: 155.2 kB / 1.092 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.2357, allocations: 430.4 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2357, allocations: 4 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.203e-06/0.2357, allocations: 0 / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.035e-06/0.2357, allocations: 4 kB / 1.092 GB, free: 13.36 MB / 0.8575 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.0009226/0.2367, allocations: 0.6026 MB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.2367, allocations: 15.97 kB / 1.093 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/0.2368, allocations: 70.72 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.271e-05/0.2369, allocations: 32.75 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.2372, allocations: 277.3 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.2373, allocations: 29.03 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/0.2373, allocations: 28.38 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006371/0.238, allocations: 340.9 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.238, allocations: 0 / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.238, allocations: 16 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.238, allocations: 4 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005903/0.2386, allocations: 254.1 kB / 1.094 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.2401, allocations: 0.9476 MB / 1.094 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006401/0.2407, allocations: 266.9 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.241, allocations: 125.3 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.241, allocations: 8 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003808/0.2414, allocations: 179.8 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=32): time 1.894e-06/0.2414, allocations: 3.938 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of matching and sorting (n=32): time 0.0008383/0.2423, allocations: 349.4 kB / 1.095 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.2423, allocations: 59.39 kB / 1.095 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.2425, allocations: 203.4 kB / 1.096 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.2426, allocations: 45.7 kB / 1.096 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.861e-05/0.2427, allocations: 152.8 kB / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.529e-05/0.2427, allocations: 91.27 kB / 1.096 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.2429, allocations: 86.11 kB / 1.096 GB, free: 8.988 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.243, allocations: 342.8 kB / 1.096 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.2433, allocations: 108.8 kB / 1.096 GB, free: 8.539 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/0.2436, allocations: 165.4 kB / 1.097 GB, free: 8.363 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004837/0.2441, allocations: 254.7 kB / 1.097 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2441, allocations: 3.938 kB / 1.097 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007076/0.2448, allocations: 371 kB / 1.097 GB, free: 7.711 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.2448, allocations: 37.69 kB / 1.097 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2449, allocations: 0 / 1.097 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.2449, allocations: 4 kB / 1.097 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.2451, allocations: 43.91 kB / 1.097 GB, free: 7.621 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.2451, allocations: 4 kB / 1.097 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.2454, allocations: 59.83 kB / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/0.2454, allocations: 16 kB / 1.097 GB, free: 7.543 MB / 0.8575 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.0001724/0.2456, allocations: 177.6 kB / 1.098 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.849e-05/0.2457, allocations: 19.91 kB / 1.098 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000636/0.2463, allocations: 308.3 kB / 1.098 GB, free: 7.039 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.2463, allocations: 4 kB / 1.098 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2463, allocations: 0 / 1.098 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2463, allocations: 0 / 1.098 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.2474, allocations: 0.7409 MB / 1.099 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2475, allocations: 4 kB / 1.099 GB, free: 6.234 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.2476, allocations: 27.92 kB / 1.099 GB, free: 6.207 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2476, allocations: 4 kB / 1.099 GB, free: 6.203 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.2476, allocations: 15.92 kB / 1.099 GB, free: 6.188 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2476, allocations: 0 / 1.099 GB, free: 6.188 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2477, allocations: 0 / 1.099 GB, free: 6.188 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005828/0.2482, allocations: 376.2 kB / 1.099 GB, free: 5.805 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.2483, allocations: 104.9 kB / 1.099 GB, free: 5.684 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.2484, allocations: 7.938 kB / 1.099 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.2486, allocations: 35.95 kB / 1.099 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.689e-05/0.2487, allocations: 39.95 kB / 1.099 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.2488, allocations: 8 kB / 1.099 GB, free: 5.594 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001053/0.2489, allocations: 131.8 kB / 1.099 GB, free: 5.465 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2489, allocations: 0 / 1.099 GB, free: 5.465 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003373/0.2492, allocations: 75.83 kB / 1.099 GB, free: 5.391 MB / 0.8575 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.0009395/0.2502, allocations: 0.9252 MB / 1.1 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000662/0.2508, allocations: 340 kB / 1.101 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2508, allocations: 3.938 kB / 1.101 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002905/0.2511, allocations: 147.7 kB / 1.101 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.2515, allocations: 42.67 kB / 1.101 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.2553, allocations: 2.639 MB / 1.103 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.2556, allocations: 0.7564 MB / 1.104 GB, free: 360 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001151/0.2558, allocations: 34.28 kB / 1.104 GB, free: 328 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.2559, allocations: 83.41 kB / 1.104 GB, free: 244 kB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.2559, allocations: 0 / 1.104 GB, free: 244 kB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02154/0.2775, allocations: 5.642 MB / 1.11 GB, free: 10.74 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.23/7.508, allocations: 17.11 kB / 1.11 GB, free: 10.73 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches