Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_0_0_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_0_0_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/Buildings 8.0.0/package.mo): time 2.741/2.741, allocations: 284.9 MB / 292.4 MB, free: 10.62 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001658/0.001658, allocations: 184.8 kB / 360.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.115/2.115, allocations: 205.3 MB / 0.6191 GB, free: 12.21 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 89.94 kB / 0.7321 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.852e-05/2.855e-05, allocations: 4 kB / 0.8509 GB, free: 3.316 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8421/0.8422, allocations: 115.3 MB / 0.9634 GB, free: 78.45 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2487/1.091, allocations: 140.6 MB / 1.101 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003774/1.091, allocations: 91.88 kB / 1.101 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02023/1.112, allocations: 4.641 MB / 1.105 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.663e-06/1.112, allocations: 0.875 kB / 1.105 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.137e-05/1.112, allocations: 8 kB / 1.105 GB, free: 11.19 MB / 0.7136 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.001201/1.113, allocations: 0.5392 MB / 1.106 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/1.113, allocations: 8.031 kB / 1.106 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/1.113, allocations: 32.88 kB / 1.106 GB, free: 10.56 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/1.114, allocations: 262.7 kB / 1.106 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.104e-05/1.114, allocations: 16 kB / 1.106 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.112e-05/1.114, allocations: 23.98 kB / 1.106 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006333/1.114, allocations: 197.5 kB / 1.106 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/1.115, allocations: 269 kB / 1.107 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/1.115, allocations: 0 / 1.107 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.87e-05/1.115, allocations: 11.95 kB / 1.107 GB, free: 9.742 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/1.115, allocations: 9.25 kB / 1.107 GB, free: 9.734 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/1.117, allocations: 0.8826 MB / 1.108 GB, free: 8.809 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006486/1.118, allocations: 215.7 kB / 1.108 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/1.118, allocations: 105.3 kB / 1.108 GB, free: 8.484 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/1.118, allocations: 4 kB / 1.108 GB, free: 8.48 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004005/1.119, allocations: 151.3 kB / 1.108 GB, free: 8.32 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=32): time 3.717e-06/1.119, allocations: 0 / 1.108 GB, free: 8.32 MB / 0.7136 GB Notification: Performance of matching and sorting (n=32): time 0.0006351/1.12, allocations: 206.4 kB / 1.108 GB, free: 8.113 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/1.12, allocations: 63.36 kB / 1.108 GB, free: 8.039 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002127/1.12, allocations: 156.4 kB / 1.108 GB, free: 7.875 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.22e-05/1.12, allocations: 37.69 kB / 1.108 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/1.12, allocations: 156.8 kB / 1.109 GB, free: 7.672 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/1.12, allocations: 71.06 kB / 1.109 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.366e-05/1.12, allocations: 2.906 kB / 1.109 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001458/1.12, allocations: 338.8 kB / 1.109 GB, free: 7.262 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/1.121, allocations: 80.81 kB / 1.109 GB, free: 7.184 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003153/1.121, allocations: 140.6 kB / 1.109 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/1.121, allocations: 76.95 kB / 1.109 GB, free: 6.953 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/1.121, allocations: 4 kB / 1.109 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007419/1.122, allocations: 276.7 kB / 1.109 GB, free: 6.672 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.611e-05/1.122, allocations: 38.33 kB / 1.11 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/1.122, allocations: 0 / 1.11 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/1.122, allocations: 4 kB / 1.11 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/1.122, allocations: 39.91 kB / 1.11 GB, free: 6.586 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/1.123, allocations: 8.156 kB / 1.11 GB, free: 6.578 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004442/1.123, allocations: 51.69 kB / 1.11 GB, free: 6.527 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-05/1.123, allocations: 16 kB / 1.11 GB, free: 6.512 MB / 0.7136 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,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001942/1.123, allocations: 136.5 kB / 1.11 GB, free: 6.367 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005525/1.124, allocations: 211.6 kB / 1.11 GB, free: 6.156 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.096e-05/1.124, allocations: 23.72 kB / 1.11 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006907/1.125, allocations: 230.1 kB / 1.11 GB, free: 5.91 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/1.125, allocations: 4 kB / 1.11 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/1.125, allocations: 3.953 kB / 1.11 GB, free: 5.902 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/1.125, allocations: 3.984 kB / 1.11 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/1.126, allocations: 0.6394 MB / 1.111 GB, free: 5.215 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/1.126, allocations: 7.984 kB / 1.111 GB, free: 5.207 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/1.126, allocations: 34.73 kB / 1.111 GB, free: 5.176 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.389e-05/1.126, allocations: 7.953 kB / 1.111 GB, free: 5.168 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/1.126, allocations: 0 / 1.111 GB, free: 5.168 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/1.126, allocations: 0 / 1.111 GB, free: 5.168 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.126, allocations: 3.984 kB / 1.111 GB, free: 5.164 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006061/1.127, allocations: 319.1 kB / 1.111 GB, free: 4.836 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.527e-05/1.127, allocations: 96.92 kB / 1.111 GB, free: 4.723 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.177e-05/1.127, allocations: 7.938 kB / 1.111 GB, free: 4.715 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004033/1.128, allocations: 29.28 kB / 1.111 GB, free: 4.688 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/1.128, allocations: 47.94 kB / 1.111 GB, free: 4.641 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.693e-05/1.128, allocations: 8 kB / 1.111 GB, free: 4.633 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001349/1.128, allocations: 116.9 kB / 1.112 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.21e-07/1.128, allocations: 0 / 1.112 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0005478/1.129, allocations: 55.83 kB / 1.112 GB, free: 4.465 MB / 0.7136 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.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001116/1.13, allocations: 0.8672 MB / 1.112 GB, free: 3.57 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0006883/1.13, allocations: 283.2 kB / 1.113 GB, free: 3.281 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.13, allocations: 0 / 1.113 GB, free: 3.281 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002867/1.131, allocations: 115.8 kB / 1.113 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/1.131, allocations: 31.09 kB / 1.113 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/1.133, allocations: 363.2 kB / 1.113 GB, free: 2.762 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/1.133, allocations: 0.7684 MB / 1.114 GB, free: 1.969 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.000239/1.133, allocations: 26.05 kB / 1.114 GB, free: 1.945 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002406/1.134, allocations: 87.39 kB / 1.114 GB, free: 1.859 MB / 0.7136 GB Notification: Performance of SimCode: time 1.532e-06/1.134, allocations: 0 / 1.114 GB, free: 1.859 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04793/1.182, allocations: 4.494 MB / 1.118 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003179/1.182, allocations: 166.8 kB / 1.119 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.51/3.692, allocations: 0 / 1.119 GB, free: 13.29 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)