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.001399/0.001399, allocations: 109.4 kB / 15.69 MB, free: 128 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.001248/0.001248, allocations: 187.9 kB / 16.62 MB, free: 6.613 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.393/1.393, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.628/1.628, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001379/0.001379, allocations: 68.02 kB / 0.6718 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2266, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003313/0.2299, allocations: 2.018 MB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.2312, allocations: 0.7412 MB / 0.7863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.2314, allocations: 4 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.2315, allocations: 39.55 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.372e-05/0.2316, allocations: 27.66 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004529/0.2321, allocations: 163.8 kB / 0.7866 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004152/0.2325, allocations: 407.2 kB / 0.7869 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003494/0.2329, allocations: 252.1 kB / 0.7872 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.233, allocations: 135.5 kB / 0.7873 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.2332, allocations: 147.4 kB / 0.7874 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.568e-05/0.2333, allocations: 40 kB / 0.7875 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.987e-05/0.2334, allocations: 48 kB / 0.7875 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.48e-05/0.2335, allocations: 83.75 kB / 0.7876 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.2336, allocations: 155.2 kB / 0.7878 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.234, allocations: 426.6 kB / 0.7882 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2341, allocations: 0 / 0.7882 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2341, allocations: 0 / 0.7882 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.2341, allocations: 0 / 0.7882 GB, free: 8.574 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.0009249/0.235, allocations: 0.6028 MB / 0.7888 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.235, allocations: 12.03 kB / 0.7888 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.971e-05/0.2351, allocations: 70.72 kB / 0.7888 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.2352, allocations: 32.56 kB / 0.7889 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.2355, allocations: 266.7 kB / 0.7891 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.2356, allocations: 29.02 kB / 0.7891 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.2357, allocations: 36.38 kB / 0.7892 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005903/0.2362, allocations: 329 kB / 0.7895 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2363, allocations: 4 kB / 0.7895 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.211e-05/0.2363, allocations: 15.98 kB / 0.7895 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2363, allocations: 8 kB / 0.7895 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005363/0.2369, allocations: 254 kB / 0.7898 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.2382, allocations: 0.951 MB / 0.7907 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/0.2388, allocations: 266.9 kB / 0.7909 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002408/0.2391, allocations: 124.8 kB / 0.7911 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.2391, allocations: 8 kB / 0.7911 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003729/0.2395, allocations: 183.3 kB / 0.7913 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 2.044e-06/0.2395, allocations: 0 / 0.7913 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007922/0.2403, allocations: 359.6 kB / 0.7916 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.2404, allocations: 55.41 kB / 0.7916 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.2406, allocations: 203.3 kB / 0.7918 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.2406, allocations: 37.7 kB / 0.7919 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2407, allocations: 160.6 kB / 0.792 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.57e-05/0.2408, allocations: 78.89 kB / 0.7921 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.2409, allocations: 90.11 kB / 0.7922 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.241, allocations: 342.8 kB / 0.7925 GB, free: 3.875 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.2413, allocations: 100.8 kB / 0.7926 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.2416, allocations: 173.4 kB / 0.7928 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004499/0.242, allocations: 258.5 kB / 0.793 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.2421, allocations: 8 kB / 0.793 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006475/0.2427, allocations: 366.8 kB / 0.7934 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.629e-05/0.2428, allocations: 29.7 kB / 0.7934 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2428, allocations: 4 kB / 0.7934 GB, free: 2.895 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.2428, allocations: 0 / 0.7934 GB, free: 2.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.243, allocations: 43.91 kB / 0.7935 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.243, allocations: 8.156 kB / 0.7935 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.2433, allocations: 59.64 kB / 0.7935 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.28e-05/0.2433, allocations: 8 kB / 0.7935 GB, free: 2.777 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.0001701/0.2435, allocations: 177.7 kB / 0.7937 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.325e-05/0.2435, allocations: 23.7 kB / 0.7937 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000605/0.2441, allocations: 296.6 kB / 0.794 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2441, allocations: 4 kB / 0.794 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2442, allocations: 0 / 0.794 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-06/0.2442, allocations: 0 / 0.794 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.2452, allocations: 0.7563 MB / 0.7947 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2452, allocations: 0 / 0.7947 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001351/0.2454, allocations: 35.89 kB / 0.7948 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.2454, allocations: 4 kB / 0.7948 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.2454, allocations: 7.938 kB / 0.7948 GB, free: 1.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.339e-06/0.2454, allocations: 4 kB / 0.7948 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2454, allocations: 0 / 0.7948 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005499/0.246, allocations: 368.3 kB / 0.7951 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.662e-05/0.2461, allocations: 100.8 kB / 0.7952 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.955e-05/0.2461, allocations: 11.94 kB / 0.7953 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.2463, allocations: 35.95 kB / 0.7953 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.2465, allocations: 35.95 kB / 0.7953 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.2465, allocations: 16 kB / 0.7953 GB, free: 0.8203 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.27e-05/0.2466, allocations: 135.7 kB / 0.7955 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2466, allocations: 0 / 0.7955 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003212/0.2469, allocations: 67.84 kB / 0.7955 GB, free: 0.6211 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.0009079/0.2478, allocations: 0.9289 MB / 0.7964 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006411/0.2485, allocations: 339 kB / 0.7968 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.2485, allocations: 0 / 0.7968 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.2488, allocations: 140.9 kB / 0.7969 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.2491, allocations: 40.27 kB / 0.7969 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003307/0.2525, allocations: 2.627 MB / 0.7995 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.2528, allocations: 0.7641 MB / 0.8002 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001147/0.253, allocations: 30.28 kB / 0.8003 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.2531, allocations: 87.39 kB / 0.8004 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of SimCode: time 1.022e-06/0.2531, allocations: 0 / 0.8004 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.2756, allocations: 5.568 MB / 0.8058 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/7.94, allocations: 0 / 0.8058 GB, free: 6.07 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-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)