Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_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.002122/0.002122, allocations: 99.94 kB / 15.05 MB, free: 1.113 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.003113/0.003114, 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 4.0.0+maint.om/package.mo): time 2.862/2.862, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.345/5.345, allocations: 409.2 MB / 0.6838 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0008183/0.0008186, allocations: 8 kB / 0.8375 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.634/1.635, allocations: 146.8 MB / 0.9809 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003399/1.638, allocations: 1.683 MB / 0.9825 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001761/1.64, allocations: 0.6705 MB / 0.9832 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000278/1.64, allocations: 4 kB / 0.9832 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002526/1.641, allocations: 23.8 kB / 0.9832 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002101/1.641, allocations: 35.88 kB / 0.9832 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007929/1.642, allocations: 103.8 kB / 0.9833 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004511/1.642, allocations: 227.6 kB / 0.9836 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005066/1.643, allocations: 196.3 kB / 0.9837 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/1.643, allocations: 103.6 kB / 0.9838 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002704/1.643, allocations: 115.4 kB / 0.9839 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.863e-05/1.643, allocations: 16 kB / 0.984 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/1.643, allocations: 16 kB / 0.984 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001937/1.644, allocations: 55.81 kB / 0.984 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001717/1.644, allocations: 73.52 kB / 0.9841 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006571/1.644, allocations: 305.7 kB / 0.9844 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/1.645, allocations: 0 / 0.9844 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.989e-06/1.645, allocations: 0 / 0.9844 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.134e-05/1.645, allocations: 0 / 0.9844 GB, free: 2.793 MB / 0.7325 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.001793/1.646, allocations: 0.5443 MB / 0.9849 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 9.507e-05/1.646, allocations: 12.03 kB / 0.9849 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000179/1.647, allocations: 62.55 kB / 0.985 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002115/1.647, allocations: 39.61 kB / 0.985 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007009/1.648, allocations: 267.8 kB / 0.9853 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.695e-05/1.648, allocations: 28.66 kB / 0.9853 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.729e-05/1.648, allocations: 31.95 kB / 0.9853 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/1.649, allocations: 340.8 kB / 0.9857 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/1.649, allocations: 0 / 0.9857 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.595e-05/1.649, allocations: 12 kB / 0.9857 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/1.649, allocations: 8 kB / 0.9857 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009961/1.65, allocations: 258 kB / 0.9859 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/1.652, allocations: 0.9591 MB / 0.9869 GB, free: 84 kB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007788/1.653, allocations: 271.1 kB / 0.9871 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/1.653, allocations: 7.953 kB / 0.9871 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006979/1.654, allocations: 183.2 kB / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=32): time 2.705e-06/1.654, allocations: 4 kB / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of matching and sorting (n=32): time 0.001242/1.655, allocations: 369.8 kB / 0.9877 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/1.655, allocations: 55.41 kB / 0.9877 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/1.656, allocations: 199.3 kB / 0.9879 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 9.737e-05/1.656, allocations: 41.7 kB / 0.988 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/1.656, allocations: 156.5 kB / 0.9881 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/1.656, allocations: 82.98 kB / 0.9882 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.47e-05/1.656, allocations: 4 kB / 0.9882 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002601/1.656, allocations: 342.8 kB / 0.9885 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004395/1.657, allocations: 104.8 kB / 0.9886 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005925/1.658, allocations: 173.5 kB / 0.9888 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006625/1.658, allocations: 133.6 kB / 0.9889 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/1.658, allocations: 4 kB / 0.9889 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001323/1.66, allocations: 382.6 kB / 0.9893 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.761e-05/1.66, allocations: 29.7 kB / 0.9893 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/1.66, allocations: 4 kB / 0.9893 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.171e-05/1.66, allocations: 3.938 kB / 0.9893 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/1.66, allocations: 56.06 kB / 0.9894 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.513e-05/1.66, allocations: 4 kB / 0.9894 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004448/1.661, allocations: 67.5 kB / 0.9894 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.579e-05/1.661, allocations: 15.98 kB / 0.9894 GB, free: 13.32 MB / 0.7481 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.0004732/1.661, allocations: 173.8 kB / 0.9896 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.793e-05/1.661, allocations: 23.7 kB / 0.9896 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001503/1.663, allocations: 312.3 kB / 0.9899 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/1.663, allocations: 4 kB / 0.9899 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/1.663, allocations: 0 / 0.9899 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/1.663, allocations: 0 / 0.9899 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/1.665, allocations: 0.7672 MB / 0.9907 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/1.665, allocations: 0 / 0.9907 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/1.666, allocations: 35.91 kB / 0.9907 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.123e-05/1.666, allocations: 4 kB / 0.9907 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/1.666, allocations: 4 kB / 0.9907 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/1.666, allocations: 0 / 0.9907 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.666, allocations: 0 / 0.9907 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/1.667, allocations: 383.7 kB / 0.9911 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/1.667, allocations: 100.8 kB / 0.9912 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.419e-05/1.667, allocations: 8 kB / 0.9912 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003834/1.668, allocations: 39.95 kB / 0.9912 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/1.668, allocations: 43.88 kB / 0.9913 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/1.668, allocations: 12 kB / 0.9913 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002447/1.668, allocations: 131.5 kB / 0.9914 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.81e-07/1.668, allocations: 0 / 0.9914 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007725/1.669, allocations: 71.84 kB / 0.9915 GB, free: 11.13 MB / 0.7481 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.002036/1.671, allocations: 0.9415 MB / 0.9924 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001363/1.672, allocations: 343.5 kB / 0.9927 GB, free: 9.82 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/1.672, allocations: 4.125 kB / 0.9927 GB, free: 9.816 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000559/1.673, allocations: 139.8 kB / 0.9929 GB, free: 9.68 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005697/1.674, allocations: 25.38 kB / 0.9929 GB, free: 9.656 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00538/1.679, allocations: 2.184 MB / 0.995 GB, free: 7.395 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/1.68, allocations: 0.7642 MB / 0.9958 GB, free: 6.605 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002337/1.68, allocations: 38.28 kB / 0.9958 GB, free: 6.57 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/1.68, allocations: 83.41 kB / 0.9959 GB, free: 6.488 MB / 0.7481 GB Notification: Performance of SimCode: time 2.264e-06/1.68, allocations: 0 / 0.9959 GB, free: 6.488 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04373/1.724, allocations: 5.064 MB / 1.001 GB, free: 1.621 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004613/1.725, allocations: 213.9 kB / 1.001 GB, free: 1.379 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.313/5.038, allocations: 0 / 1.001 GB, free: 1.379 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat does not exist to compare? outputFormat=mat