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.LinearPiecewiseTwo.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.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.615/1.615, allocations: 251.9 MB / 266.8 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001398/0.001398, allocations: 189 kB / 326.5 MB, free: 2.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.513/2.513, allocations: 205.4 MB / 0.5775 GB, free: 20.56 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.001038/0.001038, allocations: 88.36 kB / 0.6821 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004265/0.0004265, allocations: 12.06 kB / 0.7963 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2755, allocations: 106.3 MB / 0.9002 GB, free: 64.37 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1887/0.4642, allocations: 134.9 MB / 1.032 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.4645, allocations: 107.9 kB / 1.032 GB, free: 9.23 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01365/0.4782, allocations: 5.324 MB / 1.037 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4783, allocations: 0 / 1.037 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.16e-05/0.4783, allocations: 8 kB / 1.037 GB, free: 3.891 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000818/0.4791, allocations: 0.576 MB / 1.038 GB, free: 3.266 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.056e-05/0.4792, allocations: 15.97 kB / 1.038 GB, free: 3.25 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.867e-05/0.4793, allocations: 38.55 kB / 1.038 GB, free: 3.203 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.416e-05/0.4793, allocations: 35.53 kB / 1.038 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006925/0.48, allocations: 425.3 kB / 1.038 GB, free: 2.715 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.4801, allocations: 4 kB / 1.038 GB, free: 2.711 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.4801, allocations: 4 kB / 1.038 GB, free: 2.707 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.4803, allocations: 81.59 kB / 1.038 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.4803, allocations: 0 / 1.038 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.4803, allocations: 4 kB / 1.038 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4803, allocations: 0 / 1.038 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.4804, allocations: 51.97 kB / 1.038 GB, free: 2.566 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007917/0.4812, allocations: 0.4926 MB / 1.039 GB, free: 2.023 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.4814, allocations: 54.55 kB / 1.039 GB, free: 1.961 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.4814, allocations: 0 / 1.039 GB, free: 1.961 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.4815, allocations: 34.52 kB / 1.039 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.4815, allocations: 0 / 1.039 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0003326/0.4818, allocations: 105.4 kB / 1.039 GB, free: 1.809 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.4819, allocations: 59.34 kB / 1.039 GB, free: 1.738 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006473/0.4825, allocations: 0.5085 MB / 1.04 GB, free: 1.223 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.4825, allocations: 25.7 kB / 1.04 GB, free: 1.191 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.4827, allocations: 172 kB / 1.04 GB, free: 1.02 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.4827, allocations: 19.73 kB / 1.04 GB, free: 1 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-06/0.4827, allocations: 0 / 1.04 GB, free: 1 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.4829, allocations: 338.8 kB / 1.04 GB, free: 0.6602 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.061e-05/0.483, allocations: 15.98 kB / 1.04 GB, free: 0.6445 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.911e-05/0.483, allocations: 23.98 kB / 1.04 GB, free: 0.6211 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.044e-05/0.4831, allocations: 12 kB / 1.04 GB, free: 0.6094 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4831, allocations: 0 / 1.04 GB, free: 0.6094 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001742/0.4833, allocations: 93.52 kB / 1.04 GB, free: 0.5117 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.4833, allocations: 4 kB / 1.04 GB, free: 0.5078 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.4833, allocations: 4 kB / 1.04 GB, free: 0.5039 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.4833, allocations: 3.953 kB / 1.04 GB, free: 0.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.174e-05/0.4834, allocations: 12.03 kB / 1.04 GB, free: 500 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.4835, allocations: 0 / 1.04 GB, free: 500 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.563e-05/0.4835, allocations: 11.98 kB / 1.04 GB, free: 488 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.976e-06/0.4836, allocations: 4 kB / 1.04 GB, free: 484 kB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001782/0.4837, allocations: 173.8 kB / 1.04 GB, free: 300 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.276e-05/0.4838, allocations: 35.61 kB / 1.04 GB, free: 264 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002485/0.4841, allocations: 104.1 kB / 1.041 GB, free: 144 kB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.4841, allocations: 7.953 kB / 1.041 GB, free: 136 kB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.4841, allocations: 0 / 1.041 GB, free: 136 kB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.4841, allocations: 0 / 1.041 GB, free: 136 kB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/0.4845, allocations: 305.5 kB / 1.041 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4845, allocations: 0 / 1.041 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.008e-05/0.4846, allocations: 8 kB / 1.041 GB, free: 15.78 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4846, allocations: 0 / 1.041 GB, free: 15.78 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.4846, allocations: 3.984 kB / 1.041 GB, free: 15.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.169e-05/0.4846, allocations: 8.109 kB / 1.041 GB, free: 15.77 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4846, allocations: 7.891 kB / 1.041 GB, free: 15.76 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.4849, allocations: 183.2 kB / 1.041 GB, free: 15.56 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.4851, allocations: 136.7 kB / 1.041 GB, free: 15.41 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.4851, allocations: 0 / 1.041 GB, free: 15.41 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.889e-05/0.4852, allocations: 11.92 kB / 1.041 GB, free: 15.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.4852, allocations: 4 kB / 1.041 GB, free: 15.39 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.4853, allocations: 3.953 kB / 1.041 GB, free: 15.39 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004862/0.4857, allocations: 407.1 kB / 1.042 GB, free: 15 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4858, allocations: 0 / 1.042 GB, free: 15 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002885/0.486, allocations: 35.94 kB / 1.042 GB, free: 14.96 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.001355/0.4874, allocations: 0.9712 MB / 1.043 GB, free: 14.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000153/0.4876, allocations: 47.89 kB / 1.043 GB, free: 14.05 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4876, allocations: 0 / 1.043 GB, free: 14.05 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 5.213e-05/0.4876, allocations: 19.98 kB / 1.043 GB, free: 14.03 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.488, allocations: 39.58 kB / 1.043 GB, free: 13.99 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.4907, allocations: 1.903 MB / 1.045 GB, free: 12.03 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004407/0.4912, allocations: 0.7872 MB / 1.045 GB, free: 11.22 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001286/0.4913, allocations: 57.92 kB / 1.045 GB, free: 11.16 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.4915, allocations: 87.39 kB / 1.045 GB, free: 11.08 MB / 0.698 GB Notification: Performance of SimCode: time 5.31e-07/0.4915, allocations: 0 / 1.045 GB, free: 11.08 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.5094, allocations: 5.647 MB / 1.051 GB, free: 5.613 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/0.5097, allocations: 258.9 kB / 1.051 GB, free: 5.258 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.174/2.684, allocations: 0 / 1.051 GB, free: 5.258 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)