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.001023/0.001023, allocations: 101.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 200.6 kB / 16.64 MB, free: 6.43 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.34/1.34, allocations: 205.1 MB / 222.5 MB, free: 4.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.669/1.669, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.00164/0.00164, allocations: 72.38 kB / 0.6718 GB, free: 26.04 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2042, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003042/0.2073, allocations: 2.028 MB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2085, allocations: 0.7295 MB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.817e-05/0.2086, allocations: 4 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.2087, allocations: 39.55 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.712e-05/0.2088, allocations: 35.66 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000396/0.2092, allocations: 155.8 kB / 0.7866 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.2096, allocations: 407.2 kB / 0.7869 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003154/0.2099, allocations: 252.1 kB / 0.7872 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.2101, allocations: 143.5 kB / 0.7873 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.2102, allocations: 147.4 kB / 0.7875 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.662e-05/0.2103, allocations: 40 kB / 0.7875 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.608e-05/0.2104, allocations: 48 kB / 0.7875 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.2105, allocations: 79.81 kB / 0.7876 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.2106, allocations: 155.2 kB / 0.7878 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003528/0.211, allocations: 422.6 kB / 0.7882 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.211, allocations: 0 / 0.7882 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.483e-06/0.211, allocations: 0 / 0.7882 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.918e-06/0.211, allocations: 0 / 0.7882 GB, free: 8.598 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.0008292/0.2118, allocations: 0.6067 MB / 0.7888 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2119, allocations: 8.031 kB / 0.7888 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.828e-05/0.2119, allocations: 74.66 kB / 0.7888 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.494e-05/0.212, allocations: 32.56 kB / 0.7889 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.2123, allocations: 266.9 kB / 0.7891 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.786e-05/0.2124, allocations: 33.02 kB / 0.7892 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.2124, allocations: 32.38 kB / 0.7892 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005724/0.213, allocations: 337 kB / 0.7895 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.213, allocations: 0 / 0.7895 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.213, allocations: 15.98 kB / 0.7895 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.2131, allocations: 8 kB / 0.7895 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005169/0.2136, allocations: 250 kB / 0.7898 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.2149, allocations: 0.9627 MB / 0.7907 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005684/0.2155, allocations: 265.3 kB / 0.791 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.2157, allocations: 128.7 kB / 0.7911 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.2157, allocations: 8 kB / 0.7911 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003338/0.2161, allocations: 179.3 kB / 0.7913 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 3.446e-06/0.2161, allocations: 0 / 0.7913 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007527/0.2168, allocations: 359.5 kB / 0.7916 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.2169, allocations: 55.41 kB / 0.7917 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.217, allocations: 199.3 kB / 0.7918 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.825e-05/0.2171, allocations: 45.7 kB / 0.7919 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.656e-05/0.2172, allocations: 148.6 kB / 0.792 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.411e-05/0.2173, allocations: 86.89 kB / 0.7921 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.2174, allocations: 86.11 kB / 0.7922 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.2175, allocations: 342.8 kB / 0.7925 GB, free: 3.891 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.2177, allocations: 108.8 kB / 0.7926 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.218, allocations: 165.5 kB / 0.7928 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004239/0.2184, allocations: 258.6 kB / 0.793 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2185, allocations: 0 / 0.793 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006184/0.2191, allocations: 370.8 kB / 0.7934 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.2191, allocations: 33.7 kB / 0.7934 GB, free: 2.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.2191, allocations: 4 kB / 0.7934 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.2192, allocations: 4.156 kB / 0.7934 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.2193, allocations: 39.91 kB / 0.7935 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.2194, allocations: 4 kB / 0.7935 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.2196, allocations: 59.64 kB / 0.7935 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.2197, allocations: 12 kB / 0.7935 GB, free: 2.793 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.localCondition,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.localCondition,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.0001589/0.2198, allocations: 182.3 kB / 0.7937 GB, free: 2.605 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.2199, allocations: 19.72 kB / 0.7937 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005888/0.2204, allocations: 296.6 kB / 0.794 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2205, allocations: 4 kB / 0.794 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2205, allocations: 0 / 0.794 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2205, allocations: 7.922 kB / 0.794 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.2215, allocations: 0.7525 MB / 0.7948 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2215, allocations: 0 / 0.7948 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.2216, allocations: 35.91 kB / 0.7948 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.2217, allocations: 0 / 0.7948 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.09e-05/0.2217, allocations: 11.94 kB / 0.7948 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.2217, allocations: 0 / 0.7948 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2217, allocations: 0 / 0.7948 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005194/0.2222, allocations: 368.3 kB / 0.7952 GB, free: 1.051 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.2223, allocations: 104.8 kB / 0.7953 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.2223, allocations: 11.94 kB / 0.7953 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.2226, allocations: 35.89 kB / 0.7953 GB, free: 0.8828 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2227, allocations: 39.95 kB / 0.7953 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.2227, allocations: 15.94 kB / 0.7954 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.599e-05/0.2228, allocations: 135.7 kB / 0.7955 GB, free: 0.6953 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2228, allocations: 0 / 0.7955 GB, free: 0.6953 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003053/0.2231, allocations: 63.84 kB / 0.7955 GB, free: 0.6328 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.active,wseCon.off.active,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.localActive,wseCon.off.newActive,wseCon.off.oldActive,wseCon.T1.localCondition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.localActive,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.localCondition,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.0008503/0.224, allocations: 0.9251 MB / 0.7965 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006186/0.2246, allocations: 339 kB / 0.7968 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2246, allocations: 0 / 0.7968 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002627/0.2249, allocations: 145.2 kB / 0.7969 GB, free: 15.19 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.2252, allocations: 31.97 kB / 0.7969 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.2283, allocations: 2.631 MB / 0.7995 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.2287, allocations: 0.7602 MB / 0.8003 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001082/0.2288, allocations: 30.28 kB / 0.8003 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.2289, allocations: 83.41 kB / 0.8004 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of SimCode: time 5.31e-07/0.2289, allocations: 0 / 0.8004 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01821/0.2471, allocations: 5.563 MB / 0.8058 GB, free: 6.094 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.184/7.432, allocations: 14.62 kB / 0.8058 GB, free: 6.082 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)