Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.23/2.23, allocations: 248.7 MB / 256.2 MB, free: 7.07 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.00151/0.001509, allocations: 182.3 kB / 315.4 MB, free: 3.984 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.067/2.067, allocations: 205.3 MB / 0.5662 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 86.53 kB / 0.6704 GB, free: 5.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.018e-05/2.027e-05, allocations: 4 kB / 0.7804 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2141, allocations: 106.2 MB / 0.8841 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8987/1.113, allocations: 134.9 MB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003624/1.113, allocations: 95.31 kB / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.022/1.135, allocations: 5.247 MB / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.013e-06/1.135, allocations: 0 / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.24e-05/1.135, allocations: 7.984 kB / 1.021 GB, free: 15.82 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.000697/1.136, allocations: 499.6 kB / 1.022 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/1.136, allocations: 11.97 kB / 1.022 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.547e-05/1.136, allocations: 35.56 kB / 1.022 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009312/1.137, allocations: 423.2 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/1.137, allocations: 0 / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/1.137, allocations: 8 kB / 1.022 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001291/1.137, allocations: 32.36 kB / 1.022 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/1.138, allocations: 61 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/1.138, allocations: 0 / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/1.138, allocations: 7.922 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/1.138, allocations: 0 / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008961/1.139, allocations: 479.1 kB / 1.023 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/1.139, allocations: 41.83 kB / 1.023 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.133e-05/1.139, allocations: 12.61 kB / 1.023 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/1.139, allocations: 8.062 kB / 1.023 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/1.139, allocations: 42.14 kB / 1.023 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 2.024e-06/1.139, allocations: 0 / 1.023 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0002656/1.139, allocations: 76.94 kB / 1.023 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/1.139, allocations: 51.52 kB / 1.023 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009107/1.14, allocations: 490.3 kB / 1.023 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/1.14, allocations: 25.7 kB / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/1.14, allocations: 176.9 kB / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/1.14, allocations: 3.906 kB / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/1.14, allocations: 0 / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001963/1.141, allocations: 345.2 kB / 1.024 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.434e-05/1.141, allocations: 19.48 kB / 1.024 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.365e-05/1.141, allocations: 7.5 kB / 1.024 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.38e-05/1.141, allocations: 4 kB / 1.024 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/1.141, allocations: 0 / 1.024 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002911/1.141, allocations: 84.31 kB / 1.024 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/1.141, allocations: 4 kB / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/1.141, allocations: 0 / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/1.141, allocations: 3.953 kB / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/1.141, allocations: 11.98 kB / 1.024 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/1.141, allocations: 0 / 1.024 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/1.142, allocations: 8 kB / 1.024 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/1.142, allocations: 0 / 1.024 GB, free: 13.12 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 9.174e-05/1.142, allocations: 105 kB / 1.024 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001938/1.142, allocations: 79.81 kB / 1.024 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.813e-05/1.142, allocations: 39.56 kB / 1.024 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002723/1.142, allocations: 86.3 kB / 1.024 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/1.142, allocations: 0 / 1.024 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/1.142, allocations: 0 / 1.024 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/1.142, allocations: 12.02 kB / 1.024 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003817/1.143, allocations: 283.6 kB / 1.024 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.143, allocations: 0 / 1.024 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.866e-05/1.143, allocations: 4 kB / 1.024 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/1.143, allocations: 4 kB / 1.024 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/1.143, allocations: 0 / 1.024 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.207e-06/1.143, allocations: 11.88 kB / 1.024 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.143, allocations: 0 / 1.024 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/1.143, allocations: 181.1 kB / 1.025 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001924/1.143, allocations: 128.8 kB / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/1.144, allocations: 3.984 kB / 1.025 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/1.144, allocations: 4 kB / 1.025 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.394e-05/1.144, allocations: 11.89 kB / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/1.144, allocations: 0 / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0006692/1.144, allocations: 385.7 kB / 1.025 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.61e-07/1.144, allocations: 0 / 1.025 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004153/1.145, allocations: 39.78 kB / 1.025 GB, free: 11.87 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.00135/1.146, allocations: 0.9024 MB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001329/1.146, allocations: 22.23 kB / 1.026 GB, free: 11 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/1.146, allocations: 0 / 1.026 GB, free: 11 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.104e-05/1.146, allocations: 11.06 kB / 1.026 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004665/1.147, allocations: 43.61 kB / 1.026 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/1.148, allocations: 491.2 kB / 1.027 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/1.149, allocations: 0.7903 MB / 1.027 GB, free: 9.715 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000208/1.149, allocations: 61.27 kB / 1.027 GB, free: 9.656 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/1.149, allocations: 85.91 kB / 1.028 GB, free: 9.625 MB / 0.6511 GB Notification: Performance of SimCode: time 9.32e-07/1.149, allocations: 4 kB / 1.028 GB, free: 9.621 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04899/1.198, allocations: 4.781 MB / 1.032 GB, free: 4.875 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003777/1.199, allocations: 213 kB / 1.032 GB, free: 4.582 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.501/3.7, allocations: 2.031 kB / 1.032 GB, free: 4.582 MB / 0.6511 GB