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.001518/0.001518, allocations: 99.7 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.001607/0.001607, allocations: 177.3 kB / 15.95 MB, free: 216 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.785/2.785, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.863/4.863, allocations: 409.2 MB / 0.6838 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005988/0.0005991, allocations: 8 kB / 0.8375 GB, free: 6.512 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.803/1.804, allocations: 146.8 MB / 0.9809 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.004624/1.809, allocations: 1.356 MB / 0.9822 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00146/1.81, allocations: 431.3 kB / 0.9826 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.546e-05/1.81, allocations: 0 / 0.9826 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.737e-05/1.81, allocations: 3.938 kB / 0.9826 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001663/1.81, allocations: 15.97 kB / 0.9826 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/1.811, allocations: 19.97 kB / 0.9826 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000158/1.811, allocations: 51.88 kB / 0.9827 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/1.811, allocations: 31.89 kB / 0.9827 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/1.811, allocations: 27.91 kB / 0.9827 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/1.811, allocations: 27.86 kB / 0.9828 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.922e-05/1.811, allocations: 0 / 0.9828 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 2.487e-05/1.811, allocations: 4 kB / 0.9828 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.495e-05/1.812, allocations: 11.92 kB / 0.9828 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.718e-05/1.812, allocations: 41.64 kB / 0.9828 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001745/1.812, allocations: 58.12 kB / 0.9829 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/1.812, allocations: 0 / 0.9829 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.059e-06/1.812, allocations: 0 / 0.9829 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.777e-05/1.812, allocations: 0 / 0.9829 GB, free: 4.168 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.001015/1.813, allocations: 387 kB / 0.9833 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.982e-05/1.813, allocations: 16.03 kB / 0.9833 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.535e-05/1.813, allocations: 34.5 kB / 0.9833 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/1.813, allocations: 7.906 kB / 0.9833 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003808/1.814, allocations: 171 kB / 0.9835 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/1.814, allocations: 4 kB / 0.9835 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.015e-05/1.814, allocations: 4 kB / 0.9835 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004672/1.814, allocations: 103.2 kB / 0.9836 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/1.814, allocations: 7.984 kB / 0.9836 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/1.814, allocations: 0 / 0.9836 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/1.814, allocations: 0 / 0.9836 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003228/1.815, allocations: 55.97 kB / 0.9836 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/1.816, allocations: 336.6 kB / 0.984 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/1.816, allocations: 50.56 kB / 0.984 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/1.816, allocations: 0 / 0.984 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.297e-05/1.816, allocations: 34.66 kB / 0.984 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/1.816, allocations: 7.938 kB / 0.9841 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0007512/1.817, allocations: 113.6 kB / 0.9842 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/1.817, allocations: 81.11 kB / 0.9842 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003568/1.818, allocations: 135.5 kB / 0.9844 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.578e-05/1.818, allocations: 25.7 kB / 0.9844 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/1.818, allocations: 100 kB / 0.9845 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.833e-05/1.818, allocations: 11.81 kB / 0.9845 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/1.818, allocations: 0 / 0.9845 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0005987/1.819, allocations: 330.7 kB / 0.9848 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/1.819, allocations: 27.98 kB / 0.9848 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/1.819, allocations: 41.7 kB / 0.9849 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/1.819, allocations: 32.05 kB / 0.9849 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/1.819, allocations: 0 / 0.9849 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0004041/1.82, allocations: 93.7 kB / 0.985 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/1.82, allocations: 4 kB / 0.985 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/1.82, allocations: 0 / 0.985 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.138e-05/1.82, allocations: 3.984 kB / 0.985 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/1.82, allocations: 12 kB / 0.985 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/1.82, allocations: 0 / 0.985 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/1.82, allocations: 19.89 kB / 0.985 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/1.82, allocations: 4 kB / 0.985 GB, free: 1.715 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 0.0002322/1.82, allocations: 125.7 kB / 0.9852 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/1.82, allocations: 7.938 kB / 0.9852 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.143e-05/1.821, allocations: 8.25 kB / 0.9852 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/1.821, allocations: 3.938 kB / 0.9852 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/1.821, allocations: 4 kB / 0.9852 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/1.821, allocations: 4 kB / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004798/1.821, allocations: 193.5 kB / 0.9854 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/1.821, allocations: 0 / 0.9854 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/1.821, allocations: 15.98 kB / 0.9854 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/1.821, allocations: 0 / 0.9854 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/1.821, allocations: 0 / 0.9854 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/1.821, allocations: 0 / 0.9854 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/1.821, allocations: 0 / 0.9854 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/1.822, allocations: 183.5 kB / 0.9856 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/1.822, allocations: 84.97 kB / 0.9856 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/1.822, allocations: 8 kB / 0.9857 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/1.822, allocations: 15.98 kB / 0.9857 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/1.822, allocations: 8.219 kB / 0.9857 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/1.822, allocations: 7.984 kB / 0.9857 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00016/1.823, allocations: 104.6 kB / 0.9858 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/1.823, allocations: 0 / 0.9858 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003652/1.823, allocations: 8 kB / 0.9858 GB, free: 0.8555 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.001385/1.824, allocations: 0.7295 MB / 0.9865 GB, free: 100 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003888/1.825, allocations: 67.89 kB / 0.9866 GB, free: 32 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/1.825, allocations: 0 / 0.9866 GB, free: 32 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001297/1.825, allocations: 27.98 kB / 0.9866 GB, free: 4 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/1.825, allocations: 12.05 kB / 0.9866 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/1.827, allocations: 0.5891 MB / 0.9872 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008125/1.828, allocations: 0.6965 MB / 0.9879 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.689e-05/1.828, allocations: 3.906 kB / 0.9879 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.729e-05/1.828, allocations: 23.42 kB / 0.9879 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of SimCode: time 3.8e-07/1.828, allocations: 0 / 0.9879 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/1.854, allocations: 1.709 MB / 0.9896 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003712/1.854, allocations: 222.5 kB / 0.9898 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.246/5.1, allocations: 9.094 kB / 0.9898 GB, free: 12.83 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