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.001503/0.001503, 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.001739/0.001739, allocations: 190.7 kB / 16.25 MB, free: 6.629 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.324/1.324, allocations: 205.1 MB / 222.1 MB, free: 4.676 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.627/1.627, allocations: 292.2 MB / 0.5485 GB, free: 13.64 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.001349/0.00135, allocations: 72.3 kB / 0.671 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2167, allocations: 114.5 MB / 0.7829 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003315/0.2201, allocations: 2.089 MB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.2213, allocations: 0.7412 MB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.2214, allocations: 4 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.2216, allocations: 27.73 kB / 0.7857 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.712e-05/0.2217, allocations: 27.78 kB / 0.7857 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003981/0.2221, allocations: 139.9 kB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003941/0.2225, allocations: 407.2 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003138/0.2228, allocations: 252.1 kB / 0.7864 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.2229, allocations: 135.5 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.2231, allocations: 143.4 kB / 0.7867 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.737e-05/0.2232, allocations: 36 kB / 0.7867 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.957e-05/0.2233, allocations: 51.98 kB / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.041e-05/0.2234, allocations: 91.69 kB / 0.7869 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.2235, allocations: 159.2 kB / 0.787 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003511/0.2238, allocations: 398.8 kB / 0.7874 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2239, allocations: 7.984 kB / 0.7874 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2239, allocations: 0 / 0.7874 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.201e-06/0.2239, allocations: 0 / 0.7874 GB, free: 9.195 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.0008755/0.2248, allocations: 0.599 MB / 0.788 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2248, allocations: 12.03 kB / 0.788 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.824e-05/0.2249, allocations: 36.56 kB / 0.7881 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.2252, allocations: 266.9 kB / 0.7883 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.58e-05/0.2252, allocations: 29.03 kB / 0.7883 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.542e-05/0.2253, allocations: 36.38 kB / 0.7884 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006096/0.2259, allocations: 333.2 kB / 0.7887 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.2259, allocations: 0 / 0.7887 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.2259, allocations: 12 kB / 0.7887 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.2259, allocations: 8 kB / 0.7887 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005871/0.2265, allocations: 258 kB / 0.789 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.2278, allocations: 0.9551 MB / 0.7899 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.2284, allocations: 269.7 kB / 0.7901 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.2287, allocations: 124.8 kB / 0.7903 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.2287, allocations: 12 kB / 0.7903 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003903/0.2291, allocations: 179.3 kB / 0.7904 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.753e-06/0.2291, allocations: 0 / 0.7904 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007582/0.2299, allocations: 354.5 kB / 0.7908 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.2299, allocations: 67.39 kB / 0.7908 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.2301, allocations: 199.3 kB / 0.791 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.2301, allocations: 37.7 kB / 0.7911 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.654e-05/0.2302, allocations: 152.6 kB / 0.7912 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.039e-05/0.2303, allocations: 78.84 kB / 0.7913 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.2304, allocations: 90.11 kB / 0.7914 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.2305, allocations: 342.8 kB / 0.7917 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.2308, allocations: 108.8 kB / 0.7918 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/0.2311, allocations: 169.2 kB / 0.792 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004465/0.2315, allocations: 262.6 kB / 0.7922 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2315, allocations: 0 / 0.7922 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006454/0.2322, allocations: 370.8 kB / 0.7926 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/0.2322, allocations: 40.5 kB / 0.7926 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2323, allocations: 4 kB / 0.7926 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.2323, allocations: 0 / 0.7926 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.2325, allocations: 43.91 kB / 0.7927 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2325, allocations: 4 kB / 0.7927 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002414/0.2328, allocations: 51.66 kB / 0.7927 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.2328, allocations: 15.98 kB / 0.7927 GB, free: 3.473 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.0001639/0.233, allocations: 182.8 kB / 0.7929 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.233, allocations: 19.72 kB / 0.7929 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006002/0.2336, allocations: 300.6 kB / 0.7932 GB, free: 2.969 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.2336, allocations: 4 kB / 0.7932 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2336, allocations: 4 kB / 0.7932 GB, free: 2.961 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.2336, allocations: 0 / 0.7932 GB, free: 2.961 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.2347, allocations: 0.748 MB / 0.7939 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.2347, allocations: 4 kB / 0.794 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.2349, allocations: 35.84 kB / 0.794 GB, free: 2.117 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.2349, allocations: 4 kB / 0.794 GB, free: 2.113 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.2349, allocations: 4 kB / 0.794 GB, free: 2.109 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.2349, allocations: 11.94 kB / 0.794 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2349, allocations: 0 / 0.794 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.2355, allocations: 367.1 kB / 0.7944 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.737e-05/0.2355, allocations: 100.8 kB / 0.7944 GB, free: 1.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.2356, allocations: 8 kB / 0.7945 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.2358, allocations: 39.89 kB / 0.7945 GB, free: 1.559 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.53e-05/0.2359, allocations: 39.95 kB / 0.7945 GB, free: 1.52 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.236, allocations: 8 kB / 0.7945 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001068/0.2361, allocations: 139.7 kB / 0.7947 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2361, allocations: 3.938 kB / 0.7947 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003131/0.2364, allocations: 71.75 kB / 0.7947 GB, free: 1.301 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.0001657/0.2366, allocations: 121.4 kB / 0.7949 GB, free: 1.172 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006753/0.2373, allocations: 347.8 kB / 0.7952 GB, free: 0.8203 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2373, allocations: 0 / 0.7952 GB, free: 0.8203 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002745/0.2376, allocations: 148.1 kB / 0.7953 GB, free: 0.6758 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.2379, allocations: 32.72 kB / 0.7954 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008317/0.2387, allocations: 0.54 MB / 0.7959 GB, free: 84 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.2391, allocations: 0.7603 MB / 0.7966 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001118/0.2392, allocations: 26.28 kB / 0.7967 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.007e-05/0.2393, allocations: 27.44 kB / 0.7967 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.2393, allocations: 0 / 0.7967 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of Templates: time 0.005948/0.2452, allocations: 3.006 MB / 0.7996 GB, free: 12.25 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)