Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.551/1.551, allocations: 292.3 MB / 308.1 MB, free: 4.301 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.001314/0.001314, allocations: 184.5 kB / 376.9 MB, free: 1.801 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 0.6354 GB, free: 9.762 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 98.53 kB / 0.748 GB, free: 61.49 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009729/0.000973, allocations: 51.92 kB / 0.8704 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2252, allocations: 114.5 MB / 0.9822 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003342/0.2285, allocations: 1.837 MB / 0.984 GB, free: 8.52 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.2299, allocations: 0.8471 MB / 0.9848 GB, free: 7.664 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.23, allocations: 11.94 kB / 0.9849 GB, free: 7.652 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0005037/0.2306, allocations: 167.2 kB / 0.985 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0003893/0.231, allocations: 150.2 kB / 0.9852 GB, free: 7.344 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004152/0.2314, allocations: 183.6 kB / 0.9853 GB, free: 7.164 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003009/0.2317, allocations: 215.5 kB / 0.9855 GB, free: 6.953 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.2318, allocations: 57.94 kB / 0.9856 GB, free: 6.895 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.232, allocations: 83.67 kB / 0.9857 GB, free: 6.812 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.2323, allocations: 139.5 kB / 0.9858 GB, free: 6.676 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.086e-05/0.2323, allocations: 8 kB / 0.9858 GB, free: 6.668 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.2324, allocations: 31.92 kB / 0.9858 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 9.156e-05/0.2325, allocations: 75.75 kB / 0.9859 GB, free: 6.562 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.2326, allocations: 107.2 kB / 0.986 GB, free: 6.457 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.233, allocations: 342.8 kB / 0.9864 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.233, allocations: 4 kB / 0.9864 GB, free: 6.117 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.02e-07/0.233, allocations: 0 / 0.9864 GB, free: 6.117 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.233, allocations: 3.938 kB / 0.9864 GB, free: 6.113 MB / 0.7136 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.0008503/0.2339, allocations: 0.6068 MB / 0.987 GB, free: 5.457 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2339, allocations: 12.03 kB / 0.987 GB, free: 5.445 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.593e-05/0.234, allocations: 28.56 kB / 0.987 GB, free: 5.418 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005144/0.2345, allocations: 410.3 kB / 0.9874 GB, free: 4.98 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.2345, allocations: 8.375 kB / 0.9874 GB, free: 4.973 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.2345, allocations: 8.125 kB / 0.9874 GB, free: 4.965 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.2347, allocations: 81.64 kB / 0.9875 GB, free: 4.879 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.2347, allocations: 0 / 0.9875 GB, free: 4.879 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.2347, allocations: 7.938 kB / 0.9875 GB, free: 4.871 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2348, allocations: 3.938 kB / 0.9875 GB, free: 4.867 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.2349, allocations: 47.97 kB / 0.9875 GB, free: 4.82 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005879/0.2355, allocations: 484.5 kB / 0.988 GB, free: 4.297 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.2356, allocations: 42.56 kB / 0.988 GB, free: 4.246 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.278e-05/0.2357, allocations: 20.91 kB / 0.9881 GB, free: 4.223 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.2357, allocations: 4 kB / 0.9881 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.2357, allocations: 30.56 kB / 0.9881 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.2357, allocations: 0 / 0.9881 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0003023/0.236, allocations: 109.2 kB / 0.9882 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.2361, allocations: 55.39 kB / 0.9882 GB, free: 4 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005733/0.2367, allocations: 0.5523 MB / 0.9888 GB, free: 3.441 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.2367, allocations: 29.7 kB / 0.9888 GB, free: 3.406 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.2368, allocations: 172 kB / 0.989 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.2368, allocations: 7.844 kB / 0.989 GB, free: 3.227 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.2369, allocations: 17.72 kB / 0.989 GB, free: 3.203 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.237, allocations: 346.8 kB / 0.9893 GB, free: 2.855 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.655e-05/0.2371, allocations: 15.98 kB / 0.9893 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.596e-05/0.2371, allocations: 8 kB / 0.9894 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.969e-05/0.2372, allocations: 36.83 kB / 0.9894 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2372, allocations: 0 / 0.9894 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001562/0.2374, allocations: 89.25 kB / 0.9895 GB, free: 2.699 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.2374, allocations: 4 kB / 0.9895 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2374, allocations: 0 / 0.9895 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2374, allocations: 7.938 kB / 0.9895 GB, free: 2.688 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.898e-05/0.2375, allocations: 11.98 kB / 0.9895 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.2375, allocations: 0 / 0.9895 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.387e-05/0.2376, allocations: 4.328 kB / 0.9895 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.2376, allocations: 112 / 0.9895 GB, free: 2.672 MB / 0.7136 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.0001387/0.2377, allocations: 185.7 kB / 0.9897 GB, free: 2.48 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.195e-05/0.2378, allocations: 31.62 kB / 0.9897 GB, free: 2.449 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002044/0.238, allocations: 108.1 kB / 0.9898 GB, free: 2.328 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.238, allocations: 3.938 kB / 0.9898 GB, free: 2.324 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.238, allocations: 3.938 kB / 0.9898 GB, free: 2.32 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.238, allocations: 0 / 0.9898 GB, free: 2.32 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002547/0.2383, allocations: 289.5 kB / 0.9901 GB, free: 1.988 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2383, allocations: 4 kB / 0.9901 GB, free: 1.984 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.341e-05/0.2383, allocations: 8 kB / 0.9901 GB, free: 1.977 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2384, allocations: 0 / 0.9901 GB, free: 1.977 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.2384, allocations: 3.984 kB / 0.9901 GB, free: 1.973 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2384, allocations: 3.938 kB / 0.9901 GB, free: 1.969 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2384, allocations: 4 kB / 0.9901 GB, free: 1.965 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.2389, allocations: 0.7974 MB / 0.9909 GB, free: 1.109 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.239, allocations: 120.7 kB / 0.991 GB, free: 0.9727 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.239, allocations: 0 / 0.991 GB, free: 0.9727 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.453e-05/0.2391, allocations: 4 kB / 0.991 GB, free: 0.9688 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.2391, allocations: 7.984 kB / 0.991 GB, free: 0.9609 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.2392, allocations: 0 / 0.991 GB, free: 0.9609 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0004041/0.2396, allocations: 419.1 kB / 0.9914 GB, free: 0.5586 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2396, allocations: 0 / 0.9914 GB, free: 0.5586 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003503/0.2399, allocations: 20 kB / 0.9914 GB, free: 0.5391 MB / 0.7136 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.0007404/0.2407, allocations: 363.1 kB / 0.9918 GB, free: 272 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001411/0.2408, allocations: 31.91 kB / 0.9918 GB, free: 240 kB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2408, allocations: 0 / 0.9918 GB, free: 240 kB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.81e-05/0.2409, allocations: 16 kB / 0.9918 GB, free: 224 kB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.2413, allocations: 45.66 kB / 0.9919 GB, free: 176 kB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000794/0.2421, allocations: 0.6824 MB / 0.9925 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.2424, allocations: 0.7912 MB / 0.9933 GB, free: 14.64 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001156/0.2426, allocations: 46.92 kB / 0.9934 GB, free: 14.59 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.2426, allocations: 19.44 kB / 0.9934 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of SimCode: time 2.51e-07/0.2426, allocations: 3.938 kB / 0.9934 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of Templates: time 0.005503/0.2481, allocations: 2.432 MB / 0.9958 GB, free: 12.14 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)