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.001237/0.001237, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.194/1.194, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.531/1.531, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.00132/0.00132, allocations: 69.02 kB / 0.6716 GB, free: 26.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.1677, allocations: 114.6 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002747/0.1705, allocations: 1.775 MB / 0.7852 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.1716, allocations: 0.8637 MB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.445e-05/0.1717, allocations: 7.938 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004144/0.1721, allocations: 180.3 kB / 0.7862 GB, free: 10.51 MB / 0.6075 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.0003191/0.1724, allocations: 165.9 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.1728, allocations: 178.9 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002271/0.173, allocations: 235.5 kB / 0.7868 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.1731, allocations: 57.88 kB / 0.7869 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.1733, allocations: 99.61 kB / 0.7869 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.1735, allocations: 155.5 kB / 0.7871 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.748e-05/0.1735, allocations: 16 kB / 0.7871 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.479e-05/0.1736, allocations: 55.92 kB / 0.7872 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.704e-05/0.1737, allocations: 95.73 kB / 0.7873 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.051e-05/0.1738, allocations: 111.2 kB / 0.7874 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.1741, allocations: 342.9 kB / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1741, allocations: 0 / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.372e-06/0.1741, allocations: 0 / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.1741, allocations: 0 / 0.7877 GB, free: 9.031 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.0006613/0.1748, allocations: 0.603 MB / 0.7883 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.1748, allocations: 8.031 kB / 0.7883 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.959e-05/0.1748, allocations: 42.69 kB / 0.7883 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.875e-05/0.1749, allocations: 36.47 kB / 0.7884 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004362/0.1753, allocations: 410.4 kB / 0.7888 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.1753, allocations: 4.375 kB / 0.7888 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.1754, allocations: 7.938 kB / 0.7888 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.1755, allocations: 81.59 kB / 0.7888 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.1755, allocations: 0 / 0.7888 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.1755, allocations: 0 / 0.7888 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.1756, allocations: 0 / 0.7888 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001117/0.1757, allocations: 43.97 kB / 0.7889 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000485/0.1762, allocations: 0.4886 MB / 0.7894 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.1763, allocations: 46.61 kB / 0.7894 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.785e-05/0.1763, allocations: 24.84 kB / 0.7894 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.1764, allocations: 4 kB / 0.7894 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.1764, allocations: 30.56 kB / 0.7895 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 2.325e-06/0.1764, allocations: 112 / 0.7895 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002508/0.1767, allocations: 113.1 kB / 0.7896 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.1767, allocations: 51.41 kB / 0.7896 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005186/0.1772, allocations: 0.5484 MB / 0.7902 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.1772, allocations: 25.7 kB / 0.7902 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1774, allocations: 180 kB / 0.7904 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.1774, allocations: 7.844 kB / 0.7904 GB, free: 6.086 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.1774, allocations: 17.72 kB / 0.7904 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1775, allocations: 346.8 kB / 0.7907 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.418e-05/0.1776, allocations: 4 kB / 0.7907 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.841e-05/0.1776, allocations: 15.98 kB / 0.7907 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.407e-05/0.1777, allocations: 32.84 kB / 0.7908 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1777, allocations: 4 kB / 0.7908 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001497/0.1779, allocations: 97.23 kB / 0.7909 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.1779, allocations: 4.938 kB / 0.7909 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.1779, allocations: 4 kB / 0.7909 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.1779, allocations: 7.875 kB / 0.7909 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.383e-05/0.178, allocations: 7.984 kB / 0.7909 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.178, allocations: 0 / 0.7909 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.045e-05/0.1781, allocations: 4 kB / 0.7909 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.1781, allocations: 0 / 0.7909 GB, free: 5.527 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.0001284/0.1782, allocations: 189.8 kB / 0.7911 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.1783, allocations: 27.62 kB / 0.7911 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.1783, allocations: 38.47 kB / 0.7911 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1783, allocations: 0 / 0.7911 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.1783, allocations: 0 / 0.7911 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1783, allocations: 0 / 0.7911 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/0.1786, allocations: 281.5 kB / 0.7914 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1786, allocations: 0 / 0.7914 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.852e-05/0.1786, allocations: 11.92 kB / 0.7914 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1787, allocations: 0 / 0.7914 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.1787, allocations: 11.94 kB / 0.7914 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1787, allocations: 0 / 0.7914 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1787, allocations: 0 / 0.7914 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001816/0.1789, allocations: 183.2 kB / 0.7916 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.549e-05/0.1789, allocations: 112.7 kB / 0.7917 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.06e-05/0.179, allocations: 7.938 kB / 0.7917 GB, free: 4.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.1791, allocations: 4.312 kB / 0.7917 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.78e-05/0.1791, allocations: 11.98 kB / 0.7917 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-06/0.1791, allocations: 4 kB / 0.7917 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003809/0.1795, allocations: 415.1 kB / 0.7921 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1795, allocations: 0 / 0.7921 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002471/0.1798, allocations: 24 kB / 0.7921 GB, free: 4.133 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.001024/0.1808, allocations: 0.9838 MB / 0.7931 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001324/0.1809, allocations: 35.91 kB / 0.7931 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1809, allocations: 4 kB / 0.7931 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.2e-05/0.181, allocations: 23.92 kB / 0.7932 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003754/0.1814, allocations: 43.05 kB / 0.7932 GB, free: 3.156 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002716/0.1841, allocations: 2.895 MB / 0.796 GB, free: 192 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.1844, allocations: 0.7869 MB / 0.7968 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.703e-05/0.1845, allocations: 42.94 kB / 0.7968 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1847, allocations: 91.39 kB / 0.7969 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of SimCode: time 3.51e-07/0.1847, allocations: 0 / 0.7969 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9494/1.134, allocations: 5.352 MB / 0.8022 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.57/10.7, allocations: 16.55 kB / 0.8022 GB, free: 10.03 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)