Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_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.001471/0.001471, allocations: 108 kB / 15.61 MB, free: 152 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.001752/0.001752, allocations: 192.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.312/1.312, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.613/1.613, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002543/0.002543, allocations: 66.89 kB / 0.6716 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2185, allocations: 114.6 MB / 0.7835 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003671/0.2223, allocations: 2.012 MB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.2236, allocations: 0.7295 MB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.2237, allocations: 4 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.2238, allocations: 35.61 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.529e-05/0.2239, allocations: 39.58 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.2244, allocations: 159.8 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000418/0.2248, allocations: 407.2 kB / 0.7868 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003634/0.2252, allocations: 244.1 kB / 0.787 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001643/0.2254, allocations: 135.6 kB / 0.7871 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.2255, allocations: 143.4 kB / 0.7873 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.077e-05/0.2256, allocations: 43.94 kB / 0.7873 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.922e-05/0.2257, allocations: 52 kB / 0.7874 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.666e-05/0.2258, allocations: 83.75 kB / 0.7874 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.226, allocations: 159.2 kB / 0.7876 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004051/0.2264, allocations: 406.8 kB / 0.788 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.2264, allocations: 0 / 0.788 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2264, allocations: 3.938 kB / 0.788 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.2264, allocations: 0 / 0.788 GB, free: 8.711 MB / 0.6075 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.0009429/0.2274, allocations: 0.5951 MB / 0.7886 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2274, allocations: 8.031 kB / 0.7886 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.703e-05/0.2275, allocations: 70.72 kB / 0.7886 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.541e-05/0.2276, allocations: 36.56 kB / 0.7887 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002933/0.2279, allocations: 270.8 kB / 0.7889 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.2279, allocations: 29.03 kB / 0.789 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.717e-05/0.228, allocations: 36.31 kB / 0.789 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005953/0.2286, allocations: 340.9 kB / 0.7893 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2286, allocations: 0 / 0.7893 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.2286, allocations: 12 kB / 0.7893 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2287, allocations: 11.98 kB / 0.7894 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005278/0.2292, allocations: 254.1 kB / 0.7896 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.2306, allocations: 0.9473 MB / 0.7905 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006158/0.2312, allocations: 266.9 kB / 0.7908 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.2315, allocations: 128.7 kB / 0.7909 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.2315, allocations: 15.98 kB / 0.7909 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004357/0.232, allocations: 179.2 kB / 0.7911 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 3.647e-06/0.232, allocations: 3.984 kB / 0.7911 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007962/0.2328, allocations: 351.6 kB / 0.7914 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.2328, allocations: 63.39 kB / 0.7915 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.233, allocations: 203.3 kB / 0.7917 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.2331, allocations: 37.7 kB / 0.7917 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.527e-05/0.2332, allocations: 148.6 kB / 0.7919 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.445e-05/0.2332, allocations: 82.91 kB / 0.7919 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.2334, allocations: 90.11 kB / 0.792 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.2335, allocations: 334.8 kB / 0.7923 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.2338, allocations: 112.8 kB / 0.7924 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.234, allocations: 169.2 kB / 0.7926 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004627/0.2345, allocations: 262.7 kB / 0.7929 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2345, allocations: 0 / 0.7929 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006428/0.2352, allocations: 362.8 kB / 0.7932 GB, free: 3.078 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.2352, allocations: 45.84 kB / 0.7932 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2352, allocations: 0 / 0.7932 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.2353, allocations: 4 kB / 0.7933 GB, free: 3.023 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.2354, allocations: 39.91 kB / 0.7933 GB, free: 2.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.2355, allocations: 4 kB / 0.7933 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.2357, allocations: 55.66 kB / 0.7933 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.2358, allocations: 12 kB / 0.7934 GB, free: 2.914 MB / 0.6075 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.0001637/0.2359, allocations: 182.5 kB / 0.7935 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.236, allocations: 23.72 kB / 0.7936 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006053/0.2366, allocations: 296.6 kB / 0.7938 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2366, allocations: 4 kB / 0.7938 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2366, allocations: 4 kB / 0.7938 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2366, allocations: 0 / 0.7938 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.2377, allocations: 0.748 MB / 0.7946 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2377, allocations: 0 / 0.7946 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.2378, allocations: 27.92 kB / 0.7946 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.2378, allocations: 15.92 kB / 0.7946 GB, free: 1.555 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.2379, allocations: 15.86 kB / 0.7946 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.2379, allocations: 4 kB / 0.7946 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2379, allocations: 0 / 0.7946 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005325/0.2384, allocations: 371.1 kB / 0.795 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.53e-05/0.2385, allocations: 100.8 kB / 0.7951 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.2385, allocations: 11.94 kB / 0.7951 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.2388, allocations: 35.95 kB / 0.7951 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.831e-05/0.2389, allocations: 35.95 kB / 0.7952 GB, free: 0.957 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.2389, allocations: 12 kB / 0.7952 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.247e-05/0.239, allocations: 135.7 kB / 0.7953 GB, free: 0.8125 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.239, allocations: 0 / 0.7953 GB, free: 0.8125 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003021/0.2393, allocations: 67.83 kB / 0.7954 GB, free: 0.7461 MB / 0.6075 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.0008306/0.2401, allocations: 0.9212 MB / 0.7963 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006692/0.2408, allocations: 355 kB / 0.7966 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2408, allocations: 0 / 0.7966 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002685/0.2411, allocations: 137 kB / 0.7967 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.2414, allocations: 43.28 kB / 0.7968 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/0.2447, allocations: 2.625 MB / 0.7993 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.245, allocations: 0.7642 MB / 0.8001 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001076/0.2451, allocations: 30.28 kB / 0.8001 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.2452, allocations: 83.41 kB / 0.8002 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of SimCode: time 3.31e-07/0.2452, allocations: 0 / 0.8002 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.2658, allocations: 5.549 MB / 0.8056 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.402/7.668, allocations: 11.81 kB / 0.8056 GB, free: 6.188 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)