Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.406/2.406, allocations: 284.9 MB / 292.4 MB, free: 10.61 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.001433/0.001433, allocations: 180.8 kB / 360.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.069/2.069, allocations: 205.3 MB / 0.6191 GB, free: 12.24 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.001093/0.001093, allocations: 94.78 kB / 0.7321 GB, free: 44.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.438e-05, allocations: 4 kB / 0.8509 GB, free: 3.379 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8202/0.8202, allocations: 115.3 MB / 0.9634 GB, free: 78.36 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2745/1.095, allocations: 140.2 MB / 1.1 GB, free: 252 kB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003704/1.095, allocations: 100.8 kB / 1.1 GB, free: 156 kB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02268/1.118, allocations: 5.219 MB / 1.106 GB, free: 11 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.403e-06/1.118, allocations: 0 / 1.106 GB, free: 11 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.483e-05/1.118, allocations: 8.938 kB / 1.106 GB, free: 11 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007466/1.119, allocations: 0.4983 MB / 1.106 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/1.119, allocations: 8.562 kB / 1.106 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/1.119, allocations: 37.89 kB / 1.106 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009697/1.12, allocations: 415.8 kB / 1.107 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/1.12, allocations: 0 / 1.107 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/1.12, allocations: 4.875 kB / 1.107 GB, free: 9.961 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000153/1.12, allocations: 39.92 kB / 1.107 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/1.12, allocations: 64.58 kB / 1.107 GB, free: 9.855 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/1.12, allocations: 0 / 1.107 GB, free: 9.855 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/1.12, allocations: 0 / 1.107 GB, free: 9.855 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/1.12, allocations: 4 kB / 1.107 GB, free: 9.852 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/1.121, allocations: 482 kB / 1.107 GB, free: 9.344 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/1.122, allocations: 40.28 kB / 1.107 GB, free: 9.297 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/1.122, allocations: 8.922 kB / 1.107 GB, free: 9.285 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/1.122, allocations: 12 kB / 1.107 GB, free: 9.273 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/1.122, allocations: 33.42 kB / 1.107 GB, free: 9.234 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.844e-06/1.122, allocations: 3.938 kB / 1.107 GB, free: 9.23 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0002619/1.122, allocations: 81.3 kB / 1.107 GB, free: 9.145 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/1.122, allocations: 51.41 kB / 1.107 GB, free: 9.082 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009319/1.123, allocations: 494.3 kB / 1.108 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/1.123, allocations: 25.7 kB / 1.108 GB, free: 8.562 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/1.123, allocations: 169.5 kB / 1.108 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/1.123, allocations: 23.8 kB / 1.108 GB, free: 8.371 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-06/1.123, allocations: 0 / 1.108 GB, free: 8.371 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001794/1.123, allocations: 339 kB / 1.108 GB, free: 8.031 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.255e-05/1.124, allocations: 8 kB / 1.108 GB, free: 8.023 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.774e-05/1.124, allocations: 4 kB / 1.108 GB, free: 8.02 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.945e-05/1.124, allocations: 15.98 kB / 1.108 GB, free: 8.004 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/1.124, allocations: 0 / 1.108 GB, free: 8.004 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001969/1.124, allocations: 77.31 kB / 1.108 GB, free: 7.922 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/1.124, allocations: 8 kB / 1.108 GB, free: 7.914 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/1.124, allocations: 0 / 1.108 GB, free: 7.914 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/1.124, allocations: 4 kB / 1.108 GB, free: 7.91 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/1.124, allocations: 11.92 kB / 1.108 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/1.124, allocations: 7.953 kB / 1.108 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/1.124, allocations: 0 / 1.108 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/1.124, allocations: 4 kB / 1.108 GB, free: 7.887 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: 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 8.847e-05/1.124, allocations: 104.8 kB / 1.109 GB, free: 7.777 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00019/1.125, allocations: 80.41 kB / 1.109 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.247e-05/1.125, allocations: 27.62 kB / 1.109 GB, free: 7.668 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002665/1.125, allocations: 100.4 kB / 1.109 GB, free: 7.559 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/1.125, allocations: 4 kB / 1.109 GB, free: 7.555 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/1.125, allocations: 0 / 1.109 GB, free: 7.555 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/1.125, allocations: 0 / 1.109 GB, free: 7.555 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004113/1.125, allocations: 278 kB / 1.109 GB, free: 7.246 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/1.125, allocations: 0 / 1.109 GB, free: 7.246 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.87e-05/1.126, allocations: 11.98 kB / 1.109 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/1.126, allocations: 288 / 1.109 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/1.126, allocations: 0.5625 kB / 1.109 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/1.126, allocations: 4 kB / 1.109 GB, free: 7.23 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/1.126, allocations: 3.953 kB / 1.109 GB, free: 7.227 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/1.126, allocations: 183.1 kB / 1.109 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/1.126, allocations: 140.6 kB / 1.109 GB, free: 6.875 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.926e-05/1.126, allocations: 2.562 kB / 1.109 GB, free: 6.875 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/1.126, allocations: 4 kB / 1.109 GB, free: 6.871 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.352e-05/1.126, allocations: 3.984 kB / 1.109 GB, free: 6.867 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/1.126, allocations: 7.953 kB / 1.109 GB, free: 6.859 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0007053/1.127, allocations: 392.5 kB / 1.11 GB, free: 6.48 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.31e-07/1.127, allocations: 0 / 1.11 GB, free: 6.48 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003963/1.128, allocations: 32 kB / 1.11 GB, free: 6.449 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: 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.001423/1.129, allocations: 0.9037 MB / 1.111 GB, free: 5.645 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001279/1.129, allocations: 23.98 kB / 1.111 GB, free: 5.621 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/1.129, allocations: 3.938 kB / 1.111 GB, free: 5.617 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.1e-05/1.129, allocations: 12 kB / 1.111 GB, free: 5.605 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00046/1.13, allocations: 39.44 kB / 1.111 GB, free: 5.566 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/1.131, allocations: 482.2 kB / 1.111 GB, free: 5.062 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/1.132, allocations: 0.7867 MB / 1.112 GB, free: 4.25 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0002118/1.132, allocations: 52.31 kB / 1.112 GB, free: 4.199 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/1.132, allocations: 87.41 kB / 1.112 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of SimCode: time 9.52e-07/1.132, allocations: 0 / 1.112 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0508/1.183, allocations: 4.785 MB / 1.117 GB, free: 15.47 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003948/1.183, allocations: 213.3 kB / 1.117 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.761/3.944, allocations: 0 / 1.117 GB, free: 15.18 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)