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.00118/0.00118, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001237/0.001237, allocations: 188.2 kB / 16.25 MB, free: 6.625 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.157/1.157, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.477/1.477, allocations: 292.3 MB / 0.5486 GB, free: 13.58 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.001745/0.001745, allocations: 65.72 kB / 0.6711 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1735, allocations: 114.6 MB / 0.783 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002793/0.1764, allocations: 2.112 MB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009608/0.1773, allocations: 0.7334 MB / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.64e-05/0.1774, allocations: 11.94 kB / 0.7858 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.1775, allocations: 23.8 kB / 0.7858 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.664e-05/0.1776, allocations: 23.78 kB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.178, allocations: 135.9 kB / 0.7859 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003591/0.1783, allocations: 415.2 kB / 0.7863 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002854/0.1786, allocations: 252.1 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.1787, allocations: 127.6 kB / 0.7867 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.1789, allocations: 155.3 kB / 0.7868 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.345e-05/0.1789, allocations: 40 kB / 0.7869 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.057e-05/0.179, allocations: 40 kB / 0.7869 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.282e-05/0.1791, allocations: 83.75 kB / 0.787 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.1792, allocations: 155.2 kB / 0.7872 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003257/0.1795, allocations: 414.8 kB / 0.7875 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1796, allocations: 0 / 0.7875 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.523e-06/0.1796, allocations: 4 kB / 0.7876 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.1796, allocations: 3.938 kB / 0.7876 GB, free: 9.059 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.0007652/0.1803, allocations: 0.599 MB / 0.7881 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.1804, allocations: 12.03 kB / 0.7882 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.777e-05/0.1804, allocations: 66.72 kB / 0.7882 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.541e-05/0.1805, allocations: 32.56 kB / 0.7882 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.1808, allocations: 274.8 kB / 0.7885 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.1808, allocations: 25.03 kB / 0.7885 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.1808, allocations: 40.36 kB / 0.7886 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005495/0.1814, allocations: 336.9 kB / 0.7889 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.1814, allocations: 0 / 0.7889 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.829e-05/0.1814, allocations: 12 kB / 0.7889 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1815, allocations: 4 kB / 0.7889 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004969/0.182, allocations: 254.1 kB / 0.7891 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.1833, allocations: 0.959 MB / 0.7901 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000555/0.1839, allocations: 266.9 kB / 0.7903 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.1841, allocations: 116.8 kB / 0.7905 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.1841, allocations: 8 kB / 0.7905 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003484/0.1845, allocations: 187.2 kB / 0.7906 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.593e-06/0.1845, allocations: 0 / 0.7906 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007055/0.1852, allocations: 346.6 kB / 0.791 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.1853, allocations: 63.39 kB / 0.791 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.1854, allocations: 195.3 kB / 0.7912 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.1855, allocations: 45.7 kB / 0.7913 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.526e-05/0.1855, allocations: 156.5 kB / 0.7914 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.368e-05/0.1856, allocations: 78.91 kB / 0.7915 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.1857, allocations: 86.12 kB / 0.7916 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1858, allocations: 338.8 kB / 0.7919 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.1861, allocations: 104.8 kB / 0.792 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.1864, allocations: 177.2 kB / 0.7922 GB, free: 4.086 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004121/0.1868, allocations: 266.7 kB / 0.7924 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.1868, allocations: 4 kB / 0.7924 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005974/0.1874, allocations: 362.8 kB / 0.7928 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.1874, allocations: 37.69 kB / 0.7928 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1875, allocations: 0 / 0.7928 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.1875, allocations: 4 kB / 0.7928 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.1877, allocations: 48.06 kB / 0.7928 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.108e-06/0.1877, allocations: 7.938 kB / 0.7929 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.1879, allocations: 51.66 kB / 0.7929 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.01e-05/0.1879, allocations: 15.98 kB / 0.7929 GB, free: 3.262 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.000152/0.1881, allocations: 179.4 kB / 0.7931 GB, free: 3.078 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.1881, allocations: 23.72 kB / 0.7931 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005607/0.1887, allocations: 300.6 kB / 0.7934 GB, free: 2.758 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1887, allocations: 4 kB / 0.7934 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1887, allocations: 0 / 0.7934 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1887, allocations: 0 / 0.7934 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009618/0.1897, allocations: 0.7558 MB / 0.7941 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1897, allocations: 3.938 kB / 0.7941 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.1898, allocations: 31.91 kB / 0.7942 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.1899, allocations: 4 kB / 0.7942 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.1899, allocations: 7.938 kB / 0.7942 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1899, allocations: 0 / 0.7942 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1899, allocations: 8 kB / 0.7942 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004993/0.1904, allocations: 371 kB / 0.7945 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/0.1904, allocations: 104.7 kB / 0.7946 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.1905, allocations: 11.94 kB / 0.7947 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.1907, allocations: 35.95 kB / 0.7947 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.204e-05/0.1908, allocations: 39.95 kB / 0.7947 GB, free: 1.301 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.1908, allocations: 12 kB / 0.7947 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.552e-05/0.1909, allocations: 139.7 kB / 0.7949 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1909, allocations: 0 / 0.7949 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002924/0.1912, allocations: 63.84 kB / 0.7949 GB, free: 1.09 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.0008061/0.1921, allocations: 0.9174 MB / 0.7958 GB, free: 148 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006241/0.1927, allocations: 352 kB / 0.7962 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1927, allocations: 4.062 kB / 0.7962 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002502/0.193, allocations: 140.9 kB / 0.7963 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.1933, allocations: 31.98 kB / 0.7963 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.1963, allocations: 2.71 MB / 0.799 GB, free: 12.78 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1966, allocations: 0.7564 MB / 0.7997 GB, free: 12 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001118/0.1967, allocations: 34.27 kB / 0.7998 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.1969, allocations: 87.34 kB / 0.7998 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of SimCode: time 2.4e-07/0.1969, allocations: 0 / 0.7998 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.185/1.382, allocations: 5.375 MB / 0.8051 GB, free: 6.688 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003041/1.382, allocations: 228.6 kB / 0.8053 GB, free: 6.43 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/3.239, allocations: 2.875 kB / 0.8053 GB, free: 6.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --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)