Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.433/1.433, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 181.5 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.807/1.807, allocations: 205.4 MB / 0.5775 GB, free: 20.3 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009795/0.0009798, allocations: 93.23 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004937/0.0004939, allocations: 9.406 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2741, allocations: 106.3 MB / 0.9002 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002091/0.2762, allocations: 1.693 MB / 0.9018 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001025/0.2773, allocations: 0.7255 MB / 0.9025 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.2774, allocations: 4 kB / 0.9025 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.2775, allocations: 19.8 kB / 0.9025 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.752e-05/0.2776, allocations: 31.88 kB / 0.9026 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.278, allocations: 115.7 kB / 0.9027 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002436/0.2782, allocations: 219.6 kB / 0.9029 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002648/0.2785, allocations: 206.4 kB / 0.9031 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.2786, allocations: 91.7 kB / 0.9032 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.2788, allocations: 111.4 kB / 0.9033 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.019e-05/0.2788, allocations: 12 kB / 0.9033 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.927e-05/0.2789, allocations: 16 kB / 0.9033 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.001e-05/0.2789, allocations: 59.75 kB / 0.9034 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.508e-05/0.279, allocations: 69.58 kB / 0.9034 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.2792, allocations: 311.5 kB / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.2792, allocations: 0 / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.655e-06/0.2792, allocations: 0 / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.2793, allocations: 0 / 0.9037 GB, free: 60.2 MB / 0.6042 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.0007691/0.28, allocations: 0.5327 MB / 0.9043 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2801, allocations: 16.02 kB / 0.9043 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.316e-05/0.2801, allocations: 62.55 kB / 0.9043 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.564e-05/0.2802, allocations: 43.5 kB / 0.9044 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.2805, allocations: 269.4 kB / 0.9046 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/0.2805, allocations: 28.66 kB / 0.9047 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.2806, allocations: 28 kB / 0.9047 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005616/0.2812, allocations: 332.8 kB / 0.905 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2812, allocations: 0 / 0.905 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.2812, allocations: 19.94 kB / 0.905 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.2812, allocations: 8 kB / 0.905 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005685/0.2818, allocations: 258.1 kB / 0.9053 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.2831, allocations: 0.963 MB / 0.9062 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005894/0.2837, allocations: 279.1 kB / 0.9065 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.2837, allocations: 4 kB / 0.9065 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004257/0.2841, allocations: 183.2 kB / 0.9067 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=32): time 2.044e-06/0.2841, allocations: 0 / 0.9067 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of matching and sorting (n=32): time 0.0007611/0.2849, allocations: 369.8 kB / 0.907 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.285, allocations: 63.36 kB / 0.9071 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.2851, allocations: 200.2 kB / 0.9073 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.2852, allocations: 37.7 kB / 0.9073 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.353e-05/0.2853, allocations: 160.5 kB / 0.9074 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.909e-05/0.2853, allocations: 78.98 kB / 0.9075 GB, free: 56.08 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/0.2853, allocations: 12 kB / 0.9075 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.788e-05/0.2854, allocations: 330.8 kB / 0.9078 GB, free: 55.74 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.2857, allocations: 116.8 kB / 0.908 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/0.286, allocations: 169.5 kB / 0.9081 GB, free: 55.44 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.2862, allocations: 137.4 kB / 0.9083 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2862, allocations: 3.938 kB / 0.9083 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005877/0.2868, allocations: 374.8 kB / 0.9086 GB, free: 54.92 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.2868, allocations: 37.69 kB / 0.9086 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.2869, allocations: 0 / 0.9086 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.2869, allocations: 4 kB / 0.9087 GB, free: 54.87 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.2871, allocations: 51.84 kB / 0.9087 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/0.2871, allocations: 4 kB / 0.9087 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.2874, allocations: 67.67 kB / 0.9088 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.2874, allocations: 15.98 kB / 0.9088 GB, free: 54.73 MB / 0.6042 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.0001594/0.2876, allocations: 177.7 kB / 0.909 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.2876, allocations: 19.81 kB / 0.909 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000567/0.2882, allocations: 306.6 kB / 0.9093 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.2882, allocations: 4 kB / 0.9093 GB, free: 54.22 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2882, allocations: 3.984 kB / 0.9093 GB, free: 54.22 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2882, allocations: 4 kB / 0.9093 GB, free: 54.21 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009365/0.2891, allocations: 0.7633 MB / 0.91 GB, free: 53.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2892, allocations: 0 / 0.91 GB, free: 53.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.2893, allocations: 35.91 kB / 0.9101 GB, free: 53.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.2893, allocations: 0 / 0.9101 GB, free: 53.36 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.2893, allocations: 11.95 kB / 0.9101 GB, free: 53.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.2893, allocations: 4 kB / 0.9101 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2893, allocations: 0 / 0.9101 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004766/0.2898, allocations: 379.7 kB / 0.9104 GB, free: 52.96 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.2899, allocations: 104.8 kB / 0.9105 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.2899, allocations: 11.94 kB / 0.9105 GB, free: 52.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.2901, allocations: 43.91 kB / 0.9106 GB, free: 52.78 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.458e-05/0.2903, allocations: 39.94 kB / 0.9106 GB, free: 52.74 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.2903, allocations: 8 kB / 0.9106 GB, free: 52.73 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.746e-05/0.2904, allocations: 135.2 kB / 0.9108 GB, free: 52.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2904, allocations: 0 / 0.9108 GB, free: 52.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003092/0.2907, allocations: 67.84 kB / 0.9108 GB, free: 52.54 MB / 0.6042 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.0007354/0.2914, allocations: 0.9302 MB / 0.9117 GB, free: 51.58 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005697/0.292, allocations: 343.4 kB / 0.9121 GB, free: 51.23 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.292, allocations: 0 / 0.9121 GB, free: 51.23 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002443/0.2923, allocations: 148.1 kB / 0.9122 GB, free: 51.09 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.2926, allocations: 32.06 kB / 0.9122 GB, free: 51.05 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00253/0.2951, allocations: 2.18 MB / 0.9144 GB, free: 48.8 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.2953, allocations: 0.7642 MB / 0.9151 GB, free: 48.01 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.000116/0.2955, allocations: 26.28 kB / 0.9151 GB, free: 47.98 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.2956, allocations: 83.41 kB / 0.9152 GB, free: 47.9 MB / 0.6042 GB Notification: Performance of SimCode: time 1.9e-07/0.2956, allocations: 4 kB / 0.9152 GB, free: 47.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01653/0.3121, allocations: 5.059 MB / 0.9202 GB, free: 43.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.3124, allocations: 221.8 kB / 0.9204 GB, free: 42.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.204, allocations: 0 / 0.9204 GB, free: 42.79 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)