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.00102/0.00102, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009956/0.0009957, allocations: 191.6 kB / 16.13 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.157/1.157, allocations: 205.1 MB / 222 MB, free: 4.75 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.318/1.318, allocations: 251.6 MB / 0.5088 GB, free: 3.266 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.001249/0.001249, allocations: 67.89 kB / 0.6216 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3482, allocations: 104.7 MB / 0.7238 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002922/0.3512, allocations: 1.826 MB / 0.7256 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.3525, allocations: 0.8623 MB / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.3526, allocations: 0 / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0005188/0.3532, allocations: 180.1 kB / 0.7266 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003611/0.3535, allocations: 152.3 kB / 0.7268 GB, free: 10.22 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000377/0.3539, allocations: 173.8 kB / 0.7269 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002432/0.3542, allocations: 219.4 kB / 0.7271 GB, free: 9.836 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.3543, allocations: 51.77 kB / 0.7272 GB, free: 9.789 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.3544, allocations: 83.67 kB / 0.7273 GB, free: 9.707 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.3546, allocations: 139.5 kB / 0.7274 GB, free: 9.57 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.3547, allocations: 4 kB / 0.7274 GB, free: 9.566 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 9.131e-05/0.3548, allocations: 39.98 kB / 0.7274 GB, free: 9.527 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.3549, allocations: 75.69 kB / 0.7275 GB, free: 9.453 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.445e-05/0.355, allocations: 107.2 kB / 0.7276 GB, free: 9.348 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00028/0.3553, allocations: 342.8 kB / 0.7279 GB, free: 9.012 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3553, allocations: 4 kB / 0.7279 GB, free: 9.008 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.113e-06/0.3553, allocations: 0 / 0.7279 GB, free: 9.008 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.3553, allocations: 0 / 0.7279 GB, free: 9.008 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.0007087/0.356, allocations: 0.6069 MB / 0.7285 GB, free: 8.352 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.356, allocations: 12.03 kB / 0.7286 GB, free: 8.34 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.007e-05/0.3561, allocations: 28.56 kB / 0.7286 GB, free: 8.312 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.3565, allocations: 422.1 kB / 0.729 GB, free: 7.859 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.3566, allocations: 4.375 kB / 0.729 GB, free: 7.855 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.3566, allocations: 12.12 kB / 0.729 GB, free: 7.844 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.3567, allocations: 77.59 kB / 0.7291 GB, free: 7.762 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.992e-06/0.3568, allocations: 0 / 0.7291 GB, free: 7.762 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.3568, allocations: 4 kB / 0.7291 GB, free: 7.758 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3568, allocations: 4 kB / 0.7291 GB, free: 7.754 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.3569, allocations: 43.97 kB / 0.7291 GB, free: 7.711 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.3574, allocations: 484.5 kB / 0.7296 GB, free: 7.188 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.3575, allocations: 50.48 kB / 0.7296 GB, free: 7.129 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.531e-05/0.3576, allocations: 16.92 kB / 0.7296 GB, free: 7.109 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.3576, allocations: 3.984 kB / 0.7296 GB, free: 7.105 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.3576, allocations: 34.56 kB / 0.7297 GB, free: 7.062 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.3576, allocations: 4 kB / 0.7297 GB, free: 7.059 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002412/0.3579, allocations: 101.2 kB / 0.7298 GB, free: 6.953 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.3579, allocations: 51.41 kB / 0.7298 GB, free: 6.891 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005107/0.3584, allocations: 0.5562 MB / 0.7304 GB, free: 6.328 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.3584, allocations: 25.7 kB / 0.7304 GB, free: 6.297 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.3586, allocations: 175.9 kB / 0.7306 GB, free: 6.121 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/0.3586, allocations: 7.906 kB / 0.7306 GB, free: 6.113 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/0.3586, allocations: 13.72 kB / 0.7306 GB, free: 6.094 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.3587, allocations: 350.8 kB / 0.7309 GB, free: 5.742 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.639e-05/0.3588, allocations: 8 kB / 0.7309 GB, free: 5.734 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.041e-05/0.3588, allocations: 15.98 kB / 0.7309 GB, free: 5.719 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.08e-05/0.3589, allocations: 32.84 kB / 0.731 GB, free: 5.684 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3589, allocations: 0 / 0.731 GB, free: 5.684 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001453/0.3591, allocations: 89.58 kB / 0.7311 GB, free: 5.59 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.3591, allocations: 5.875 kB / 0.7311 GB, free: 5.586 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3591, allocations: 4 kB / 0.7311 GB, free: 5.582 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.3591, allocations: 7.922 kB / 0.7311 GB, free: 5.574 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.35e-05/0.3592, allocations: 19.97 kB / 0.7311 GB, free: 5.555 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3592, allocations: 112 / 0.7311 GB, free: 5.555 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.593e-05/0.3593, allocations: 7.844 kB / 0.7311 GB, free: 5.547 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.3593, allocations: 4 kB / 0.7311 GB, free: 5.543 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.0001373/0.3594, allocations: 173.8 kB / 0.7313 GB, free: 5.363 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.603e-05/0.3595, allocations: 31.56 kB / 0.7313 GB, free: 5.332 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001999/0.3597, allocations: 104.2 kB / 0.7314 GB, free: 5.219 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.217e-06/0.3597, allocations: 7.938 kB / 0.7314 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3597, allocations: 0 / 0.7314 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.3597, allocations: 0 / 0.7314 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.36, allocations: 285.5 kB / 0.7317 GB, free: 4.883 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.36, allocations: 3.984 kB / 0.7317 GB, free: 4.879 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.848e-05/0.36, allocations: 11.94 kB / 0.7317 GB, free: 4.867 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.36, allocations: 0 / 0.7317 GB, free: 4.867 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3601, allocations: 0 / 0.7317 GB, free: 4.867 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3601, allocations: 3.938 kB / 0.7317 GB, free: 4.863 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3601, allocations: 4 kB / 0.7317 GB, free: 4.859 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.3603, allocations: 183.2 kB / 0.7319 GB, free: 4.664 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/0.3603, allocations: 112.8 kB / 0.732 GB, free: 4.535 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.699e-05/0.3604, allocations: 0 / 0.732 GB, free: 4.535 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.369e-05/0.3605, allocations: 7.938 kB / 0.732 GB, free: 4.527 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.3605, allocations: 3.984 kB / 0.732 GB, free: 4.523 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.3605, allocations: 4 kB / 0.732 GB, free: 4.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003776/0.3609, allocations: 419.1 kB / 0.7324 GB, free: 4.109 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3609, allocations: 0 / 0.7324 GB, free: 4.109 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002354/0.3611, allocations: 27.91 kB / 0.7324 GB, free: 4.082 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.0006769/0.3618, allocations: 360.2 kB / 0.7328 GB, free: 3.848 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001338/0.362, allocations: 31.97 kB / 0.7328 GB, free: 3.816 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.362, allocations: 0 / 0.7328 GB, free: 3.816 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.787e-05/0.362, allocations: 15.98 kB / 0.7328 GB, free: 3.801 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.3624, allocations: 41.72 kB / 0.7329 GB, free: 3.758 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006662/0.3631, allocations: 0.5779 MB / 0.7334 GB, free: 3.16 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.3634, allocations: 0.7872 MB / 0.7342 GB, free: 2.348 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 9.006e-05/0.3635, allocations: 42.92 kB / 0.7342 GB, free: 2.305 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.875e-05/0.3635, allocations: 19.44 kB / 0.7343 GB, free: 2.285 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.3636, allocations: 0 / 0.7343 GB, free: 2.285 MB / 0.545 GB Notification: Performance of Templates: time 0.004578/0.3681, allocations: 2.398 MB / 0.7366 GB, free: 15.94 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (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)