Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_10_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.004503/0.004503, allocations: 103.5 kB / 15.73 MB, free: 6.035 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.001039/0.00104, allocations: 198.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.354/2.354, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001126, allocations: 71.88 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2294, allocations: 151.6 MB / 1.166 GB, free: 7.332 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002785/0.2322, allocations: 2.007 MB / 1.168 GB, free: 5.305 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009877/0.2332, allocations: 0.6897 MB / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.598e-05/0.2333, allocations: 4 kB / 1.169 GB, free: 4.605 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.2335, allocations: 31.61 kB / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.516e-05/0.2336, allocations: 43.59 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000374/0.2339, allocations: 159.8 kB / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.2343, allocations: 407.2 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002879/0.2346, allocations: 242.7 kB / 1.17 GB, free: 3.742 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.2348, allocations: 139.5 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.2349, allocations: 151.3 kB / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.621e-05/0.235, allocations: 44 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.62e-05/0.235, allocations: 44 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.032e-05/0.2351, allocations: 75.83 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.2353, allocations: 159.2 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.2356, allocations: 431.2 kB / 1.171 GB, free: 2.719 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2356, allocations: 0 / 1.171 GB, free: 2.719 MB / 0.92 GB Notification: Performance of FrontEnd: time 9.82e-07/0.2356, allocations: 0 / 1.171 GB, free: 2.719 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.2357, allocations: 0 / 1.171 GB, free: 2.719 MB / 0.92 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.0008265/0.2365, allocations: 0.607 MB / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.2365, allocations: 8.031 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.263e-05/0.2366, allocations: 70.72 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.261e-05/0.2367, allocations: 32.56 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.237, allocations: 275.7 kB / 1.172 GB, free: 1.637 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.237, allocations: 21.03 kB / 1.172 GB, free: 1.617 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.186e-05/0.237, allocations: 36.38 kB / 1.172 GB, free: 1.582 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/0.2376, allocations: 348.9 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2376, allocations: 0 / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.2377, allocations: 8 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.2377, allocations: 8 kB / 1.172 GB, free: 1.211 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005312/0.2382, allocations: 254 kB / 1.172 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.2395, allocations: 0.9474 MB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005799/0.2401, allocations: 266.9 kB / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002457/0.2403, allocations: 125.3 kB / 1.174 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.2403, allocations: 0 / 1.174 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000335/0.2407, allocations: 183.3 kB / 1.174 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=32): time 1.583e-06/0.2407, allocations: 3.938 kB / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of matching and sorting (n=32): time 0.0007608/0.2415, allocations: 353.9 kB / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.2415, allocations: 63.33 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.2417, allocations: 203.3 kB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.835e-05/0.2417, allocations: 41.7 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.723e-05/0.2418, allocations: 156.6 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.418e-05/0.2419, allocations: 82.89 kB / 1.175 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.242, allocations: 86.11 kB / 1.175 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.418e-05/0.2421, allocations: 342.8 kB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002528/0.2423, allocations: 104.8 kB / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.2426, allocations: 169.5 kB / 1.175 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004428/0.2431, allocations: 262.4 kB / 1.175 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.2431, allocations: 4 kB / 1.176 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000631/0.2437, allocations: 366.8 kB / 1.176 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.2438, allocations: 36.2 kB / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2438, allocations: 0 / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.2438, allocations: 4 kB / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.244, allocations: 52 kB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.244, allocations: 4 kB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.2443, allocations: 55.64 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.2443, allocations: 12 kB / 1.176 GB, free: 12.89 MB / 0.9356 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.0001539/0.2445, allocations: 181.7 kB / 1.176 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.364e-05/0.2445, allocations: 23.72 kB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005762/0.2451, allocations: 291.2 kB / 1.176 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.2451, allocations: 4 kB / 1.176 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2451, allocations: 0 / 1.176 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.2451, allocations: 7.984 kB / 1.176 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009731/0.2461, allocations: 0.742 MB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2461, allocations: 3.984 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.2462, allocations: 27.92 kB / 1.177 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.2462, allocations: 4 kB / 1.177 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.2463, allocations: 11.88 kB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.2463, allocations: 4 kB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2463, allocations: 3.984 kB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000525/0.2468, allocations: 372.5 kB / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.696e-05/0.2469, allocations: 96.77 kB / 1.178 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.2469, allocations: 19.86 kB / 1.178 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.2472, allocations: 31.97 kB / 1.178 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.364e-05/0.2473, allocations: 39.95 kB / 1.178 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.2473, allocations: 15.98 kB / 1.178 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.419e-05/0.2474, allocations: 127.2 kB / 1.178 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2474, allocations: 0 / 1.178 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002996/0.2477, allocations: 71.84 kB / 1.178 GB, free: 10.74 MB / 0.9356 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.0008096/0.2485, allocations: 0.9417 MB / 1.179 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000583/0.2491, allocations: 335.2 kB / 1.179 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2491, allocations: 0 / 1.179 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002585/0.2494, allocations: 140.1 kB / 1.179 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.2497, allocations: 31.98 kB / 1.179 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002996/0.2527, allocations: 2.628 MB / 1.182 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.253, allocations: 0.7642 MB / 1.183 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001023/0.2531, allocations: 30.28 kB / 1.183 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.2532, allocations: 87.41 kB / 1.183 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.2532, allocations: 0 / 1.183 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.418/1.671, allocations: 5.634 MB / 1.188 GB, free: 132 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/14.17, allocations: 12.12 kB / 1.188 GB, free: 124 kB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)