Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_8_0_x_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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.681/1.681, allocations: 285.6 MB / 293.1 MB, free: 10.2 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001951/0.001951, allocations: 180.9 kB / 361.4 MB, free: 6.809 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.87/1.87, allocations: 205.2 MB / 0.62 GB, free: 11.62 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009323/0.0009324, allocations: 107.4 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.401e-05/3.404e-05, allocations: 8 kB / 0.8518 GB, free: 2.613 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7708/0.7708, allocations: 115.3 MB / 0.9645 GB, free: 78.96 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2102/0.9811, allocations: 138.7 MB / 1.1 GB, free: 1.043 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.9814, allocations: 92.5 kB / 1.1 GB, free: 0.9531 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004359/0.9857, allocations: 1.488 MB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.435e-06/0.9858, allocations: 0.8438 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.9858, allocations: 4 kB / 1.101 GB, free: 15.49 MB / 0.7136 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.0004958/0.9863, allocations: 384.1 kB / 1.102 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.9864, allocations: 8.625 kB / 1.102 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.9864, allocations: 13.78 kB / 1.102 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.9866, allocations: 176.6 kB / 1.102 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.9866, allocations: 1.688 kB / 1.102 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.9867, allocations: 7.453 kB / 1.102 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001051/0.9868, allocations: 33.83 kB / 1.102 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.9869, allocations: 75.14 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.9869, allocations: 4.781 kB / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.987, allocations: 0 / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.987, allocations: 0.6875 kB / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005959/0.9876, allocations: 296.7 kB / 1.102 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.9877, allocations: 47.66 kB / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.298e-05/0.9877, allocations: 16.86 kB / 1.102 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.9878, allocations: 0 / 1.102 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.9878, allocations: 32.31 kB / 1.103 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.9878, allocations: 4 kB / 1.103 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0001863/0.988, allocations: 60.03 kB / 1.103 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.9881, allocations: 81.11 kB / 1.103 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.9882, allocations: 121.8 kB / 1.103 GB, free: 14 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.9882, allocations: 25.7 kB / 1.103 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.363e-05/0.9883, allocations: 104 kB / 1.103 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.9883, allocations: 11.81 kB / 1.103 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-06/0.9883, allocations: 0 / 1.103 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.9885, allocations: 322.8 kB / 1.103 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.097e-05/0.9885, allocations: 16 kB / 1.103 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.952e-05/0.9886, allocations: 25.72 kB / 1.103 GB, free: 13.48 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.524e-05/0.9886, allocations: 22 kB / 1.103 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.9886, allocations: 0 / 1.103 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001006/0.9887, allocations: 57.69 kB / 1.103 GB, free: 13.4 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.9887, allocations: 8 kB / 1.103 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.9888, allocations: 0 / 1.103 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.9888, allocations: 7.812 kB / 1.103 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.9889, allocations: 12 kB / 1.103 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.9889, allocations: 4.031 kB / 1.103 GB, free: 13.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.472e-05/0.989, allocations: 23.84 kB / 1.103 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.989, allocations: 0 / 1.103 GB, free: 13.35 MB / 0.7136 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 () * 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.0001005/0.9891, allocations: 108.9 kB / 1.103 GB, free: 13.23 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001099/0.9892, allocations: 61.67 kB / 1.104 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.9893, allocations: 7.906 kB / 1.104 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.604e-05/0.9893, allocations: 8.344 kB / 1.104 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.9893, allocations: 4 kB / 1.104 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.9893, allocations: 5.734 kB / 1.104 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.9893, allocations: 0 / 1.104 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.9895, allocations: 166.2 kB / 1.104 GB, free: 12.94 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.9895, allocations: 4 kB / 1.104 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.108e-05/0.9896, allocations: 15.55 kB / 1.104 GB, free: 12.92 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.9896, allocations: 0 / 1.104 GB, free: 12.92 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.9896, allocations: 0 / 1.104 GB, free: 12.92 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.9897, allocations: 0.75 kB / 1.104 GB, free: 12.92 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.9897, allocations: 0 / 1.104 GB, free: 12.92 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.9898, allocations: 167.3 kB / 1.104 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.766e-05/0.9899, allocations: 92.94 kB / 1.104 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.9899, allocations: 0 / 1.104 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.99, allocations: 15.98 kB / 1.104 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/0.9901, allocations: 7.984 kB / 1.104 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.9901, allocations: 7.25 kB / 1.104 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.415e-05/0.9902, allocations: 101.1 kB / 1.104 GB, free: 12.51 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9902, allocations: 0 / 1.104 GB, free: 12.51 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002127/0.9904, allocations: 8 kB / 1.104 GB, free: 12.5 MB / 0.7136 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) * 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.0004552/0.9909, allocations: 0.6965 MB / 1.105 GB, free: 11.78 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001219/0.991, allocations: 41.3 kB / 1.105 GB, free: 11.74 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.991, allocations: 0 / 1.105 GB, free: 11.74 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.811e-05/0.9911, allocations: 16 kB / 1.105 GB, free: 11.72 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.9913, allocations: 4.609 kB / 1.105 GB, free: 11.72 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004462/0.9917, allocations: 133.2 kB / 1.105 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.9921, allocations: 0.6924 MB / 1.106 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.739e-05/0.9922, allocations: 11.98 kB / 1.106 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.951e-05/0.9922, allocations: 19.38 kB / 1.106 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of SimCode: time 3.21e-07/0.9922, allocations: 0 / 1.106 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/1.016, allocations: 1.367 MB / 1.107 GB, free: 9.492 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/1.016, allocations: 194.4 kB / 1.107 GB, free: 9.289 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/2.632, allocations: 0 / 1.107 GB, free: 9.289 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)