Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.409/1.409, allocations: 249.5 MB / 257 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 172.9 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008553/0.0008553, allocations: 93.59 kB / 0.6714 GB, free: 4.996 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.121e-05/2.123e-05, allocations: 7.984 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1982, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.722/0.9202, allocations: 133.4 MB / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.9205, allocations: 95.05 kB / 1.016 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004083/0.9246, allocations: 1.491 MB / 1.017 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9246, allocations: 0 / 1.017 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.9247, allocations: 7.938 kB / 1.017 GB, free: 2.746 MB / 0.6355 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.0004151/0.9251, allocations: 377.7 kB / 1.017 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.9251, allocations: 8.031 kB / 1.018 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.361e-05/0.9252, allocations: 9.469 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.9253, allocations: 174.8 kB / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.9254, allocations: 8 kB / 1.018 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.9254, allocations: 4 kB / 1.018 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.292e-05/0.9255, allocations: 29.98 kB / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001386/0.9256, allocations: 75.27 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.9256, allocations: 0 / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.9257, allocations: 0 / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.9257, allocations: 0 / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004571/0.9261, allocations: 298.8 kB / 1.018 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.219e-05/0.9262, allocations: 49.16 kB / 1.018 GB, free: 1.656 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.325e-05/0.9263, allocations: 12.48 kB / 1.018 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.9263, allocations: 4 kB / 1.018 GB, free: 1.641 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.9263, allocations: 37.62 kB / 1.018 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.9263, allocations: 2.734 kB / 1.018 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001726/0.9265, allocations: 60.38 kB / 1.018 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.9266, allocations: 84.05 kB / 1.018 GB, free: 1.441 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.854e-05/0.9267, allocations: 114.2 kB / 1.018 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.9267, allocations: 25.7 kB / 1.018 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.381e-05/0.9268, allocations: 110.1 kB / 1.019 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.9268, allocations: 3.906 kB / 1.019 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.382e-06/0.9268, allocations: 4 kB / 1.019 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.9269, allocations: 326.5 kB / 1.019 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.931e-05/0.9269, allocations: 14.75 kB / 1.019 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.557e-05/0.927, allocations: 25.16 kB / 1.019 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.251e-05/0.927, allocations: 17.52 kB / 1.019 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.927, allocations: 4 kB / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001046/0.9271, allocations: 64.16 kB / 1.019 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.9272, allocations: 4 kB / 1.019 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.9272, allocations: 8.016 kB / 1.019 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.9272, allocations: 0 / 1.019 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.9273, allocations: 12 kB / 1.019 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.9273, allocations: 3.953 kB / 1.019 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.216e-05/0.9274, allocations: 15.98 kB / 1.019 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-06/0.9274, allocations: 3.938 kB / 1.019 GB, free: 0.7148 MB / 0.6355 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 7.577e-05/0.9275, allocations: 116.4 kB / 1.019 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001074/0.9276, allocations: 60.41 kB / 1.019 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.63e-05/0.9277, allocations: 7.906 kB / 1.019 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.343e-05/0.9277, allocations: 7.844 kB / 1.019 GB, free: 0.5195 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.9277, allocations: 15.89 kB / 1.019 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.9277, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.9277, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.9279, allocations: 163.5 kB / 1.019 GB, free: 328 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9279, allocations: 0 / 1.019 GB, free: 328 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.338e-05/0.928, allocations: 11.98 kB / 1.019 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.928, allocations: 4 kB / 1.019 GB, free: 312 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.928, allocations: 4 kB / 1.019 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.928, allocations: 0 / 1.019 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.928, allocations: 0 / 1.019 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001351/0.9282, allocations: 161.5 kB / 1.02 GB, free: 140 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.9282, allocations: 88.94 kB / 1.02 GB, free: 32 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.9282, allocations: 4 kB / 1.02 GB, free: 28 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.9283, allocations: 15.98 kB / 1.02 GB, free: 12 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.181e-05/0.9284, allocations: 11.36 kB / 1.02 GB, free: 4 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.9284, allocations: 0 / 1.02 GB, free: 4 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.491e-05/0.9285, allocations: 102.2 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9285, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002334/0.9287, allocations: 12 kB / 1.02 GB, free: 15.9 MB / 0.6511 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.0004409/0.9292, allocations: 0.6953 MB / 1.02 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000107/0.9293, allocations: 33.38 kB / 1.02 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.9293, allocations: 0 / 1.02 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.29e-05/0.9293, allocations: 11.5 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001687/0.9295, allocations: 7.25 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000408/0.9299, allocations: 134.3 kB / 1.021 GB, free: 15 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.9302, allocations: 0.6963 MB / 1.021 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.807e-05/0.9303, allocations: 8.219 kB / 1.021 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.9303, allocations: 33.11 kB / 1.021 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of SimCode: time 2.6e-07/0.9303, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01846/0.9488, allocations: 1.367 MB / 1.023 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/0.9491, allocations: 180.1 kB / 1.023 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.528/2.478, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)