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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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: 196.2 kB / 16.14 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.378/1.378, allocations: 205.1 MB / 222 MB, free: 4.777 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.647/1.647, allocations: 292.2 MB / 0.5484 GB, free: 13.69 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.001308/0.001309, allocations: 67.53 kB / 0.6708 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2083, allocations: 114.5 MB / 0.7827 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003635/0.212, allocations: 2.105 MB / 0.7847 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001268/0.2133, allocations: 0.7373 MB / 0.7855 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.2134, allocations: 4 kB / 0.7855 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.2136, allocations: 27.73 kB / 0.7855 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.997e-05/0.2137, allocations: 27.78 kB / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004043/0.2141, allocations: 147.8 kB / 0.7857 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003693/0.2145, allocations: 363.2 kB / 0.786 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003237/0.2149, allocations: 228.5 kB / 0.7862 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.215, allocations: 111.6 kB / 0.7863 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.2152, allocations: 135.4 kB / 0.7864 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.677e-05/0.2152, allocations: 20 kB / 0.7865 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.967e-05/0.2153, allocations: 31.98 kB / 0.7865 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.488e-05/0.2154, allocations: 63.75 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.2155, allocations: 135.2 kB / 0.7867 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003264/0.2158, allocations: 382.9 kB / 0.7871 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.2159, allocations: 0 / 0.7871 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.92e-07/0.2159, allocations: 4 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.2159, allocations: 4 kB / 0.7871 GB, free: 9.52 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.000951/0.2168, allocations: 0.5951 MB / 0.7876 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.2169, allocations: 12.03 kB / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.96e-05/0.217, allocations: 36.55 kB / 0.7877 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.2173, allocations: 270.8 kB / 0.7879 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.2173, allocations: 25.03 kB / 0.788 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.052e-05/0.2174, allocations: 36.38 kB / 0.788 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007006/0.2181, allocations: 337.2 kB / 0.7883 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2181, allocations: 3.938 kB / 0.7883 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.2182, allocations: 16 kB / 0.7883 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.2182, allocations: 8 kB / 0.7884 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.2187, allocations: 246 kB / 0.7886 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.2202, allocations: 0.9588 MB / 0.7895 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005939/0.2208, allocations: 266.8 kB / 0.7898 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.2211, allocations: 120.8 kB / 0.7899 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.2211, allocations: 8 kB / 0.7899 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004102/0.2215, allocations: 183.3 kB / 0.7901 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.843e-06/0.2215, allocations: 0 / 0.7901 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007913/0.2223, allocations: 350.6 kB / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.2224, allocations: 63.33 kB / 0.7905 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.2225, allocations: 199.9 kB / 0.7907 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.885e-05/0.2226, allocations: 41.7 kB / 0.7907 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.171e-05/0.2227, allocations: 148.6 kB / 0.7908 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.657e-05/0.2228, allocations: 90.83 kB / 0.7909 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.2229, allocations: 86.11 kB / 0.791 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.223, allocations: 338.8 kB / 0.7913 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002606/0.2233, allocations: 108.8 kB / 0.7914 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.2235, allocations: 169.5 kB / 0.7916 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004568/0.224, allocations: 254.7 kB / 0.7918 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.224, allocations: 7.938 kB / 0.7919 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006661/0.2247, allocations: 370.8 kB / 0.7922 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.2247, allocations: 29.7 kB / 0.7922 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2248, allocations: 4 kB / 0.7922 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2248, allocations: 0 / 0.7922 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001912/0.225, allocations: 47.84 kB / 0.7923 GB, free: 3.875 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.225, allocations: 8.156 kB / 0.7923 GB, free: 3.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.2252, allocations: 63.64 kB / 0.7924 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.2253, allocations: 8 kB / 0.7924 GB, free: 3.797 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.condition,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.condition,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.0002226/0.2255, allocations: 187.4 kB / 0.7925 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.2256, allocations: 19.72 kB / 0.7926 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005942/0.2262, allocations: 300 kB / 0.7928 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.2262, allocations: 4 kB / 0.7928 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2262, allocations: 0 / 0.7928 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2262, allocations: 3.984 kB / 0.7929 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.2273, allocations: 0.7519 MB / 0.7936 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2273, allocations: 0 / 0.7936 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.2274, allocations: 31.92 kB / 0.7936 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2274, allocations: 0 / 0.7936 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.2275, allocations: 7.984 kB / 0.7936 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.2275, allocations: 7.938 kB / 0.7936 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2275, allocations: 0 / 0.7936 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000548/0.228, allocations: 367.1 kB / 0.794 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.018e-05/0.2281, allocations: 108.8 kB / 0.7941 GB, free: 1.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.538e-05/0.2281, allocations: 4 kB / 0.7941 GB, free: 1.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.2284, allocations: 31.91 kB / 0.7941 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.2285, allocations: 43.94 kB / 0.7942 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.2285, allocations: 8 kB / 0.7942 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.431e-05/0.2286, allocations: 139.7 kB / 0.7943 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2286, allocations: 0 / 0.7943 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000312/0.229, allocations: 75.75 kB / 0.7944 GB, free: 1.633 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.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,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.0001515/0.2291, allocations: 117.4 kB / 0.7945 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005959/0.2297, allocations: 335.8 kB / 0.7948 GB, free: 1.168 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2297, allocations: 0 / 0.7948 GB, free: 1.168 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.23, allocations: 139.8 kB / 0.7949 GB, free: 1.031 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.2304, allocations: 39.86 kB / 0.795 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000843/0.2312, allocations: 0.5325 MB / 0.7955 GB, free: 448 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.2316, allocations: 0.7603 MB / 0.7962 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001175/0.2317, allocations: 34.28 kB / 0.7963 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.614e-05/0.2318, allocations: 31.42 kB / 0.7963 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of SimCode: time 2.51e-07/0.2318, allocations: 0 / 0.7963 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of Templates: time 0.005998/0.2378, allocations: 2.848 MB / 0.7991 GB, free: 12.75 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (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 & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)