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.0009468/0.0009468, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.001211/0.001211, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.4 MB / 222.1 MB, free: 5.527 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.8/1.8, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005121/0.0005121, allocations: 12.59 kB / 0.6738 GB, free: 25.95 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2313, allocations: 116.3 MB / 0.7874 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002077/0.2334, allocations: 1.7 MB / 0.7891 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.2345, allocations: 0.7181 MB / 0.7898 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.2346, allocations: 7.938 kB / 0.7898 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.2347, allocations: 19.8 kB / 0.7898 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.806e-05/0.2348, allocations: 31.72 kB / 0.7898 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003259/0.2352, allocations: 107.9 kB / 0.7899 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003706/0.2356, allocations: 343.3 kB / 0.7903 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002901/0.2359, allocations: 198.4 kB / 0.7904 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.236, allocations: 95.62 kB / 0.7905 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.2361, allocations: 111.4 kB / 0.7906 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.396e-05/0.2362, allocations: 16 kB / 0.7907 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.522e-05/0.2362, allocations: 20 kB / 0.7907 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.936e-05/0.2363, allocations: 51.77 kB / 0.7907 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.438e-05/0.2364, allocations: 73.58 kB / 0.7908 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002923/0.2367, allocations: 311.4 kB / 0.7911 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2367, allocations: 0 / 0.7911 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2367, allocations: 0 / 0.7911 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.2367, allocations: 0 / 0.7911 GB, free: 7.992 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.0007614/0.2375, allocations: 0.552 MB / 0.7916 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2375, allocations: 8.031 kB / 0.7916 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.403e-05/0.2376, allocations: 66.53 kB / 0.7917 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.411e-05/0.2377, allocations: 35.58 kB / 0.7917 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.238, allocations: 258.6 kB / 0.792 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/0.238, allocations: 28.66 kB / 0.792 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.2381, allocations: 32 kB / 0.792 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006158/0.2387, allocations: 340.8 kB / 0.7924 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2387, allocations: 3.938 kB / 0.7924 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.2388, allocations: 15.94 kB / 0.7924 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.2388, allocations: 4 kB / 0.7924 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005574/0.2393, allocations: 262.1 kB / 0.7926 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.2407, allocations: 0.9589 MB / 0.7936 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.2413, allocations: 281.8 kB / 0.7938 GB, free: 5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002398/0.2415, allocations: 128.8 kB / 0.794 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.2416, allocations: 8 kB / 0.794 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003856/0.242, allocations: 179.3 kB / 0.7941 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.813e-06/0.242, allocations: 0 / 0.7941 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007827/0.2428, allocations: 367.3 kB / 0.7945 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.2428, allocations: 59.41 kB / 0.7946 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.243, allocations: 207.3 kB / 0.7947 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.243, allocations: 45.64 kB / 0.7948 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.2432, allocations: 144.6 kB / 0.7949 GB, free: 3.828 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.773e-05/0.2432, allocations: 90.83 kB / 0.795 GB, free: 3.738 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.2433, allocations: 4 kB / 0.795 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2434, allocations: 338.8 kB / 0.7953 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/0.2436, allocations: 112.8 kB / 0.7955 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.2439, allocations: 169.5 kB / 0.7956 GB, free: 3.102 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.2442, allocations: 141.6 kB / 0.7957 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2442, allocations: 0 / 0.7957 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006609/0.2449, allocations: 367 kB / 0.7961 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.2449, allocations: 41.69 kB / 0.7961 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.2449, allocations: 0 / 0.7961 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.245, allocations: 4 kB / 0.7961 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002034/0.2452, allocations: 43.91 kB / 0.7962 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.2452, allocations: 0 / 0.7962 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.2454, allocations: 67.64 kB / 0.7962 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.504e-05/0.2455, allocations: 16 kB / 0.7963 GB, free: 2.41 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,$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.condition,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.on.active,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001674/0.2456, allocations: 177.7 kB / 0.7964 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/0.2457, allocations: 23.72 kB / 0.7965 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006097/0.2463, allocations: 308.6 kB / 0.7967 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.2463, allocations: 11.94 kB / 0.7968 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.2463, allocations: 0 / 0.7968 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2463, allocations: 0 / 0.7968 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.2474, allocations: 0.7597 MB / 0.7975 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2475, allocations: 0 / 0.7975 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/0.2476, allocations: 39.92 kB / 0.7975 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.2476, allocations: 3.984 kB / 0.7975 GB, free: 1.031 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.2476, allocations: 8 kB / 0.7976 GB, free: 1.023 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.2477, allocations: 3.953 kB / 0.7976 GB, free: 1.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2477, allocations: 0 / 0.7976 GB, free: 1.02 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005529/0.2482, allocations: 383 kB / 0.7979 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.52e-05/0.2483, allocations: 100.8 kB / 0.798 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.2483, allocations: 4 kB / 0.798 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.2486, allocations: 43.95 kB / 0.7981 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.2487, allocations: 43.89 kB / 0.7981 GB, free: 432 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.2487, allocations: 12 kB / 0.7981 GB, free: 420 kB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.981e-05/0.2488, allocations: 139.7 kB / 0.7982 GB, free: 280 kB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2488, allocations: 0 / 0.7982 GB, free: 280 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003219/0.2491, allocations: 67.78 kB / 0.7983 GB, free: 212 kB / 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 (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.0008892/0.25, allocations: 0.9369 MB / 0.7992 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005972/0.2507, allocations: 344.1 kB / 0.7996 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2507, allocations: 0 / 0.7996 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00027/0.2509, allocations: 144.9 kB / 0.7997 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.2513, allocations: 40.44 kB / 0.7997 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.2535, allocations: 1.428 MB / 0.8011 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.2538, allocations: 0.7603 MB / 0.8019 GB, free: 12.44 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000116/0.2539, allocations: 34.28 kB / 0.8019 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.2541, allocations: 83.39 kB / 0.802 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of SimCode: time 2.8e-07/0.2541, allocations: 0 / 0.802 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01527/0.2694, allocations: 5.088 MB / 0.807 GB, free: 7.426 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001676/0.2696, allocations: 211.7 kB / 0.8072 GB, free: 7.188 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/2.083, allocations: 0 / 0.8072 GB, free: 7.188 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/linux/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) Environment - environmentSimulation: