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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001049/0.001049, allocations: 177.3 kB / 15.94 MB, free: 228 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.633/1.633, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.852/1.852, allocations: 292.5 MB / 0.5497 GB, free: 14.64 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.000555/0.000555, allocations: 12.94 kB / 0.6736 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2614, allocations: 116.3 MB / 0.7871 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002565/0.264, allocations: 1.685 MB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001098/0.2651, allocations: 0.7143 MB / 0.7895 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.2653, allocations: 4 kB / 0.7895 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.2654, allocations: 23.73 kB / 0.7895 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.2655, allocations: 39.88 kB / 0.7895 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004532/0.266, allocations: 103.8 kB / 0.7896 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003348/0.2663, allocations: 219.6 kB / 0.7898 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003577/0.2667, allocations: 186.5 kB / 0.79 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.2669, allocations: 103.6 kB / 0.7901 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002815/0.2672, allocations: 107.5 kB / 0.7902 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.811e-05/0.2672, allocations: 16 kB / 0.7902 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.129e-05/0.2673, allocations: 23.98 kB / 0.7903 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.264e-05/0.2674, allocations: 55.81 kB / 0.7903 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.974e-05/0.2674, allocations: 69.58 kB / 0.7904 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.2678, allocations: 303.5 kB / 0.7907 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.2678, allocations: 0 / 0.7907 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.494e-06/0.2678, allocations: 0 / 0.7907 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.2678, allocations: 0 / 0.7907 GB, free: 8.301 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.0008193/0.2686, allocations: 0.5443 MB / 0.7912 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2687, allocations: 11.97 kB / 0.7912 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.451e-05/0.2687, allocations: 35.58 kB / 0.7912 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.269, allocations: 266.6 kB / 0.7915 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.302e-05/0.2691, allocations: 32.64 kB / 0.7915 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.2691, allocations: 32 kB / 0.7916 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006787/0.2698, allocations: 336.8 kB / 0.7919 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.2698, allocations: 3.938 kB / 0.7919 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.2699, allocations: 15.98 kB / 0.7919 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.2699, allocations: 7.984 kB / 0.7919 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005609/0.2705, allocations: 254.1 kB / 0.7922 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.2719, allocations: 0.9589 MB / 0.7931 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006227/0.2725, allocations: 275.1 kB / 0.7934 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.2726, allocations: 4 kB / 0.7934 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000431/0.273, allocations: 191.2 kB / 0.7935 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 2.906e-06/0.273, allocations: 0 / 0.7935 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0008211/0.2738, allocations: 367.4 kB / 0.7939 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.2739, allocations: 59.41 kB / 0.7939 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.2741, allocations: 203.3 kB / 0.7941 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.345e-05/0.2741, allocations: 37.7 kB / 0.7942 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.2743, allocations: 148.6 kB / 0.7943 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.885e-05/0.2743, allocations: 86.83 kB / 0.7944 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.919e-05/0.2744, allocations: 19.94 kB / 0.7944 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2745, allocations: 334.8 kB / 0.7947 GB, free: 3.902 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/0.2748, allocations: 116.8 kB / 0.7949 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/0.2751, allocations: 169.5 kB / 0.795 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.2753, allocations: 129.6 kB / 0.7951 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.2753, allocations: 0 / 0.7951 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006442/0.276, allocations: 378.8 kB / 0.7955 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/0.276, allocations: 33.7 kB / 0.7955 GB, free: 3.051 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.2761, allocations: 3.984 kB / 0.7955 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2761, allocations: 8.156 kB / 0.7955 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.2763, allocations: 47.91 kB / 0.7956 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.2763, allocations: 3.938 kB / 0.7956 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002558/0.2766, allocations: 55.66 kB / 0.7956 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.403e-05/0.2766, allocations: 16 kB / 0.7957 GB, free: 2.918 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.0001702/0.2768, allocations: 177.7 kB / 0.7958 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.2768, allocations: 23.72 kB / 0.7959 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006049/0.2774, allocations: 308.6 kB / 0.7961 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.2775, allocations: 4 kB / 0.7961 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2775, allocations: 3.938 kB / 0.7962 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2775, allocations: 3.984 kB / 0.7962 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.2786, allocations: 0.7641 MB / 0.7969 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.2786, allocations: 0 / 0.7969 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.2787, allocations: 27.98 kB / 0.7969 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2787, allocations: 0 / 0.7969 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.2787, allocations: 11.98 kB / 0.7969 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.2788, allocations: 4 kB / 0.7969 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2788, allocations: 7.891 kB / 0.797 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005481/0.2793, allocations: 375 kB / 0.7973 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.797e-05/0.2794, allocations: 112.7 kB / 0.7974 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.2794, allocations: 4 kB / 0.7974 GB, free: 1.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.2797, allocations: 35.97 kB / 0.7975 GB, free: 0.9766 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.2798, allocations: 47.89 kB / 0.7975 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.2798, allocations: 11.98 kB / 0.7975 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.404e-05/0.2799, allocations: 139.7 kB / 0.7976 GB, free: 0.7812 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2799, allocations: 0 / 0.7976 GB, free: 0.7812 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003296/0.2802, allocations: 63.84 kB / 0.7977 GB, free: 0.7188 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.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.0001854/0.2804, allocations: 133.4 kB / 0.7978 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006029/0.281, allocations: 336.2 kB / 0.7982 GB, free: 244 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2811, allocations: 0 / 0.7982 GB, free: 244 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002561/0.2813, allocations: 151.8 kB / 0.7983 GB, free: 92 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.2816, allocations: 28.42 kB / 0.7983 GB, free: 64 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007954/0.2824, allocations: 0.5117 MB / 0.7988 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.2827, allocations: 0.7642 MB / 0.7996 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001068/0.2828, allocations: 34.28 kB / 0.7996 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.308e-05/0.2829, allocations: 27.44 kB / 0.7996 GB, free: 14.67 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.2829, allocations: 4 kB / 0.7996 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of Templates: time 0.005817/0.2887, allocations: 2.716 MB / 0.8023 GB, free: 11.97 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile Environment - environmentSimulation: (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 & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) Environment - environmentSimulation: