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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 107.2 kB / 16.35 MB, free: 5.879 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.001931/0.001931, allocations: 192.3 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.781/1.781, allocations: 292.3 MB / 0.5496 GB, free: 17.59 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 71.89 kB / 0.6729 GB, free: 5.863 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2865, allocations: 114.5 MB / 0.7848 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.005817/0.2924, allocations: 1.776 MB / 0.7865 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002474/0.2949, allocations: 0.8742 MB / 0.7874 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2951, allocations: 0 / 0.7874 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0008161/0.2959, allocations: 189.2 kB / 0.7875 GB, free: 352 kB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0006555/0.2966, allocations: 160.5 kB / 0.7877 GB, free: 192 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007596/0.2974, allocations: 186.4 kB / 0.7879 GB, free: 8 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.3488/0.6462, allocations: 232.9 kB / 0.7881 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.6464, allocations: 45.41 kB / 0.7881 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.6465, allocations: 105.7 kB / 0.7882 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.6467, allocations: 152.2 kB / 0.7884 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.074e-05/0.6468, allocations: 19.09 kB / 0.7884 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.6469, allocations: 46.09 kB / 0.7884 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.458e-05/0.647, allocations: 90.56 kB / 0.7885 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.332e-05/0.6471, allocations: 113.6 kB / 0.7886 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003031/0.6474, allocations: 357.1 kB / 0.789 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.6474, allocations: 1.719 kB / 0.789 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.323e-06/0.6474, allocations: 0 / 0.789 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.6474, allocations: 0 / 0.789 GB, free: 46.59 MB / 0.6544 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.0006521/0.6481, allocations: 0.5992 MB / 0.7896 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.6481, allocations: 8.688 kB / 0.7896 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.419e-05/0.6482, allocations: 37.81 kB / 0.7896 GB, free: 46.1 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.6486, allocations: 416.9 kB / 0.79 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-06/0.6486, allocations: 3 kB / 0.79 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.6486, allocations: 6.25 kB / 0.79 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.6488, allocations: 84.02 kB / 0.7901 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.6488, allocations: 0.5938 kB / 0.7901 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.6488, allocations: 2.344 kB / 0.7901 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.6488, allocations: 0 / 0.7901 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.6489, allocations: 50.39 kB / 0.7902 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004632/0.6494, allocations: 485 kB / 0.7906 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.6495, allocations: 52.06 kB / 0.7907 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.76e-05/0.6496, allocations: 19.06 kB / 0.7907 GB, free: 45.51 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.6496, allocations: 4.469 kB / 0.7907 GB, free: 45.51 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.16e-05/0.6496, allocations: 37.38 kB / 0.7907 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.011e-06/0.6496, allocations: 0 / 0.7907 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0002411/0.6499, allocations: 98.84 kB / 0.7908 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.847e-05/0.6499, allocations: 61.91 kB / 0.7909 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004675/0.6504, allocations: 0.5501 MB / 0.7914 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.356e-06/0.6504, allocations: 26.27 kB / 0.7914 GB, free: 45.22 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 8.579e-05/0.6505, allocations: 174.5 kB / 0.7916 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.6505, allocations: 9.828 kB / 0.7916 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.6506, allocations: 15.09 kB / 0.7916 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.493e-05/0.6506, allocations: 345 kB / 0.792 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.772e-05/0.6507, allocations: 14.81 kB / 0.792 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.612e-05/0.6507, allocations: 16.67 kB / 0.792 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.021e-05/0.6508, allocations: 34.67 kB / 0.792 GB, free: 44.79 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.6508, allocations: 0 / 0.792 GB, free: 44.79 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001367/0.6509, allocations: 88.88 kB / 0.7921 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.651, allocations: 6.031 kB / 0.7921 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.651, allocations: 1.688 kB / 0.7921 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.651, allocations: 0 / 0.7921 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.003e-05/0.6511, allocations: 10.92 kB / 0.7921 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.6511, allocations: 4.547 kB / 0.7921 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.264e-05/0.6512, allocations: 8.25 kB / 0.7921 GB, free: 44.73 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.6512, allocations: 0 / 0.7921 GB, free: 44.73 MB / 0.6544 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.0001051/0.6513, allocations: 185.2 kB / 0.7923 GB, free: 44.62 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.6513, allocations: 27.66 kB / 0.7923 GB, free: 44.61 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.326e-05/0.6514, allocations: 36.34 kB / 0.7924 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.6514, allocations: 3.078 kB / 0.7924 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.6514, allocations: 5.812 kB / 0.7924 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.6514, allocations: 0 / 0.7924 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.6516, allocations: 285.8 kB / 0.7927 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.6516, allocations: 0 / 0.7927 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.863e-05/0.6517, allocations: 9.938 kB / 0.7927 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.6517, allocations: 2.625 kB / 0.7927 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-06/0.6517, allocations: 3.094 kB / 0.7927 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.6517, allocations: 0.5938 kB / 0.7927 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6517, allocations: 3.938 kB / 0.7927 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001518/0.6519, allocations: 187.2 kB / 0.7929 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.706e-05/0.652, allocations: 114.2 kB / 0.793 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.729e-05/0.652, allocations: 0 / 0.793 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.074e-05/0.6521, allocations: 7.234 kB / 0.793 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.6521, allocations: 9.188 kB / 0.793 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.6521, allocations: 3.406 kB / 0.793 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003406/0.6525, allocations: 420.3 kB / 0.7934 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6525, allocations: 0 / 0.7934 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002544/0.6528, allocations: 24.66 kB / 0.7934 GB, free: 44.05 MB / 0.6544 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.0007869/0.6535, allocations: 358.8 kB / 0.7937 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001517/0.6537, allocations: 36.34 kB / 0.7938 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.6537, allocations: 5.188 kB / 0.7938 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 4.999e-05/0.6538, allocations: 16.22 kB / 0.7938 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.6542, allocations: 40.11 kB / 0.7938 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006344/0.6549, allocations: 0.5009 MB / 0.7943 GB, free: 43.73 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002/0.6551, allocations: 0.7881 MB / 0.7951 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 9.944e-05/0.6552, allocations: 45.11 kB / 0.7951 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.185e-05/0.6552, allocations: 21.88 kB / 0.7952 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of SimCode: time 2.71e-07/0.6553, allocations: 0.625 kB / 0.7952 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of Templates: time 0.005172/0.6604, allocations: 2.466 MB / 0.7976 GB, free: 42.9 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)