Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_1.6_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_1.6_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.000899/0.0008987, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.006466/0.006466, allocations: 171.5 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.2 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.124/3.124, allocations: 473.4 MB / 0.7469 GB, free: 6.109 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003439, allocations: 20.06 kB / 0.9158 GB, free: 33.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3316, allocations: 162.2 MB / 1.074 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002394/0.334, allocations: 1.484 MB / 1.076 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.3356, allocations: 0.8929 MB / 1.076 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.3358, allocations: 0 / 1.076 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000547/0.3363, allocations: 172.2 kB / 1.077 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003844/0.3367, allocations: 150.7 kB / 1.077 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004948/0.3372, allocations: 202.4 kB / 1.077 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003103/0.3376, allocations: 211.5 kB / 1.077 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.3377, allocations: 53.64 kB / 1.077 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.3379, allocations: 83.61 kB / 1.077 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.3382, allocations: 135.5 kB / 1.077 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.284e-05/0.3382, allocations: 4 kB / 1.077 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.643e-05/0.3383, allocations: 31.98 kB / 1.077 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.979e-05/0.3384, allocations: 75.73 kB / 1.078 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.3385, allocations: 120.9 kB / 1.078 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003444/0.3389, allocations: 335 kB / 1.078 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3389, allocations: 4 kB / 1.078 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.066e-06/0.3389, allocations: 4 kB / 1.078 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.3389, allocations: 0 / 1.078 GB, free: 3.629 MB / 0.8262 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.0007479/0.3397, allocations: 0.5642 MB / 1.079 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.3397, allocations: 8.031 kB / 1.079 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.168e-05/0.3398, allocations: 28.56 kB / 1.079 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.3403, allocations: 410.3 kB / 1.079 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.3403, allocations: 8.375 kB / 1.079 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.3404, allocations: 12.12 kB / 1.079 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.3406, allocations: 81.59 kB / 1.079 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.3406, allocations: 3.938 kB / 1.079 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.3406, allocations: 0 / 1.079 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3406, allocations: 4 kB / 1.079 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.3407, allocations: 51.97 kB / 1.079 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006009/0.3413, allocations: 480.5 kB / 1.08 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.3415, allocations: 50.55 kB / 1.08 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.909e-05/0.3416, allocations: 21.03 kB / 1.08 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.3416, allocations: 11.92 kB / 1.08 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.3416, allocations: 34.55 kB / 1.08 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.3416, allocations: 0 / 1.08 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002928/0.3419, allocations: 113.2 kB / 1.08 GB, free: 1.605 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.342, allocations: 51.41 kB / 1.08 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006311/0.3426, allocations: 0.5601 MB / 1.08 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.3426, allocations: 25.7 kB / 1.08 GB, free: 0.9453 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.3428, allocations: 168 kB / 1.081 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.3428, allocations: 15.83 kB / 1.081 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.566e-05/0.3428, allocations: 13.72 kB / 1.081 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.343, allocations: 342.8 kB / 1.081 GB, free: 408 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.533e-05/0.343, allocations: 11.98 kB / 1.081 GB, free: 396 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.548e-05/0.3431, allocations: 19.98 kB / 1.081 GB, free: 376 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.645e-05/0.3432, allocations: 36.84 kB / 1.081 GB, free: 336 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3432, allocations: 0 / 1.081 GB, free: 336 kB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001758/0.3434, allocations: 97.23 kB / 1.081 GB, free: 232 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3434, allocations: 4 kB / 1.081 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3434, allocations: 4 kB / 1.081 GB, free: 224 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3434, allocations: 11.94 kB / 1.081 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.847e-05/0.3435, allocations: 4 kB / 1.081 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.3435, allocations: 3.984 kB / 1.081 GB, free: 204 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.954e-05/0.3436, allocations: 7.984 kB / 1.081 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.3436, allocations: 0 / 1.081 GB, free: 196 kB / 0.8262 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.0001457/0.3438, allocations: 181.8 kB / 1.081 GB, free: 4 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.64e-05/0.3438, allocations: 27.67 kB / 1.081 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002267/0.3441, allocations: 112.1 kB / 1.081 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3441, allocations: 3.938 kB / 1.081 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3441, allocations: 0 / 1.081 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3441, allocations: 0 / 1.081 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002637/0.3444, allocations: 285.4 kB / 1.082 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3444, allocations: 0 / 1.082 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.13e-05/0.3444, allocations: 11.98 kB / 1.082 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3445, allocations: 0 / 1.082 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.3445, allocations: 0 / 1.082 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3445, allocations: 7.938 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3445, allocations: 3.938 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.3447, allocations: 191.1 kB / 1.082 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.729e-05/0.3448, allocations: 120.7 kB / 1.082 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.3448, allocations: 432 / 1.082 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.3449, allocations: 15.92 kB / 1.082 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.444e-05/0.345, allocations: 0 / 1.082 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.345, allocations: 4 kB / 1.082 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004408/0.3454, allocations: 415.1 kB / 1.082 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3454, allocations: 0 / 1.082 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002668/0.3457, allocations: 31.89 kB / 1.082 GB, free: 14.7 MB / 0.8419 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.0008079/0.3465, allocations: 366.3 kB / 1.083 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001612/0.3467, allocations: 35.97 kB / 1.083 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3467, allocations: 0 / 1.083 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.727e-05/0.3468, allocations: 19.92 kB / 1.083 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004196/0.3472, allocations: 45.55 kB / 1.083 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008057/0.348, allocations: 0.5782 MB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.3484, allocations: 0.7834 MB / 1.084 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001197/0.3485, allocations: 50.91 kB / 1.084 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.443e-05/0.3486, allocations: 23.44 kB / 1.084 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/0.3486, allocations: 0 / 1.084 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of Templates: time 0.006238/0.3548, allocations: 2.325 MB / 1.087 GB, free: 10.57 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)