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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001026/0.001026, allocations: 195.3 kB / 16.14 MB, free: 6.715 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.164/1.164, allocations: 205.1 MB / 222 MB, free: 4.977 MB / 174.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.474/1.474, allocations: 292.3 MB / 0.5484 GB, free: 13.66 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.001246/0.001246, allocations: 75.83 kB / 0.6709 GB, free: 26.4 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1557, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002472/0.1582, allocations: 1.838 MB / 0.7846 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000997/0.1592, allocations: 0.851 MB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.825e-05/0.1593, allocations: 4 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003943/0.1597, allocations: 179.2 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002507/0.1599, allocations: 139.7 kB / 0.7857 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003004/0.1602, allocations: 170.7 kB / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.1604, allocations: 219.5 kB / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.1606, allocations: 53.88 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.1607, allocations: 87.67 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1608, allocations: 143.5 kB / 0.7864 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.75e-05/0.1609, allocations: 7.938 kB / 0.7864 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.27e-05/0.1609, allocations: 35.98 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.474e-05/0.161, allocations: 75.73 kB / 0.7865 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.821e-05/0.1611, allocations: 103.2 kB / 0.7866 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002517/0.1614, allocations: 338.9 kB / 0.7869 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.1614, allocations: 4 kB / 0.7869 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.71e-07/0.1614, allocations: 0 / 0.7869 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.1614, allocations: 0 / 0.7869 GB, free: 9.668 MB / 0.6075 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.0006288/0.162, allocations: 0.6068 MB / 0.7875 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.162, allocations: 8.031 kB / 0.7875 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.922e-05/0.1621, allocations: 38.73 kB / 0.7876 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.557e-05/0.1621, allocations: 28.56 kB / 0.7876 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004073/0.1625, allocations: 418.3 kB / 0.788 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.314e-06/0.1626, allocations: 384 / 0.788 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.1626, allocations: 15.88 kB / 0.788 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.1627, allocations: 77.67 kB / 0.7881 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.159e-06/0.1627, allocations: 0 / 0.7881 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.1627, allocations: 4 kB / 0.7881 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.1628, allocations: 3.984 kB / 0.7881 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.1629, allocations: 43.97 kB / 0.7881 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004478/0.1633, allocations: 492.3 kB / 0.7886 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.1634, allocations: 54.61 kB / 0.7886 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.787e-05/0.1635, allocations: 16.84 kB / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.1635, allocations: 0 / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.1635, allocations: 38.5 kB / 0.7887 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 7.71e-07/0.1636, allocations: 4 kB / 0.7887 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002326/0.1638, allocations: 105.2 kB / 0.7888 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.1638, allocations: 51.41 kB / 0.7888 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004971/0.1643, allocations: 0.5524 MB / 0.7894 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.1643, allocations: 25.7 kB / 0.7894 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.721e-05/0.1644, allocations: 168 kB / 0.7896 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.1645, allocations: 15.83 kB / 0.7896 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.1645, allocations: 17.72 kB / 0.7896 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.168e-05/0.1646, allocations: 342.8 kB / 0.7899 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.423e-05/0.1646, allocations: 11.98 kB / 0.7899 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.942e-05/0.1647, allocations: 15.98 kB / 0.79 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.174e-05/0.1648, allocations: 36.78 kB / 0.79 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1648, allocations: 0 / 0.79 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001435/0.1649, allocations: 89.3 kB / 0.7901 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 8.816e-06/0.1649, allocations: 8 kB / 0.7901 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.165, allocations: 4 kB / 0.7901 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.646e-06/0.165, allocations: 3.938 kB / 0.7901 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.873e-05/0.165, allocations: 7.938 kB / 0.7901 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.165, allocations: 3.984 kB / 0.7901 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.64e-05/0.1651, allocations: 4 kB / 0.7901 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-06/0.1651, allocations: 0 / 0.7901 GB, free: 6.16 MB / 0.6075 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.000117/0.1652, allocations: 178.5 kB / 0.7903 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.918e-05/0.1653, allocations: 27.62 kB / 0.7903 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00018/0.1655, allocations: 112.1 kB / 0.7904 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1655, allocations: 0 / 0.7904 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.1655, allocations: 0 / 0.7904 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1655, allocations: 112 / 0.7904 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000226/0.1657, allocations: 289.5 kB / 0.7907 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1657, allocations: 0 / 0.7907 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.561e-05/0.1658, allocations: 7.984 kB / 0.7907 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.1658, allocations: 0 / 0.7907 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.1658, allocations: 3.938 kB / 0.7907 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.1658, allocations: 12 kB / 0.7907 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1658, allocations: 0 / 0.7907 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001767/0.166, allocations: 183.1 kB / 0.7909 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.397e-05/0.1661, allocations: 117.1 kB / 0.791 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.729e-05/0.1661, allocations: 7.938 kB / 0.791 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.124e-05/0.1662, allocations: 0 / 0.791 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.155e-05/0.1662, allocations: 3.984 kB / 0.791 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.1662, allocations: 8 kB / 0.791 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003607/0.1666, allocations: 415.1 kB / 0.7914 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1666, allocations: 0 / 0.7914 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002374/0.1668, allocations: 39.84 kB / 0.7914 GB, free: 4.684 MB / 0.6075 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.0009534/0.1678, allocations: 0.9633 MB / 0.7924 GB, free: 3.828 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001212/0.1679, allocations: 39.91 kB / 0.7924 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.1679, allocations: 0 / 0.7924 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.814e-05/0.168, allocations: 15.98 kB / 0.7924 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.1683, allocations: 48.33 kB / 0.7925 GB, free: 3.73 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.1712, allocations: 2.943 MB / 0.7954 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.1715, allocations: 0.7911 MB / 0.7961 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.025e-05/0.1716, allocations: 46.94 kB / 0.7962 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.1717, allocations: 87.39 kB / 0.7963 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of SimCode: time 2.11e-07/0.1717, allocations: 0 / 0.7963 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.355/1.527, allocations: 5.151 MB / 0.8013 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002977/1.527, allocations: 271.9 kB / 0.8015 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.812/6.339, allocations: 5.516 kB / 0.8016 GB, free: 10.41 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)