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.0009743/0.0009744, allocations: 91.84 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.006752/0.006752, allocations: 169.9 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.504/1.504, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.868/2.868, allocations: 473.4 MB / 0.7469 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003527, allocations: 9.531 kB / 0.9158 GB, free: 33.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3238, allocations: 162.2 MB / 1.074 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002478/0.3263, allocations: 1.48 MB / 1.076 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.3278, allocations: 0.8968 MB / 1.076 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.3279, allocations: 0 / 1.076 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005231/0.3285, allocations: 164.3 kB / 1.077 GB, free: 5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004158/0.3289, allocations: 156.5 kB / 1.077 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004742/0.3294, allocations: 199.2 kB / 1.077 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.3298, allocations: 219.5 kB / 1.077 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.3299, allocations: 53.62 kB / 1.077 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.3301, allocations: 83.61 kB / 1.077 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.3303, allocations: 127.5 kB / 1.077 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.757e-05/0.3304, allocations: 12 kB / 1.077 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.3305, allocations: 31.97 kB / 1.077 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.157e-05/0.3306, allocations: 71.75 kB / 1.078 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.3307, allocations: 120.9 kB / 1.078 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.3311, allocations: 343 kB / 1.078 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3311, allocations: 0 / 1.078 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3311, allocations: 0 / 1.078 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.832e-06/0.3311, allocations: 0 / 1.078 GB, free: 3.609 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.0008301/0.3319, allocations: 0.5681 MB / 1.079 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.332, allocations: 8.031 kB / 1.079 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.681e-05/0.3321, allocations: 32.56 kB / 1.079 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006294/0.3327, allocations: 410.3 kB / 1.079 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.3327, allocations: 384 / 1.079 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.3328, allocations: 8.125 kB / 1.079 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.333, allocations: 85.53 kB / 1.079 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.333, allocations: 0 / 1.079 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.333, allocations: 0 / 1.079 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.333, allocations: 4 kB / 1.079 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.3331, allocations: 55.97 kB / 1.079 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000634/0.3338, allocations: 484.5 kB / 1.08 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.3339, allocations: 46.56 kB / 1.08 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.839e-05/0.334, allocations: 21.03 kB / 1.08 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.334, allocations: 7.922 kB / 1.08 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.3341, allocations: 30.56 kB / 1.08 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.3341, allocations: 4 kB / 1.08 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003203/0.3344, allocations: 117.2 kB / 1.08 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.3345, allocations: 55.41 kB / 1.08 GB, free: 1.52 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000751/0.3352, allocations: 0.5561 MB / 1.08 GB, free: 0.957 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.3352, allocations: 29.7 kB / 1.08 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.3354, allocations: 172 kB / 1.081 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.3354, allocations: 7.844 kB / 1.081 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.3354, allocations: 13.72 kB / 1.081 GB, free: 0.7227 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.3356, allocations: 346.8 kB / 1.081 GB, free: 384 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.447e-05/0.3356, allocations: 15.98 kB / 1.081 GB, free: 368 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.17e-05/0.3357, allocations: 11.98 kB / 1.081 GB, free: 356 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.3358, allocations: 40.78 kB / 1.081 GB, free: 312 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3358, allocations: 0 / 1.081 GB, free: 312 kB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001812/0.336, allocations: 97.3 kB / 1.081 GB, free: 208 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.336, allocations: 9.406 kB / 1.081 GB, free: 200 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.81e-06/0.336, allocations: 0 / 1.081 GB, free: 200 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.3361, allocations: 3.938 kB / 1.081 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.292e-05/0.3361, allocations: 4 kB / 1.081 GB, free: 192 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.3362, allocations: 7.984 kB / 1.081 GB, free: 184 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.835e-05/0.3362, allocations: 0 / 1.081 GB, free: 184 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.3362, allocations: 4 kB / 1.081 GB, free: 180 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.0001658/0.3364, allocations: 181.8 kB / 1.081 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.3365, allocations: 27.62 kB / 1.081 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002452/0.3367, allocations: 108.1 kB / 1.081 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.3367, allocations: 7.938 kB / 1.081 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.3368, allocations: 0 / 1.081 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.3368, allocations: 0 / 1.081 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002927/0.3371, allocations: 281.4 kB / 1.082 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3371, allocations: 4 kB / 1.082 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.579e-05/0.3371, allocations: 11.98 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.3371, allocations: 0 / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.3372, allocations: 4 kB / 1.082 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.3372, allocations: 7.938 kB / 1.082 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3372, allocations: 0 / 1.082 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.3375, allocations: 195.1 kB / 1.082 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.52e-05/0.3376, allocations: 116.7 kB / 1.082 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.962e-05/0.3376, allocations: 3.984 kB / 1.082 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.578e-05/0.3377, allocations: 7.938 kB / 1.082 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.849e-05/0.3377, allocations: 4 kB / 1.082 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.3378, allocations: 4 kB / 1.082 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00049/0.3383, allocations: 415.1 kB / 1.082 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.01e-07/0.3383, allocations: 0 / 1.082 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002821/0.3385, allocations: 31.91 kB / 1.082 GB, free: 14.69 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.0008108/0.3394, allocations: 360.7 kB / 1.083 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001561/0.3395, allocations: 39.98 kB / 1.083 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3395, allocations: 0 / 1.083 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 6.413e-05/0.3396, allocations: 19.92 kB / 1.083 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004154/0.34, allocations: 38.2 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.0009459/0.341, allocations: 0.586 MB / 1.083 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.3415, allocations: 0.7834 MB / 1.084 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000112/0.3416, allocations: 46.91 kB / 1.084 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.571e-05/0.3416, allocations: 19.44 kB / 1.084 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3416, allocations: 0 / 1.084 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of Templates: time 0.005992/0.3476, allocations: 2.337 MB / 1.087 GB, free: 10.57 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)