Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001222/0.001227, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.83/2.83, allocations: 472.6 MB / 0.7451 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.11 kB / 0.912 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3473, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003968/0.3514, allocations: 1.775 MB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001841/0.3532, allocations: 0.9199 MB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.671e-05/0.3534, allocations: 0 / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006004/0.354, allocations: 189.6 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005084/0.3545, allocations: 173.6 kB / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.3551, allocations: 206.8 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003515/0.3555, allocations: 235.5 kB / 1.072 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.3556, allocations: 57.64 kB / 1.072 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.3558, allocations: 103.6 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.3561, allocations: 155.5 kB / 1.072 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.3562, allocations: 16 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.3563, allocations: 47.94 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.3565, allocations: 95.72 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.3566, allocations: 115.2 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004436/0.3571, allocations: 343.1 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3571, allocations: 0 / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3571, allocations: 0 / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.074e-06/0.3571, allocations: 0 / 1.072 GB, free: 6.07 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.0009562/0.3581, allocations: 0.6168 MB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3581, allocations: 8.031 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.355e-05/0.3582, allocations: 32.56 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006462/0.3589, allocations: 410.3 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.3589, allocations: 4.375 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.3589, allocations: 8.125 kB / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002012/0.3591, allocations: 81.59 kB / 1.074 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.3591, allocations: 0 / 1.074 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.3592, allocations: 0 / 1.074 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.3592, allocations: 4 kB / 1.074 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.3593, allocations: 51.91 kB / 1.074 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007043/0.3601, allocations: 488.4 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.3602, allocations: 50.5 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.849e-05/0.3603, allocations: 20.91 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.3604, allocations: 0 / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.3604, allocations: 38.5 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3604, allocations: 0 / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003646/0.3608, allocations: 109.4 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.3608, allocations: 51.41 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008133/0.3616, allocations: 0.5561 MB / 1.075 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.3617, allocations: 29.7 kB / 1.075 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.3618, allocations: 172 kB / 1.075 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.165e-05/0.3619, allocations: 11.84 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.084e-05/0.3619, allocations: 17.72 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3621, allocations: 346.8 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.167e-05/0.3622, allocations: 12 kB / 1.075 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.136e-05/0.3622, allocations: 7.984 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.3623, allocations: 36.84 kB / 1.076 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3623, allocations: 0 / 1.076 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002198/0.3626, allocations: 93.23 kB / 1.076 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.3626, allocations: 8 kB / 1.076 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3626, allocations: 0 / 1.076 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.3626, allocations: 3.938 kB / 1.076 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.624e-05/0.3627, allocations: 7.984 kB / 1.076 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.3628, allocations: 4 kB / 1.076 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.422e-05/0.3628, allocations: 0 / 1.076 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.3629, allocations: 0 / 1.076 GB, free: 2.609 MB / 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.0001904/0.3631, allocations: 181.8 kB / 1.076 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.45e-05/0.3631, allocations: 35.61 kB / 1.076 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002639/0.3634, allocations: 100.2 kB / 1.076 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3634, allocations: 7.875 kB / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3634, allocations: 0 / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.3635, allocations: 8 kB / 1.076 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003599/0.3638, allocations: 285.5 kB / 1.076 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3638, allocations: 0 / 1.076 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.101e-05/0.3639, allocations: 4.109 kB / 1.076 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.3639, allocations: 7.938 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.3639, allocations: 4 kB / 1.076 GB, free: 1.918 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3639, allocations: 3.938 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3639, allocations: 0 / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002704/0.3642, allocations: 179.2 kB / 1.076 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.3644, allocations: 120.7 kB / 1.077 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.3644, allocations: 0 / 1.077 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.3645, allocations: 7.922 kB / 1.077 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.343e-05/0.3646, allocations: 8 kB / 1.077 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-06/0.3646, allocations: 0 / 1.077 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005879/0.3652, allocations: 423 kB / 1.077 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3652, allocations: 3.938 kB / 1.077 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003923/0.3656, allocations: 27.98 kB / 1.077 GB, free: 1.129 MB / 0.8262 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.0009945/0.3666, allocations: 349.9 kB / 1.077 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00019/0.3668, allocations: 31.97 kB / 1.077 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3668, allocations: 0 / 1.077 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.687e-05/0.3669, allocations: 19.98 kB / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005777/0.3675, allocations: 44.62 kB / 1.077 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009938/0.3685, allocations: 0.5136 MB / 1.078 GB, free: 284 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005447/0.369, allocations: 0.787 MB / 1.079 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001461/0.3692, allocations: 42.92 kB / 1.079 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.734e-05/0.3693, allocations: 27.38 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of SimCode: time 2.91e-07/0.3693, allocations: 0 / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of Templates: time 0.007764/0.3771, allocations: 2.459 MB / 1.081 GB, free: 12.98 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)