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.285/2.285, allocations: 248.5 MB / 261.1 MB, free: 5.98 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.00148/0.00148, allocations: 190.4 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.2 MB / 0.571 GB, free: 11.85 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.001152/0.001151, allocations: 104.7 kB / 0.6754 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.223e-05/4.245e-05, allocations: 4 kB / 0.7869 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2179, allocations: 106.2 MB / 0.8907 GB, free: 7.484 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9441/1.162, allocations: 134.6 MB / 1.022 GB, free: 348 kB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004731/1.163, allocations: 96.53 kB / 1.022 GB, free: 292 kB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0318/1.194, allocations: 5.304 MB / 1.027 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.623e-06/1.194, allocations: 0 / 1.027 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.871e-05/1.195, allocations: 4 kB / 1.027 GB, free: 11.79 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.0007286/1.195, allocations: 0.489 MB / 1.028 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/1.195, allocations: 20.02 kB / 1.028 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.849e-05/1.195, allocations: 37.56 kB / 1.028 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/1.196, allocations: 39.58 kB / 1.028 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009789/1.197, allocations: 416.9 kB / 1.028 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/1.197, allocations: 0 / 1.028 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/1.197, allocations: 4 kB / 1.028 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/1.197, allocations: 71.61 kB / 1.028 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/1.197, allocations: 3.938 kB / 1.028 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/1.197, allocations: 4 kB / 1.028 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/1.197, allocations: 0 / 1.028 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/1.197, allocations: 42.23 kB / 1.029 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/1.198, allocations: 0.4939 MB / 1.029 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/1.198, allocations: 45.23 kB / 1.029 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.17e-05/1.198, allocations: 27.88 kB / 1.029 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/1.199, allocations: 96 / 1.029 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/1.199, allocations: 34.55 kB / 1.029 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.914e-06/1.199, allocations: 4 kB / 1.029 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.000307/1.199, allocations: 80.25 kB / 1.029 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/1.199, allocations: 51.41 kB / 1.029 GB, free: 9.98 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/1.2, allocations: 0.4887 MB / 1.03 GB, free: 9.594 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/1.2, allocations: 25.7 kB / 1.03 GB, free: 9.562 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/1.2, allocations: 181.2 kB / 1.03 GB, free: 9.438 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/1.2, allocations: 11.02 kB / 1.03 GB, free: 9.43 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/1.2, allocations: 0 / 1.03 GB, free: 9.43 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000196/1.201, allocations: 342.6 kB / 1.03 GB, free: 9.098 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.115e-05/1.201, allocations: 7.688 kB / 1.03 GB, free: 9.094 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.497e-05/1.201, allocations: 11.3 kB / 1.03 GB, free: 9.086 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.239e-05/1.201, allocations: 11.69 kB / 1.03 GB, free: 9.078 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/1.201, allocations: 0 / 1.03 GB, free: 9.078 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000252/1.201, allocations: 83.81 kB / 1.03 GB, free: 8.996 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/1.201, allocations: 14.14 kB / 1.03 GB, free: 8.984 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/1.201, allocations: 0 / 1.03 GB, free: 8.984 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/1.201, allocations: 0 / 1.03 GB, free: 8.984 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/1.201, allocations: 11.98 kB / 1.03 GB, free: 8.973 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/1.201, allocations: 0 / 1.03 GB, free: 8.973 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/1.201, allocations: 4 kB / 1.03 GB, free: 8.969 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/1.201, allocations: 0 / 1.03 GB, free: 8.969 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.534e-05/1.202, allocations: 101 kB / 1.03 GB, free: 8.863 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.085e-05/1.202, allocations: 35.62 kB / 1.03 GB, free: 8.828 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003224/1.202, allocations: 102.2 kB / 1.031 GB, free: 8.734 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/1.202, allocations: 4 kB / 1.031 GB, free: 8.73 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/1.202, allocations: 3.938 kB / 1.031 GB, free: 8.727 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/1.202, allocations: 0 / 1.031 GB, free: 8.727 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000474/1.202, allocations: 301.4 kB / 1.031 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/1.203, allocations: 0 / 1.031 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.369e-05/1.203, allocations: 8.219 kB / 1.031 GB, free: 8.422 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/1.203, allocations: 4 kB / 1.031 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/1.203, allocations: 0 / 1.031 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/1.203, allocations: 7.953 kB / 1.031 GB, free: 8.41 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.203, allocations: 3.938 kB / 1.031 GB, free: 8.406 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/1.203, allocations: 177.8 kB / 1.031 GB, free: 8.227 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002109/1.203, allocations: 136 kB / 1.031 GB, free: 8.086 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/1.203, allocations: 7.25 kB / 1.031 GB, free: 8.082 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/1.203, allocations: 4 kB / 1.031 GB, free: 8.078 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/1.203, allocations: 11.89 kB / 1.031 GB, free: 8.066 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/1.203, allocations: 7.984 kB / 1.031 GB, free: 8.059 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0007724/1.204, allocations: 399.9 kB / 1.032 GB, free: 7.77 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.21e-07/1.204, allocations: 3.938 kB / 1.032 GB, free: 7.766 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000396/1.205, allocations: 35.98 kB / 1.032 GB, free: 7.73 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.001552/1.206, allocations: 0.9152 MB / 1.033 GB, free: 6.902 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001491/1.206, allocations: 22.94 kB / 1.033 GB, free: 6.887 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/1.206, allocations: 0 / 1.033 GB, free: 6.887 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.322e-05/1.207, allocations: 15.8 kB / 1.033 GB, free: 6.875 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/1.207, allocations: 51.8 kB / 1.033 GB, free: 6.84 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/1.208, allocations: 493.3 kB / 1.033 GB, free: 6.395 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005561/1.209, allocations: 0.7882 MB / 1.034 GB, free: 5.598 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000235/1.209, allocations: 50.25 kB / 1.034 GB, free: 5.547 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/1.21, allocations: 88.14 kB / 1.034 GB, free: 5.516 MB / 0.6511 GB Notification: Performance of SimCode: time 1.113e-06/1.21, allocations: 0 / 1.034 GB, free: 5.516 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/1.238, allocations: 5.498 MB / 1.039 GB, free: 212 kB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003842/1.238, allocations: 223.1 kB / 1.04 GB, free: 15.98 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.566/3.805, allocations: 6.188 kB / 1.04 GB, free: 15.98 MB / 0.6667 GB