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.001121/0.001121, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001109/0.001109, allocations: 186.8 kB / 16.25 MB, free: 6.594 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.153/1.153, allocations: 205.1 MB / 222.1 MB, free: 4.672 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.496/1.496, allocations: 292.3 MB / 0.5486 GB, free: 13.63 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.001354/0.001354, allocations: 64.19 kB / 0.6711 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1728, allocations: 114.6 MB / 0.783 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002762/0.1756, allocations: 1.831 MB / 0.7848 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001084/0.1767, allocations: 0.851 MB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.895e-05/0.1767, allocations: 0 / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004333/0.1772, allocations: 179.2 kB / 0.7858 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002974/0.1775, allocations: 150 kB / 0.7859 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003307/0.1778, allocations: 176.2 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.1781, allocations: 239.5 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1782, allocations: 49.89 kB / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.1783, allocations: 99.61 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.1785, allocations: 159.5 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.255e-05/0.1785, allocations: 16 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.687e-05/0.1786, allocations: 51.97 kB / 0.7867 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.209e-05/0.1787, allocations: 83.75 kB / 0.7867 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.515e-05/0.1788, allocations: 119.2 kB / 0.7869 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.1791, allocations: 342.9 kB / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1791, allocations: 0 / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.021e-06/0.1791, allocations: 0 / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.1791, allocations: 0 / 0.7872 GB, free: 9.453 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.000664/0.1798, allocations: 0.607 MB / 0.7878 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.1799, allocations: 8.031 kB / 0.7878 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.258e-05/0.1799, allocations: 42.69 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.145e-05/0.1799, allocations: 32.47 kB / 0.7879 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.1804, allocations: 414.3 kB / 0.7883 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.168e-06/0.1804, allocations: 4.375 kB / 0.7883 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.1804, allocations: 7.938 kB / 0.7883 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.1806, allocations: 77.66 kB / 0.7883 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.1806, allocations: 0 / 0.7883 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.1806, allocations: 0 / 0.7883 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.1806, allocations: 4 kB / 0.7883 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.1807, allocations: 59.78 kB / 0.7884 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004871/0.1812, allocations: 488.4 kB / 0.7889 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.1814, allocations: 50.5 kB / 0.7889 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.893e-05/0.1814, allocations: 20.91 kB / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.1814, allocations: 4 kB / 0.7889 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.1815, allocations: 34.56 kB / 0.789 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 2.405e-06/0.1815, allocations: 112 / 0.789 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.000246/0.1817, allocations: 105.2 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.1818, allocations: 59.34 kB / 0.7891 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005675/0.1823, allocations: 0.5524 MB / 0.7897 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.1823, allocations: 25.7 kB / 0.7897 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.1825, allocations: 176 kB / 0.7899 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.1825, allocations: 7.844 kB / 0.7899 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.1825, allocations: 17.72 kB / 0.7899 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1826, allocations: 342.8 kB / 0.7902 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.728e-05/0.1827, allocations: 12 kB / 0.7902 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.763e-05/0.1827, allocations: 11.98 kB / 0.7902 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.762e-05/0.1828, allocations: 36.84 kB / 0.7903 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.1828, allocations: 0 / 0.7903 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000151/0.183, allocations: 89.58 kB / 0.7904 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.183, allocations: 7.938 kB / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.183, allocations: 0 / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.183, allocations: 7.938 kB / 0.7904 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.462e-05/0.1831, allocations: 8.031 kB / 0.7904 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/0.1831, allocations: 0 / 0.7904 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.109e-05/0.1832, allocations: 11.98 kB / 0.7904 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.1832, allocations: 0 / 0.7904 GB, free: 5.934 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.0001366/0.1833, allocations: 186.5 kB / 0.7906 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.031e-05/0.1834, allocations: 27.62 kB / 0.7906 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001884/0.1836, allocations: 100.1 kB / 0.7907 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1836, allocations: 0 / 0.7907 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.1836, allocations: 0 / 0.7907 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1836, allocations: 0 / 0.7907 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002563/0.1839, allocations: 289.5 kB / 0.791 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1839, allocations: 3.938 kB / 0.791 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.801e-05/0.1839, allocations: 8 kB / 0.791 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1839, allocations: 0 / 0.791 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.184, allocations: 3.938 kB / 0.791 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.184, allocations: 0 / 0.791 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.184, allocations: 7.984 kB / 0.791 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.1842, allocations: 183.2 kB / 0.7912 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.473e-05/0.1842, allocations: 112.7 kB / 0.7913 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.1843, allocations: 11.88 kB / 0.7913 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.1844, allocations: 11.92 kB / 0.7913 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.241e-05/0.1844, allocations: 0 / 0.7913 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.1844, allocations: 4 kB / 0.7913 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003993/0.1848, allocations: 415.1 kB / 0.7917 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1848, allocations: 0 / 0.7917 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002493/0.1851, allocations: 31.92 kB / 0.7917 GB, free: 4.465 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.001073/0.1862, allocations: 0.9744 MB / 0.7927 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001325/0.1863, allocations: 39.91 kB / 0.7927 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.1863, allocations: 0 / 0.7927 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.035e-05/0.1864, allocations: 15.92 kB / 0.7927 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.1867, allocations: 44.83 kB / 0.7928 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.1899, allocations: 2.95 MB / 0.7957 GB, free: 488 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.1902, allocations: 0.7831 MB / 0.7964 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.53e-05/0.1903, allocations: 46.86 kB / 0.7965 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.1905, allocations: 87.41 kB / 0.7965 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of SimCode: time 2.91e-07/0.1905, allocations: 0 / 0.7965 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.2163, allocations: 5.259 MB / 0.8017 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.2166, allocations: 280.1 kB / 0.802 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/1.958, allocations: 0 / 0.802 GB, free: 10.07 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)