Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.596/2.596, allocations: 287.3 MB / 302.3 MB, free: 8.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001524/0.001524, allocations: 181.7 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.4 MB / 0.6295 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001138, allocations: 96.44 kB / 0.7428 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006795/0.0006798, allocations: 19.14 kB / 0.8656 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2271, allocations: 115.3 MB / 0.9782 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002287/0.2295, allocations: 1.457 MB / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2311, allocations: 0.7774 MB / 0.9804 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.2313, allocations: 3.938 kB / 0.9804 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0005895/0.2319, allocations: 159.1 kB / 0.9805 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000415/0.2324, allocations: 144.1 kB / 0.9807 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006181/0.233, allocations: 149.2 kB / 0.9808 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003026/0.2333, allocations: 147.7 kB / 0.981 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.2335, allocations: 33.84 kB / 0.981 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.2337, allocations: 79.67 kB / 0.9811 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.2339, allocations: 135.6 kB / 0.9812 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.908e-05/0.2339, allocations: 4 kB / 0.9812 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.2341, allocations: 27.92 kB / 0.9812 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 9.748e-05/0.2342, allocations: 71.73 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.986e-05/0.2342, allocations: 61.58 kB / 0.9813 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003385/0.2346, allocations: 291.5 kB / 0.9816 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.2346, allocations: 0 / 0.9816 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2346, allocations: 0 / 0.9816 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.2346, allocations: 4 kB / 0.9816 GB, free: 24.84 MB / 0.6198 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.0008905/0.2355, allocations: 0.5622 MB / 0.9822 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2356, allocations: 16.02 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.559e-05/0.2357, allocations: 31.58 kB / 0.9822 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006713/0.2364, allocations: 397.3 kB / 0.9826 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.2364, allocations: 4 kB / 0.9826 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.2364, allocations: 11.94 kB / 0.9826 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.2367, allocations: 73.61 kB / 0.9827 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.2367, allocations: 0 / 0.9827 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.2367, allocations: 4 kB / 0.9827 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.2367, allocations: 7.938 kB / 0.9827 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.2369, allocations: 51.92 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006897/0.2376, allocations: 476.5 kB / 0.9832 GB, free: 23.08 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.2378, allocations: 58.61 kB / 0.9833 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.2378, allocations: 3.984 kB / 0.9833 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.2379, allocations: 34.5 kB / 0.9833 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.703e-06/0.2379, allocations: 0 / 0.9833 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003764/0.2383, allocations: 109.3 kB / 0.9834 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/0.2383, allocations: 51.41 kB / 0.9834 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000792/0.2391, allocations: 0.5601 MB / 0.984 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.2391, allocations: 25.7 kB / 0.984 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2393, allocations: 172 kB / 0.9842 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.2393, allocations: 15.75 kB / 0.9842 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.2393, allocations: 0 / 0.9842 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.808e-05/0.2394, allocations: 342.8 kB / 0.9845 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.073e-05/0.2395, allocations: 23.98 kB / 0.9845 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.675e-05/0.2396, allocations: 8 kB / 0.9846 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.312e-05/0.2397, allocations: 19.92 kB / 0.9846 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2397, allocations: 4 kB / 0.9846 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002703/0.24, allocations: 93.25 kB / 0.9847 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.24, allocations: 8 kB / 0.9847 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.24, allocations: 4 kB / 0.9847 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2401, allocations: 0 / 0.9847 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.2402, allocations: 8 kB / 0.9847 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.2402, allocations: 0 / 0.9847 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.2403, allocations: 3.984 kB / 0.9847 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.2404, allocations: 4 kB / 0.9847 GB, free: 21.48 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002203/0.2406, allocations: 177.8 kB / 0.9849 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.719e-05/0.2407, allocations: 35.69 kB / 0.9849 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003021/0.241, allocations: 116 kB / 0.985 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.241, allocations: 4 kB / 0.985 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.241, allocations: 0 / 0.985 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.241, allocations: 0 / 0.985 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003181/0.2414, allocations: 281.5 kB / 0.9853 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2414, allocations: 4 kB / 0.9853 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.236e-05/0.2415, allocations: 11.98 kB / 0.9853 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.2415, allocations: 4 kB / 0.9853 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.2415, allocations: 3.953 kB / 0.9853 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2415, allocations: 0 / 0.9853 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2415, allocations: 0 / 0.9853 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.2418, allocations: 191.1 kB / 0.9855 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.2419, allocations: 116.7 kB / 0.9856 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.279e-05/0.242, allocations: 0 / 0.9856 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.2421, allocations: 19.94 kB / 0.9856 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.2422, allocations: 4 kB / 0.9856 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.2422, allocations: 0 / 0.9856 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0005775/0.2428, allocations: 419.1 kB / 0.986 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.01e-07/0.2428, allocations: 0 / 0.986 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003605/0.2431, allocations: 20 kB / 0.986 GB, free: 20 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009734/0.2441, allocations: 356 kB / 0.9864 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002392/0.2444, allocations: 43.91 kB / 0.9864 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2444, allocations: 0 / 0.9864 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.2445, allocations: 23.94 kB / 0.9864 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004413/0.245, allocations: 38.84 kB / 0.9865 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009924/0.246, allocations: 0.5472 MB / 0.987 GB, free: 19.1 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.2463, allocations: 0.795 MB / 0.9878 GB, free: 18.28 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001683/0.2465, allocations: 46.94 kB / 0.9878 GB, free: 18.24 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.296e-05/0.2466, allocations: 19.44 kB / 0.9879 GB, free: 18.22 MB / 0.6198 GB Notification: Performance of SimCode: time 1.002e-06/0.2466, allocations: 0 / 0.9879 GB, free: 18.22 MB / 0.6198 GB Notification: Performance of Templates: time 0.00822/0.2548, allocations: 2.292 MB / 0.9901 GB, free: 15.96 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)