Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.001087/0.001087, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001381/0.001381, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 223.3 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.836/2.836, allocations: 409.4 MB / 0.684 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003972/0.0003975, allocations: 8 kB / 0.8378 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8221/0.8225, allocations: 146.8 MB / 0.9811 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001949/0.8245, allocations: 1.36 MB / 0.9825 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006689/0.8252, allocations: 423.3 kB / 0.9829 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.762e-05/0.8253, allocations: 0 / 0.9829 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.577e-05/0.8253, allocations: 7.922 kB / 0.9829 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.942e-05/0.8254, allocations: 15.86 kB / 0.9829 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001639/0.8256, allocations: 19.98 kB / 0.9829 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.8257, allocations: 75.7 kB / 0.983 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.8258, allocations: 27.95 kB / 0.983 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.001e-05/0.8259, allocations: 23.92 kB / 0.983 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.503e-05/0.826, allocations: 27.86 kB / 0.9831 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.826, allocations: 0 / 0.9831 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.452e-05/0.826, allocations: 4 kB / 0.9831 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.992e-05/0.8261, allocations: 15.91 kB / 0.9831 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.506e-05/0.8261, allocations: 37.64 kB / 0.9831 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.663e-05/0.8262, allocations: 58.14 kB / 0.9832 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.8262, allocations: 0 / 0.9832 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.202e-06/0.8262, allocations: 0 / 0.9832 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.8262, allocations: 0 / 0.9832 GB, free: 4.152 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004896/0.8267, allocations: 391 kB / 0.9836 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.8268, allocations: 8.031 kB / 0.9836 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.8268, allocations: 42.56 kB / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.8268, allocations: 7.906 kB / 0.9836 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.827, allocations: 175 kB / 0.9838 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.665e-06/0.827, allocations: 0 / 0.9838 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.827, allocations: 11.94 kB / 0.9838 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.8273, allocations: 95.27 kB / 0.9839 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.8273, allocations: 0 / 0.9839 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.8273, allocations: 4 kB / 0.9839 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.8273, allocations: 4 kB / 0.9839 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000161/0.8275, allocations: 55.91 kB / 0.9839 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004867/0.828, allocations: 336.6 kB / 0.9843 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.8281, allocations: 50.56 kB / 0.9843 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.275e-05/0.8282, allocations: 36.94 kB / 0.9843 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.8282, allocations: 4 kB / 0.9843 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.8283, allocations: 38.58 kB / 0.9844 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.8283, allocations: 0 / 0.9844 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0002799/0.8286, allocations: 113.6 kB / 0.9845 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.8286, allocations: 77.11 kB / 0.9846 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.387e-05/0.8287, allocations: 135.3 kB / 0.9847 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.8287, allocations: 25.7 kB / 0.9847 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.789e-05/0.8288, allocations: 100 kB / 0.9848 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.8288, allocations: 11.81 kB / 0.9848 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-06/0.8288, allocations: 4 kB / 0.9848 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.829, allocations: 322.8 kB / 0.9851 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.609e-05/0.829, allocations: 27.98 kB / 0.9852 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.498e-05/0.8291, allocations: 45.64 kB / 0.9852 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.389e-05/0.8292, allocations: 28.02 kB / 0.9852 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.8292, allocations: 0 / 0.9852 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001823/0.8294, allocations: 89.67 kB / 0.9853 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.8294, allocations: 13.39 kB / 0.9853 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-06/0.8294, allocations: 0 / 0.9853 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.372e-06/0.8294, allocations: 0 / 0.9853 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.203e-05/0.8295, allocations: 12 kB / 0.9853 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.8295, allocations: 0 / 0.9853 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.828e-05/0.8296, allocations: 19.89 kB / 0.9854 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.8296, allocations: 0 / 0.9854 GB, free: 1.668 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 8.872e-05/0.8297, allocations: 129.8 kB / 0.9855 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.8298, allocations: 4 kB / 0.9855 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.976e-05/0.8298, allocations: 20.23 kB / 0.9855 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.8298, allocations: 3.938 kB / 0.9855 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.8298, allocations: 0 / 0.9855 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-06/0.8298, allocations: 0 / 0.9855 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.83, allocations: 197.7 kB / 0.9857 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.83, allocations: 4 kB / 0.9857 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.39e-05/0.8301, allocations: 11.98 kB / 0.9857 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.8301, allocations: 3.938 kB / 0.9857 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-06/0.8301, allocations: 0 / 0.9857 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.8301, allocations: 0 / 0.9857 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.8302, allocations: 8 kB / 0.9857 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.8304, allocations: 175.5 kB / 0.9859 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.068e-05/0.8304, allocations: 88.97 kB / 0.986 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.8304, allocations: 0 / 0.986 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.8306, allocations: 23.98 kB / 0.986 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.8306, allocations: 15.91 kB / 0.986 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.8306, allocations: 0 / 0.986 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.782e-05/0.8307, allocations: 100.4 kB / 0.9861 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8307, allocations: 0 / 0.9861 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002183/0.8309, allocations: 12 kB / 0.9861 GB, free: 0.793 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004981/0.8314, allocations: 0.7202 MB / 0.9868 GB, free: 44 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001987/0.8316, allocations: 71.89 kB / 0.9869 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.8316, allocations: 0 / 0.9869 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.091e-05/0.8317, allocations: 27.98 kB / 0.9869 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.832, allocations: 5.828 kB / 0.9869 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008944/0.8329, allocations: 0.5917 MB / 0.9875 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.8331, allocations: 0.6887 MB / 0.9882 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.133e-05/0.8332, allocations: 7.984 kB / 0.9882 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.17e-05/0.8333, allocations: 23.44 kB / 0.9882 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of SimCode: time 2.81e-07/0.8333, allocations: 3.938 kB / 0.9882 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01149/0.8448, allocations: 1.721 MB / 0.9899 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/0.845, allocations: 235.4 kB / 0.9901 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.638, allocations: 2.188 kB / 0.9901 GB, free: 12.77 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat does not exist to compare? outputFormat=mat