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.427/1.427, allocations: 249.5 MB / 257 MB, free: 6.992 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.001064/0.001064, allocations: 180.9 kB / 316.3 MB, free: 3.246 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.565/1.565, allocations: 205.3 MB / 0.5671 GB, free: 15.81 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.0008281/0.000828, allocations: 100.2 kB / 0.6714 GB, free: 4.918 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.688e-05/1.659e-05, allocations: 0 / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2033, allocations: 106.3 MB / 0.8853 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7308/0.9341, allocations: 135.1 MB / 1.017 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.9344, allocations: 90.31 kB / 1.017 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01274/0.9472, allocations: 5.23 MB / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.323e-06/0.9472, allocations: 0 / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.419e-05/0.9472, allocations: 8 kB / 1.022 GB, free: 14.04 MB / 0.6511 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.0004833/0.9477, allocations: 0.493 MB / 1.023 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.9478, allocations: 8.031 kB / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.6e-05/0.9478, allocations: 31.62 kB / 1.023 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005795/0.9484, allocations: 428.6 kB / 1.023 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-06/0.9485, allocations: 0 / 1.023 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.9485, allocations: 4 kB / 1.023 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.62e-05/0.9486, allocations: 35.44 kB / 1.023 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.9487, allocations: 65.11 kB / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.9487, allocations: 0 / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.9487, allocations: 0 / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.9488, allocations: 4 kB / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006067/0.9494, allocations: 477.5 kB / 1.024 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 8.859e-05/0.9495, allocations: 42.97 kB / 1.024 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.697e-05/0.9495, allocations: 12.8 kB / 1.024 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.9495, allocations: 11.97 kB / 1.024 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.9496, allocations: 30.66 kB / 1.024 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.9496, allocations: 0 / 1.024 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0001896/0.9498, allocations: 85.08 kB / 1.024 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.9498, allocations: 55.39 kB / 1.024 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005182/0.9503, allocations: 492.9 kB / 1.025 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.9504, allocations: 25.7 kB / 1.025 GB, free: 11.92 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.9505, allocations: 171.4 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.9505, allocations: 11.89 kB / 1.025 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.9505, allocations: 112 / 1.025 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.9507, allocations: 344.5 kB / 1.025 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.942e-05/0.9507, allocations: 7.125 kB / 1.025 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.407e-05/0.9507, allocations: 7.438 kB / 1.025 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.859e-05/0.9507, allocations: 19.61 kB / 1.025 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.9508, allocations: 0 / 1.025 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00011/0.9509, allocations: 76.69 kB / 1.025 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.9509, allocations: 6.188 kB / 1.025 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.9509, allocations: 4 kB / 1.025 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.9509, allocations: 0 / 1.025 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.912e-05/0.951, allocations: 11.92 kB / 1.025 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.951, allocations: 7.953 kB / 1.025 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.509e-05/0.9511, allocations: 3.906 kB / 1.025 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.9511, allocations: 4 kB / 1.025 GB, free: 11.33 MB / 0.6511 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 () * 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 6.564e-05/0.9512, allocations: 105 kB / 1.025 GB, free: 11.22 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001248/0.9513, allocations: 73.22 kB / 1.025 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.052e-05/0.9514, allocations: 27.62 kB / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001565/0.9515, allocations: 99.12 kB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.9515, allocations: 4 kB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.9516, allocations: 0 / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.9516, allocations: 0 / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.9518, allocations: 280.4 kB / 1.026 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.9518, allocations: 4 kB / 1.026 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.039e-05/0.9519, allocations: 12 kB / 1.026 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.9519, allocations: 0 / 1.026 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.9519, allocations: 0 / 1.026 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.9519, allocations: 0 / 1.026 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.9519, allocations: 3.953 kB / 1.026 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.9521, allocations: 178.3 kB / 1.026 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.9522, allocations: 135.1 kB / 1.026 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.9523, allocations: 8 kB / 1.026 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.219e-05/0.9524, allocations: 3.984 kB / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.255e-05/0.9524, allocations: 4.328 kB / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.9524, allocations: 3.953 kB / 1.026 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003891/0.9528, allocations: 386.5 kB / 1.027 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.322e-06/0.9528, allocations: 0 / 1.027 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002612/0.9531, allocations: 39.88 kB / 1.027 GB, free: 10.08 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: 0 () * Number of discrete 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.000973/0.9541, allocations: 0.9094 MB / 1.027 GB, free: 9.227 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 8.638e-05/0.9542, allocations: 22.67 kB / 1.028 GB, free: 9.211 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.9542, allocations: 0 / 1.028 GB, free: 9.211 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.47e-05/0.9542, allocations: 15.19 kB / 1.028 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.9545, allocations: 36.98 kB / 1.028 GB, free: 9.176 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008534/0.9554, allocations: 479.8 kB / 1.028 GB, free: 8.738 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.9557, allocations: 0.7919 MB / 1.029 GB, free: 7.938 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000112/0.9558, allocations: 57.34 kB / 1.029 GB, free: 7.883 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.956, allocations: 85.78 kB / 1.029 GB, free: 7.852 MB / 0.6511 GB Notification: Performance of SimCode: time 2.81e-07/0.956, allocations: 0 / 1.029 GB, free: 7.852 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.9783, allocations: 4.788 MB / 1.034 GB, free: 3.082 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/0.9786, allocations: 221.2 kB / 1.034 GB, free: 2.789 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.902, allocations: 5.094 kB / 1.034 GB, free: 2.789 MB / 0.6511 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)