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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006725/0.0006726, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003943/0.003944, allocations: 169.9 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.143/1.143, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.341/1.341, allocations: 252 MB / 0.5105 GB, free: 4.645 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000432/0.000432, allocations: 15.98 kB / 0.6249 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3591, allocations: 106.3 MB / 0.7287 GB, free: 11.43 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001871/0.361, allocations: 1.488 MB / 0.7302 GB, free: 9.926 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001184/0.3623, allocations: 0.8506 MB / 0.731 GB, free: 9.066 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.864e-05/0.3624, allocations: 0 / 0.731 GB, free: 9.066 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0004332/0.3628, allocations: 170.5 kB / 0.7312 GB, free: 8.902 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003174/0.3631, allocations: 155.3 kB / 0.7313 GB, free: 8.754 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.3635, allocations: 177.4 kB / 0.7315 GB, free: 8.582 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000251/0.3637, allocations: 219.5 kB / 0.7317 GB, free: 8.367 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.3639, allocations: 47.77 kB / 0.7317 GB, free: 8.324 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.364, allocations: 87.61 kB / 0.7318 GB, free: 8.238 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.3642, allocations: 131.5 kB / 0.732 GB, free: 8.109 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.3642, allocations: 8 kB / 0.732 GB, free: 8.102 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.404e-05/0.3643, allocations: 31.94 kB / 0.732 GB, free: 8.07 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.851e-05/0.3644, allocations: 67.81 kB / 0.7321 GB, free: 8.004 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.3645, allocations: 124.9 kB / 0.7322 GB, free: 7.875 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002915/0.3648, allocations: 338.8 kB / 0.7325 GB, free: 7.543 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3648, allocations: 3.938 kB / 0.7325 GB, free: 7.539 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.156e-06/0.3648, allocations: 0 / 0.7325 GB, free: 7.539 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.992e-06/0.3648, allocations: 3.938 kB / 0.7325 GB, free: 7.535 MB / 0.545 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.0006505/0.3655, allocations: 0.5527 MB / 0.733 GB, free: 6.934 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.3655, allocations: 8.031 kB / 0.7331 GB, free: 6.926 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.365e-05/0.3656, allocations: 32.56 kB / 0.7331 GB, free: 6.895 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004553/0.3661, allocations: 418.2 kB / 0.7335 GB, free: 6.445 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3661, allocations: 4.375 kB / 0.7335 GB, free: 6.441 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.3661, allocations: 12.06 kB / 0.7335 GB, free: 6.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001496/0.3662, allocations: 77.61 kB / 0.7336 GB, free: 6.348 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-06/0.3663, allocations: 4 kB / 0.7336 GB, free: 6.344 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.3663, allocations: 0 / 0.7336 GB, free: 6.344 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3663, allocations: 4 kB / 0.7336 GB, free: 6.34 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.3664, allocations: 51.97 kB / 0.7336 GB, free: 6.289 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005477/0.367, allocations: 484.5 kB / 0.7341 GB, free: 5.766 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.3671, allocations: 42.62 kB / 0.7341 GB, free: 5.715 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.439e-05/0.3672, allocations: 28.84 kB / 0.7342 GB, free: 5.684 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.3672, allocations: 3.984 kB / 0.7342 GB, free: 5.68 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.3672, allocations: 34.5 kB / 0.7342 GB, free: 5.637 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.3672, allocations: 8 kB / 0.7342 GB, free: 5.629 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002777/0.3675, allocations: 109.2 kB / 0.7343 GB, free: 5.516 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.3675, allocations: 55.41 kB / 0.7344 GB, free: 5.449 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000585/0.3681, allocations: 0.5446 MB / 0.7349 GB, free: 4.898 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.3682, allocations: 29.7 kB / 0.7349 GB, free: 4.863 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.3683, allocations: 175.9 kB / 0.7351 GB, free: 4.688 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.3683, allocations: 11.81 kB / 0.7351 GB, free: 4.676 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.3683, allocations: 13.72 kB / 0.7351 GB, free: 4.656 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3685, allocations: 346.8 kB / 0.7354 GB, free: 4.309 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.635e-05/0.3685, allocations: 15.92 kB / 0.7355 GB, free: 4.293 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.65e-05/0.3686, allocations: 12 kB / 0.7355 GB, free: 4.281 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.277e-05/0.3687, allocations: 48.77 kB / 0.7355 GB, free: 4.23 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3687, allocations: 0 / 0.7355 GB, free: 4.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001565/0.3688, allocations: 89.31 kB / 0.7356 GB, free: 4.137 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.3688, allocations: 8 kB / 0.7356 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3689, allocations: 112 / 0.7356 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3689, allocations: 7.875 kB / 0.7356 GB, free: 4.121 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.524e-05/0.3689, allocations: 7.984 kB / 0.7356 GB, free: 4.113 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.369, allocations: 4 kB / 0.7356 GB, free: 4.109 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.735e-05/0.369, allocations: 4 kB / 0.7356 GB, free: 4.105 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.369, allocations: 4 kB / 0.7356 GB, free: 4.102 MB / 0.545 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001463/0.3692, allocations: 181.8 kB / 0.7358 GB, free: 3.914 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.881e-05/0.3692, allocations: 27.62 kB / 0.7358 GB, free: 3.887 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.3695, allocations: 104.1 kB / 0.7359 GB, free: 3.773 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3695, allocations: 7.938 kB / 0.7359 GB, free: 3.766 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.3695, allocations: 4 kB / 0.7359 GB, free: 3.762 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3695, allocations: 0 / 0.7359 GB, free: 3.762 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002671/0.3698, allocations: 289.4 kB / 0.7362 GB, free: 3.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3698, allocations: 0 / 0.7362 GB, free: 3.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-05/0.3698, allocations: 8 kB / 0.7362 GB, free: 3.422 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3698, allocations: 0 / 0.7362 GB, free: 3.422 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-06/0.3698, allocations: 3.984 kB / 0.7362 GB, free: 3.418 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3698, allocations: 3.938 kB / 0.7362 GB, free: 3.414 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3698, allocations: 0 / 0.7362 GB, free: 3.414 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/0.37, allocations: 199.1 kB / 0.7364 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.394e-05/0.3701, allocations: 117.1 kB / 0.7365 GB, free: 3.07 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.3702, allocations: 0 / 0.7365 GB, free: 3.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.359e-05/0.3702, allocations: 7.938 kB / 0.7365 GB, free: 3.062 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.632e-05/0.3703, allocations: 7.984 kB / 0.7366 GB, free: 3.055 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.3703, allocations: 0 / 0.7366 GB, free: 3.055 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003975/0.3707, allocations: 419.1 kB / 0.737 GB, free: 2.645 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3707, allocations: 0 / 0.737 GB, free: 2.645 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002403/0.3709, allocations: 28 kB / 0.737 GB, free: 2.617 MB / 0.545 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006776/0.3716, allocations: 359.6 kB / 0.7373 GB, free: 2.387 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001396/0.3718, allocations: 39.97 kB / 0.7374 GB, free: 2.348 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3718, allocations: 3.938 kB / 0.7374 GB, free: 2.344 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.731e-05/0.3718, allocations: 12 kB / 0.7374 GB, free: 2.332 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.3722, allocations: 49.5 kB / 0.7374 GB, free: 2.285 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006996/0.3729, allocations: 0.5782 MB / 0.738 GB, free: 1.684 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.3733, allocations: 0.7912 MB / 0.7388 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 9.314e-05/0.3734, allocations: 38.94 kB / 0.7388 GB, free: 0.8281 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.043e-05/0.3734, allocations: 23.42 kB / 0.7388 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of SimCode: time 2.01e-07/0.3734, allocations: 0 / 0.7388 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of Templates: time 0.004786/0.3782, allocations: 2.339 MB / 0.7411 GB, free: 14.51 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile Environment - environmentSimulation: (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 & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) Environment - environmentSimulation: