Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.875/1.875, allocations: 289.9 MB / 297.4 MB, free: 6.371 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.001171/0.00117, allocations: 172.8 kB / 366.7 MB, free: 1.684 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.918/1.918, allocations: 205.3 MB / 0.626 GB, free: 7.141 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.0009756/0.0009759, allocations: 84.33 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.143e-05/2.143e-05, allocations: 4 kB / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8186/0.8186, allocations: 116.3 MB / 0.9733 GB, free: 76.3 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2148/1.034, allocations: 141.4 MB / 1.111 GB, free: 8.684 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003348/1.034, allocations: 93.41 kB / 1.112 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01378/1.048, allocations: 5.23 MB / 1.117 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.856e-06/1.048, allocations: 0 / 1.117 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.793e-05/1.048, allocations: 8.844 kB / 1.117 GB, free: 3.41 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.0005849/1.048, allocations: 0.4915 MB / 1.117 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/1.048, allocations: 12.03 kB / 1.117 GB, free: 2.863 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/1.049, allocations: 31.53 kB / 1.117 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006601/1.049, allocations: 425 kB / 1.118 GB, free: 2.379 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/1.049, allocations: 0 / 1.118 GB, free: 2.379 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/1.049, allocations: 7.562 kB / 1.118 GB, free: 2.375 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.717e-05/1.049, allocations: 35.94 kB / 1.118 GB, free: 2.344 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/1.05, allocations: 60.3 kB / 1.118 GB, free: 2.281 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/1.05, allocations: 0 / 1.118 GB, free: 2.281 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/1.05, allocations: 4 kB / 1.118 GB, free: 2.277 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/1.05, allocations: 0 / 1.118 GB, free: 2.277 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006211/1.05, allocations: 483.4 kB / 1.118 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.402e-05/1.05, allocations: 42.5 kB / 1.118 GB, free: 1.719 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.167e-05/1.05, allocations: 17.8 kB / 1.118 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/1.05, allocations: 4.797 kB / 1.118 GB, free: 1.695 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/1.05, allocations: 36.55 kB / 1.118 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/1.05, allocations: 0 / 1.118 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001896/1.051, allocations: 81.27 kB / 1.118 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/1.051, allocations: 51.41 kB / 1.118 GB, free: 1.504 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005544/1.051, allocations: 490.3 kB / 1.119 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/1.051, allocations: 25.7 kB / 1.119 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/1.051, allocations: 175.9 kB / 1.119 GB, free: 0.8086 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/1.051, allocations: 11.81 kB / 1.119 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-06/1.051, allocations: 0 / 1.119 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001279/1.052, allocations: 339 kB / 1.119 GB, free: 468 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.238e-05/1.052, allocations: 8 kB / 1.119 GB, free: 460 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.692e-05/1.052, allocations: 23.95 kB / 1.119 GB, free: 436 kB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.514e-05/1.052, allocations: 8 kB / 1.119 GB, free: 428 kB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.052, allocations: 4 kB / 1.119 GB, free: 424 kB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001172/1.052, allocations: 73.31 kB / 1.119 GB, free: 344 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/1.052, allocations: 8 kB / 1.119 GB, free: 336 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/1.052, allocations: 0 / 1.119 GB, free: 336 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/1.052, allocations: 0 / 1.119 GB, free: 336 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.064e-05/1.052, allocations: 11.98 kB / 1.119 GB, free: 324 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/1.052, allocations: 0 / 1.119 GB, free: 324 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.892e-05/1.052, allocations: 7.953 kB / 1.119 GB, free: 316 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-06/1.052, allocations: 0 / 1.119 GB, free: 316 kB / 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.044e-05/1.052, allocations: 105 kB / 1.12 GB, free: 204 kB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001262/1.052, allocations: 85.25 kB / 1.12 GB, free: 112 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.259e-05/1.052, allocations: 27.62 kB / 1.12 GB, free: 84 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000181/1.052, allocations: 88.52 kB / 1.12 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.052, allocations: 3.953 kB / 1.12 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/1.052, allocations: 0 / 1.12 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/1.052, allocations: 3.75 kB / 1.12 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/1.053, allocations: 278 kB / 1.12 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/1.053, allocations: 0 / 1.12 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.552e-05/1.053, allocations: 16 kB / 1.12 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/1.053, allocations: 112 / 1.12 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/1.053, allocations: 3.938 kB / 1.12 GB, free: 15.65 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/1.053, allocations: 0 / 1.12 GB, free: 15.65 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/1.053, allocations: 7.938 kB / 1.12 GB, free: 15.64 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001603/1.053, allocations: 179.1 kB / 1.12 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/1.053, allocations: 136.7 kB / 1.12 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.344e-05/1.053, allocations: 0 / 1.12 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.543e-05/1.053, allocations: 11.98 kB / 1.12 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/1.053, allocations: 2.562 kB / 1.12 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/1.053, allocations: 0 / 1.12 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0004094/1.054, allocations: 388.5 kB / 1.121 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/1.054, allocations: 0 / 1.121 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002725/1.054, allocations: 35.95 kB / 1.121 GB, free: 14.88 MB / 0.7292 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.001031/1.055, allocations: 0.9142 MB / 1.122 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 8.926e-05/1.055, allocations: 27.98 kB / 1.122 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/1.055, allocations: 0 / 1.122 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.206e-05/1.055, allocations: 8 kB / 1.122 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/1.056, allocations: 37.33 kB / 1.122 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008187/1.056, allocations: 486.3 kB / 1.122 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/1.057, allocations: 0.7946 MB / 1.123 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001173/1.057, allocations: 53.8 kB / 1.123 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/1.057, allocations: 83.41 kB / 1.123 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of SimCode: time 2.4e-07/1.057, allocations: 0 / 1.123 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02571/1.083, allocations: 4.788 MB / 1.128 GB, free: 7.859 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/1.083, allocations: 208.7 kB / 1.128 GB, free: 7.582 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/3.237, allocations: 0 / 1.128 GB, free: 7.582 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)