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.0007953/0.0007954, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005682/0.005682, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.31/1.31, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.632/1.632, allocations: 292.7 MB / 0.5502 GB, free: 14.47 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.0004741/0.0004741, allocations: 12.75 kB / 0.6743 GB, free: 25.74 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1972, allocations: 116.3 MB / 0.7879 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002249/0.1995, allocations: 1.738 MB / 0.7896 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001301/0.2008, allocations: 0.7296 MB / 0.7903 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.2011, allocations: 7.938 kB / 0.7903 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.2012, allocations: 27.8 kB / 0.7903 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.2014, allocations: 27.78 kB / 0.7904 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004711/0.2019, allocations: 135.9 kB / 0.7905 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004075/0.2023, allocations: 367.2 kB / 0.7908 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003466/0.2026, allocations: 212 kB / 0.791 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.2028, allocations: 99.62 kB / 0.7911 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.203, allocations: 115.4 kB / 0.7912 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.203, allocations: 12 kB / 0.7913 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.109e-05/0.2031, allocations: 23.94 kB / 0.7913 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.289e-05/0.2032, allocations: 55.75 kB / 0.7913 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000127/0.2033, allocations: 145 kB / 0.7915 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.2036, allocations: 374.7 kB / 0.7918 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2036, allocations: 0 / 0.7918 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2037, allocations: 0 / 0.7918 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.788e-06/0.2037, allocations: 0 / 0.7918 GB, free: 7.504 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.0008556/0.2045, allocations: 0.5483 MB / 0.7924 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.2046, allocations: 8.031 kB / 0.7924 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.965e-05/0.2047, allocations: 36.56 kB / 0.7924 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.2049, allocations: 271.8 kB / 0.7927 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.205, allocations: 29.03 kB / 0.7927 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.2051, allocations: 32.38 kB / 0.7927 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006434/0.2057, allocations: 349.2 kB / 0.7931 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2057, allocations: 0 / 0.7931 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.2058, allocations: 15.94 kB / 0.7931 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.2058, allocations: 11.94 kB / 0.7931 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005877/0.2064, allocations: 258.1 kB / 0.7933 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.2077, allocations: 0.955 MB / 0.7943 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006144/0.2084, allocations: 285.3 kB / 0.7945 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.2086, allocations: 128.8 kB / 0.7947 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.2087, allocations: 8 kB / 0.7947 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003951/0.2091, allocations: 183.3 kB / 0.7948 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.864e-06/0.2091, allocations: 0 / 0.7948 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0008062/0.2099, allocations: 370.5 kB / 0.7952 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.2099, allocations: 59.39 kB / 0.7953 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.2101, allocations: 203.9 kB / 0.7954 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.248e-05/0.2102, allocations: 41.7 kB / 0.7955 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.23e-05/0.2103, allocations: 148.6 kB / 0.7956 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.608e-05/0.2103, allocations: 82.86 kB / 0.7957 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-05/0.2104, allocations: 57.67 kB / 0.7958 GB, free: 3.246 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.2105, allocations: 338.8 kB / 0.7961 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.2108, allocations: 120.8 kB / 0.7962 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.2111, allocations: 165.5 kB / 0.7964 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004706/0.2116, allocations: 274.6 kB / 0.7966 GB, free: 2.316 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2116, allocations: 0 / 0.7966 GB, free: 2.316 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006708/0.2123, allocations: 382.9 kB / 0.797 GB, free: 1.93 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.2123, allocations: 33.7 kB / 0.797 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.2123, allocations: 0 / 0.797 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.2123, allocations: 4 kB / 0.797 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.2125, allocations: 43.91 kB / 0.7971 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.2125, allocations: 4 kB / 0.7971 GB, free: 1.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.2128, allocations: 67.67 kB / 0.7971 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.2129, allocations: 16 kB / 0.7971 GB, free: 1.758 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.0001608/0.213, allocations: 179.3 kB / 0.7973 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.345e-05/0.2131, allocations: 23.72 kB / 0.7973 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006176/0.2137, allocations: 304.1 kB / 0.7976 GB, free: 1.254 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2137, allocations: 7.938 kB / 0.7976 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2137, allocations: 3.938 kB / 0.7976 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2137, allocations: 3.984 kB / 0.7976 GB, free: 1.238 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.2148, allocations: 0.7675 MB / 0.7984 GB, free: 424 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2148, allocations: 0 / 0.7984 GB, free: 424 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.2149, allocations: 43.91 kB / 0.7984 GB, free: 380 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.215, allocations: 0 / 0.7984 GB, free: 380 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.215, allocations: 4 kB / 0.7984 GB, free: 376 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.215, allocations: 7.938 kB / 0.7984 GB, free: 368 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.215, allocations: 0 / 0.7984 GB, free: 368 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005643/0.2156, allocations: 383.1 kB / 0.7988 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.323e-05/0.2156, allocations: 96.86 kB / 0.7989 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.2157, allocations: 15.92 kB / 0.7989 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.2159, allocations: 35.91 kB / 0.799 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.202e-05/0.216, allocations: 39.95 kB / 0.799 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-05/0.2161, allocations: 15.98 kB / 0.799 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 9.332e-05/0.2162, allocations: 131.7 kB / 0.7991 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2162, allocations: 0 / 0.7991 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000313/0.2165, allocations: 79.69 kB / 0.7992 GB, free: 15.54 MB / 0.6231 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.0001627/0.2166, allocations: 117.4 kB / 0.7993 GB, free: 15.42 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006255/0.2173, allocations: 347.8 kB / 0.7997 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2173, allocations: 0 / 0.7997 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002814/0.2176, allocations: 148.1 kB / 0.7998 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.2179, allocations: 27.98 kB / 0.7998 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007903/0.2187, allocations: 0.5389 MB / 0.8003 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.219, allocations: 0.768 MB / 0.8011 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001201/0.2191, allocations: 30.27 kB / 0.8011 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.836e-05/0.2192, allocations: 27.42 kB / 0.8012 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of SimCode: time 2.81e-07/0.2192, allocations: 0 / 0.8012 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of Templates: time 0.005699/0.2249, allocations: 2.818 MB / 0.8039 GB, free: 10.68 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: