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.002086/0.002086, 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.002351/0.002351, allocations: 195.8 kB / 16.14 MB, free: 6.656 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.473/1.473, allocations: 222.9 MB / 239.8 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.815/2.815, allocations: 472.6 MB / 0.7447 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002349/0.002349, allocations: 62.31 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3151, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002934/0.3181, allocations: 1.832 MB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.3194, allocations: 0.9044 MB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.438e-05/0.3195, allocations: 3.938 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004459/0.3199, allocations: 172 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002977/0.3202, allocations: 155.5 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.3206, allocations: 195.3 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.3209, allocations: 219.5 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.321, allocations: 45.66 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.3211, allocations: 91.59 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.3213, allocations: 139.5 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.3214, allocations: 12 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.88e-05/0.3214, allocations: 28 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.034e-05/0.3215, allocations: 75.73 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.3216, allocations: 111.2 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003033/0.322, allocations: 343.1 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.322, allocations: 0 / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.152e-06/0.322, allocations: 3.938 kB / 1.072 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.322, allocations: 0 / 1.072 GB, free: 6.57 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.0007397/0.3227, allocations: 0.5991 MB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.3228, allocations: 12.03 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.145e-05/0.3228, allocations: 36.56 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004884/0.3233, allocations: 410.3 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.3233, allocations: 4.375 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.3234, allocations: 12.11 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.3235, allocations: 77.59 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.3236, allocations: 0 / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.3236, allocations: 4 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.3236, allocations: 4 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.3237, allocations: 47.97 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005367/0.3242, allocations: 484.3 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.3244, allocations: 50.56 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.3244, allocations: 24.84 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.3245, allocations: 4 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.3245, allocations: 34.5 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3245, allocations: 0 / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002689/0.3248, allocations: 97.33 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.3248, allocations: 51.41 kB / 1.074 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006023/0.3254, allocations: 0.56 MB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.3255, allocations: 33.7 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.3256, allocations: 168 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.3256, allocations: 15.84 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.3256, allocations: 9.719 kB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3258, allocations: 346.8 kB / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.017e-05/0.3258, allocations: 12 kB / 1.075 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.059e-05/0.3259, allocations: 15.98 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.542e-05/0.326, allocations: 40.78 kB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.326, allocations: 0 / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001554/0.3261, allocations: 89.3 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.3262, allocations: 4 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.3262, allocations: 0 / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.3262, allocations: 4.266 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.706e-05/0.3263, allocations: 15.98 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.3263, allocations: 0 / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.921e-05/0.3263, allocations: 0 / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.3264, allocations: 0 / 1.075 GB, free: 3.125 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.0001529/0.3265, allocations: 187.5 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.228e-05/0.3266, allocations: 27.62 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002118/0.3268, allocations: 104.1 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3268, allocations: 3.938 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3268, allocations: 4 kB / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3268, allocations: 0 / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.3271, allocations: 289.5 kB / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3271, allocations: 0 / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.118e-05/0.3272, allocations: 12.11 kB / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.3272, allocations: 3.938 kB / 1.075 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.3272, allocations: 0 / 1.075 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3272, allocations: 3.938 kB / 1.075 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3272, allocations: 0 / 1.075 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/0.3274, allocations: 187.1 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.132e-05/0.3275, allocations: 116.7 kB / 1.076 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.3275, allocations: 4 kB / 1.076 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-05/0.3276, allocations: 7.922 kB / 1.076 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.864e-05/0.3277, allocations: 4 kB / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.3277, allocations: 3.938 kB / 1.076 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004081/0.3281, allocations: 419.1 kB / 1.076 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3281, allocations: 0 / 1.076 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002611/0.3284, allocations: 27.98 kB / 1.076 GB, free: 1.645 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.0007485/0.3291, allocations: 353.7 kB / 1.077 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001437/0.3293, allocations: 31.97 kB / 1.077 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3293, allocations: 4 kB / 1.077 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.221e-05/0.3293, allocations: 23.92 kB / 1.077 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.3297, allocations: 51.73 kB / 1.077 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007477/0.3305, allocations: 0.5779 MB / 1.077 GB, free: 0.707 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.3309, allocations: 0.7834 MB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001008/0.331, allocations: 46.91 kB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.289e-05/0.331, allocations: 23.44 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.331, allocations: 0 / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of Templates: time 0.005635/0.3367, allocations: 2.37 MB / 1.08 GB, free: 13.47 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)