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.001103/0.001103, allocations: 108 kB / 15.6 MB, free: 132 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.001235/0.001235, allocations: 192 kB / 16.53 MB, free: 6.391 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.752/2.752, allocations: 472.6 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 67.11 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3088, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.004245/0.3131, allocations: 1.783 MB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001718/0.3148, allocations: 0.9161 MB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.315, allocations: 7.938 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006791/0.3157, allocations: 185.4 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005264/0.3162, allocations: 166.1 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005949/0.3168, allocations: 207 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004104/0.3173, allocations: 243.5 kB / 1.072 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.3174, allocations: 53.64 kB / 1.072 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.3177, allocations: 95.67 kB / 1.072 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.318, allocations: 159.5 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.318, allocations: 20 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.3182, allocations: 47.98 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.3183, allocations: 87.73 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3184, allocations: 111.2 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000445/0.3189, allocations: 347.1 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3189, allocations: 12 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.976e-06/0.3189, allocations: 0 / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.233e-05/0.3189, allocations: 3.938 kB / 1.072 GB, free: 6.043 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.001023/0.32, allocations: 0.5991 MB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.32, allocations: 12.02 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.3201, allocations: 32.5 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006101/0.3207, allocations: 418.3 kB / 1.074 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.3208, allocations: 384 / 1.074 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.3208, allocations: 8.125 kB / 1.074 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.321, allocations: 81.61 kB / 1.074 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.321, allocations: 0 / 1.074 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.321, allocations: 0 / 1.074 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.321, allocations: 0 / 1.074 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001311/0.3212, allocations: 47.97 kB / 1.074 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000662/0.3218, allocations: 492.4 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.322, allocations: 46.62 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.433e-05/0.3221, allocations: 20.95 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.3221, allocations: 7.922 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.3221, allocations: 34.56 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.472e-06/0.3221, allocations: 3.938 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.000315/0.3225, allocations: 105.3 kB / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.3225, allocations: 51.41 kB / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007108/0.3232, allocations: 0.56 MB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.3233, allocations: 25.7 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.3234, allocations: 168 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/0.3235, allocations: 15.83 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.086e-05/0.3235, allocations: 13.72 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3237, allocations: 346.8 kB / 1.075 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.354e-05/0.3237, allocations: 11.98 kB / 1.075 GB, free: 2.766 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.443e-05/0.3238, allocations: 15.98 kB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.867e-05/0.3239, allocations: 36.78 kB / 1.076 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.3239, allocations: 0 / 1.076 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001894/0.3241, allocations: 85.3 kB / 1.076 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3241, allocations: 6.031 kB / 1.076 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.3241, allocations: 4 kB / 1.076 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.3242, allocations: 7.938 kB / 1.076 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.328e-05/0.3243, allocations: 8 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3243, allocations: 0 / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.762e-05/0.3244, allocations: 11.98 kB / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.3244, allocations: 0 / 1.076 GB, free: 2.586 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.0002121/0.3246, allocations: 177.8 kB / 1.076 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.03e-05/0.3247, allocations: 27.62 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002982/0.325, allocations: 108.1 kB / 1.076 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.325, allocations: 4.312 kB / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3251, allocations: 0 / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3251, allocations: 0 / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003733/0.3254, allocations: 285.5 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3255, allocations: 3.938 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.366e-05/0.3255, allocations: 7.984 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.3255, allocations: 3.984 kB / 1.076 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.3256, allocations: 0 / 1.076 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.3256, allocations: 7.938 kB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.3256, allocations: 4 kB / 1.076 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.3259, allocations: 187 kB / 1.076 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.326, allocations: 116.7 kB / 1.077 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.3261, allocations: 4 kB / 1.077 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.3262, allocations: 3.938 kB / 1.077 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.156e-05/0.3263, allocations: 3.984 kB / 1.077 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.3263, allocations: 4 kB / 1.077 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006239/0.3269, allocations: 419.1 kB / 1.077 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.2e-07/0.3269, allocations: 0 / 1.077 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004458/0.3274, allocations: 28 kB / 1.077 GB, free: 1.117 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.00124/0.3286, allocations: 352.2 kB / 1.077 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002026/0.3289, allocations: 35.91 kB / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3289, allocations: 0 / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.807e-05/0.329, allocations: 12 kB / 1.077 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006368/0.3296, allocations: 54.41 kB / 1.077 GB, free: 0.793 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.3308, allocations: 0.5059 MB / 1.078 GB, free: 268 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006783/0.3315, allocations: 0.7909 MB / 1.079 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001674/0.3316, allocations: 42.92 kB / 1.079 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.736e-05/0.3317, allocations: 23.42 kB / 1.079 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of SimCode: time 1.072e-06/0.3318, allocations: 0 / 1.079 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of Templates: time 0.009333/0.3411, allocations: 2.472 MB / 1.081 GB, free: 12.93 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)