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.49/2.49, allocations: 287.5 MB / 302.4 MB, free: 8.371 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.001343/0.001343, allocations: 170 kB / 371 MB, free: 10.86 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.092/2.092, allocations: 205.4 MB / 0.6297 GB, free: 10.58 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.000989/0.0009883, allocations: 105.6 kB / 0.743 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000509/0.0005092, allocations: 11.66 kB / 0.8658 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2252, allocations: 115.3 MB / 0.9784 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002358/0.2277, allocations: 1.441 MB / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001709/0.2294, allocations: 0.8047 MB / 0.9806 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.2296, allocations: 11.94 kB / 0.9806 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0005982/0.2302, allocations: 159.2 kB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000427/0.2306, allocations: 136 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.2312, allocations: 155.1 kB / 0.981 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003121/0.2316, allocations: 199.5 kB / 0.9812 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.2317, allocations: 45.77 kB / 0.9812 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.2319, allocations: 83.61 kB / 0.9813 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.2322, allocations: 135.5 kB / 0.9814 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.92e-05/0.2322, allocations: 8 kB / 0.9815 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.2324, allocations: 24 kB / 0.9815 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.2325, allocations: 75.73 kB / 0.9815 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.314e-05/0.2326, allocations: 65.52 kB / 0.9816 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.2329, allocations: 283.6 kB / 0.9819 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2329, allocations: 0 / 0.9819 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.735e-06/0.233, allocations: 0 / 0.9819 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.233, allocations: 4 kB / 0.9819 GB, free: 24.71 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.0008678/0.2338, allocations: 0.5602 MB / 0.9824 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.2339, allocations: 8.031 kB / 0.9824 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.126e-05/0.234, allocations: 39.56 kB / 0.9825 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006684/0.2347, allocations: 401.3 kB / 0.9829 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.2347, allocations: 0 / 0.9829 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.2347, allocations: 8 kB / 0.9829 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.235, allocations: 73.67 kB / 0.9829 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.235, allocations: 0 / 0.9829 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.235, allocations: 8 kB / 0.9829 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.235, allocations: 0 / 0.9829 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.2352, allocations: 51.92 kB / 0.983 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007546/0.236, allocations: 492.4 kB / 0.9835 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.2362, allocations: 50.52 kB / 0.9835 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.9e-05/0.2363, allocations: 24.84 kB / 0.9835 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.2363, allocations: 4 kB / 0.9835 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.2364, allocations: 34.56 kB / 0.9836 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.803e-06/0.2364, allocations: 0 / 0.9836 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003955/0.2368, allocations: 105.3 kB / 0.9837 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.2368, allocations: 51.41 kB / 0.9837 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000816/0.2376, allocations: 0.5562 MB / 0.9843 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.2377, allocations: 25.7 kB / 0.9843 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.2378, allocations: 176 kB / 0.9845 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.643e-05/0.2379, allocations: 15.75 kB / 0.9845 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-06/0.2379, allocations: 0 / 0.9845 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.126e-05/0.238, allocations: 346.8 kB / 0.9848 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.2e-05/0.2381, allocations: 15.94 kB / 0.9848 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.835e-05/0.2381, allocations: 11.98 kB / 0.9848 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.6e-05/0.2382, allocations: 19.98 kB / 0.9848 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2383, allocations: 4 kB / 0.9849 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002555/0.2385, allocations: 93.27 kB / 0.9849 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.2386, allocations: 4 kB / 0.9849 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.2386, allocations: 0 / 0.9849 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.2386, allocations: 7.922 kB / 0.985 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.2387, allocations: 8 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.2387, allocations: 0 / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.2389, allocations: 12 kB / 0.985 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.2389, allocations: 0 / 0.985 GB, free: 21.33 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.0001963/0.2391, allocations: 185.8 kB / 0.9851 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.772e-05/0.2392, allocations: 35.52 kB / 0.9852 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003059/0.2395, allocations: 100.2 kB / 0.9853 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.2395, allocations: 0 / 0.9853 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2395, allocations: 0 / 0.9853 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2395, allocations: 7.984 kB / 0.9853 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003402/0.2399, allocations: 281.5 kB / 0.9856 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2399, allocations: 0 / 0.9856 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.24e-05/0.24, allocations: 8.109 kB / 0.9856 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.24, allocations: 7.891 kB / 0.9856 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.24, allocations: 3.984 kB / 0.9856 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.24, allocations: 4 kB / 0.9856 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2401, allocations: 0 / 0.9856 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.2403, allocations: 191.5 kB / 0.9858 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.2405, allocations: 120.8 kB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.337e-05/0.2405, allocations: 7.953 kB / 0.9859 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.2407, allocations: 4 kB / 0.9859 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.2407, allocations: 7.984 kB / 0.9859 GB, free: 20.28 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.2407, allocations: 0 / 0.9859 GB, free: 20.28 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0005975/0.2413, allocations: 419.1 kB / 0.9863 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.61e-07/0.2414, allocations: 4 kB / 0.9863 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003508/0.2417, allocations: 20 kB / 0.9863 GB, free: 19.85 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.0009964/0.2427, allocations: 354.4 kB / 0.9867 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002477/0.243, allocations: 39.92 kB / 0.9867 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.243, allocations: 0 / 0.9867 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.524e-05/0.2431, allocations: 19.98 kB / 0.9867 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.2437, allocations: 34.86 kB / 0.9867 GB, free: 19.53 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.2448, allocations: 0.5588 MB / 0.9873 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.2451, allocations: 0.795 MB / 0.9881 GB, free: 18.13 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001804/0.2453, allocations: 38.94 kB / 0.9881 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.409e-05/0.2454, allocations: 23.42 kB / 0.9881 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of SimCode: time 1.172e-06/0.2454, allocations: 0 / 0.9881 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of Templates: time 0.00812/0.2536, allocations: 2.299 MB / 0.9904 GB, free: 15.81 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)