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.771/2.771, allocations: 287.5 MB / 302.4 MB, free: 8.23 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.001348/0.001348, allocations: 186.3 kB / 371 MB, free: 10.86 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.077/2.077, allocations: 205.4 MB / 0.6297 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009986/0.0009976, allocations: 91.58 kB / 0.743 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007595/0.0007598, allocations: 11.66 kB / 0.8659 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2388, allocations: 115.3 MB / 0.9785 GB, free: 28.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002482/0.2413, allocations: 1.696 MB / 0.9801 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.2428, allocations: 0.7103 MB / 0.9808 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.2431, allocations: 4 kB / 0.9808 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.2432, allocations: 31.72 kB / 0.9808 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.2433, allocations: 23.78 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005005/0.2438, allocations: 103.9 kB / 0.981 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004314/0.2443, allocations: 351.2 kB / 0.9813 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003496/0.2446, allocations: 182.5 kB / 0.9815 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.2448, allocations: 99.62 kB / 0.9816 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.245, allocations: 111.5 kB / 0.9817 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.67e-05/0.245, allocations: 12 kB / 0.9817 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.256e-05/0.2451, allocations: 23.92 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.162e-05/0.2452, allocations: 55.81 kB / 0.9818 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.438e-05/0.2453, allocations: 65.58 kB / 0.9818 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003608/0.2457, allocations: 307.5 kB / 0.9821 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2457, allocations: 4 kB / 0.9821 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.783e-06/0.2457, allocations: 0 / 0.9821 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.2457, allocations: 4 kB / 0.9821 GB, free: 24.48 MB / 0.6198 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.00104/0.2468, allocations: 0.5442 MB / 0.9827 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.2468, allocations: 12.03 kB / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.523e-05/0.2469, allocations: 70.47 kB / 0.9827 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.432e-05/0.247, allocations: 35.58 kB / 0.9828 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/0.2473, allocations: 270.6 kB / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.229e-05/0.2474, allocations: 24.66 kB / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.51e-05/0.2475, allocations: 32 kB / 0.9831 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008883/0.2484, allocations: 332.8 kB / 0.9834 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.2484, allocations: 3.984 kB / 0.9834 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/0.2485, allocations: 19.98 kB / 0.9834 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2485, allocations: 12 kB / 0.9834 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008547/0.2493, allocations: 258.1 kB / 0.9837 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.2512, allocations: 0.9475 MB / 0.9846 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000914/0.2521, allocations: 277 kB / 0.9849 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003765/0.2525, allocations: 124.8 kB / 0.985 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.2526, allocations: 15.91 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005512/0.2531, allocations: 187.2 kB / 0.9852 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=32): time 3.236e-06/0.2532, allocations: 0 / 0.9852 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=32): time 0.001221/0.2544, allocations: 370 kB / 0.9855 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.2544, allocations: 67.28 kB / 0.9856 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.2547, allocations: 203.3 kB / 0.9858 GB, free: 20.49 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.354e-05/0.2547, allocations: 41.7 kB / 0.9858 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.868e-05/0.2548, allocations: 144.6 kB / 0.986 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.65e-05/0.2549, allocations: 86.84 kB / 0.9861 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.255, allocations: 12 kB / 0.9861 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.482e-05/0.255, allocations: 334.8 kB / 0.9864 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.2554, allocations: 112.8 kB / 0.9865 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004446/0.2559, allocations: 173.5 kB / 0.9867 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.2563, allocations: 125.7 kB / 0.9868 GB, free: 19.44 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2563, allocations: 4 kB / 0.9868 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009866/0.2573, allocations: 382.6 kB / 0.9871 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/0.2574, allocations: 29.7 kB / 0.9872 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.2574, allocations: 0 / 0.9872 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.2574, allocations: 8.156 kB / 0.9872 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.2578, allocations: 51.91 kB / 0.9872 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.2578, allocations: 11.89 kB / 0.9872 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004059/0.2582, allocations: 63.64 kB / 0.9873 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.2583, allocations: 8 kB / 0.9873 GB, free: 18.87 MB / 0.6198 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.0002183/0.2585, allocations: 177.8 kB / 0.9875 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.2585, allocations: 19.72 kB / 0.9875 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009025/0.2595, allocations: 302.4 kB / 0.9878 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.2595, allocations: 7.938 kB / 0.9878 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.2595, allocations: 0 / 0.9878 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.158e-06/0.2595, allocations: 7.938 kB / 0.9878 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/0.2611, allocations: 0.7609 MB / 0.9885 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.2611, allocations: 3.984 kB / 0.9886 GB, free: 17.53 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.2613, allocations: 27.98 kB / 0.9886 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.2613, allocations: 4 kB / 0.9886 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.2614, allocations: 7.953 kB / 0.9886 GB, free: 17.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.2614, allocations: 4 kB / 0.9886 GB, free: 17.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.2614, allocations: 3.984 kB / 0.9886 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007981/0.2622, allocations: 387.2 kB / 0.989 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.081e-05/0.2623, allocations: 104.8 kB / 0.9891 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.266e-05/0.2623, allocations: 11.98 kB / 0.9891 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003793/0.2627, allocations: 35.92 kB / 0.9891 GB, free: 16.92 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.2629, allocations: 39.94 kB / 0.9892 GB, free: 16.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.2629, allocations: 15.98 kB / 0.9892 GB, free: 16.87 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001156/0.2631, allocations: 135.4 kB / 0.9893 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2631, allocations: 0 / 0.9893 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004387/0.2635, allocations: 71.78 kB / 0.9894 GB, free: 16.66 MB / 0.6198 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.001121/0.2647, allocations: 0.9446 MB / 0.9903 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000927/0.2656, allocations: 339.8 kB / 0.9906 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2656, allocations: 0 / 0.9906 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004175/0.2661, allocations: 140.9 kB / 0.9907 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.2665, allocations: 42.3 kB / 0.9908 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003146/0.2697, allocations: 1.424 MB / 0.9922 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/0.27, allocations: 0.7642 MB / 0.9929 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001882/0.2702, allocations: 34.28 kB / 0.993 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.2704, allocations: 83.41 kB / 0.993 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of SimCode: time 9.92e-07/0.2704, allocations: 0 / 0.993 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/0.2987, allocations: 5.082 MB / 0.998 GB, free: 7.883 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002505/0.299, allocations: 229.4 kB / 0.9982 GB, free: 7.633 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/2.877, allocations: 0 / 0.9982 GB, free: 7.633 MB / 0.6198 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)