Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial",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.0008472/0.0008472, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.006221/0.006221, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002056/0.002055, allocations: 258.2 kB / 291.7 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9195/0.9195, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000456/0.000456, allocations: 16.2 kB / 0.5988 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1729, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.001661/0.1746, allocations: 1.252 MB / 0.6865 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004989/0.1751, allocations: 176.9 kB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.771e-05/0.1751, allocations: 0.5 kB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.254e-05/0.1752, allocations: 3.984 kB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.712e-05/0.1752, allocations: 4.562 kB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.1755, allocations: 40.48 kB / 0.6867 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.22e-05/0.1756, allocations: 28.67 kB / 0.6867 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.1758, allocations: 13.81 kB / 0.6867 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.21e-05/0.1758, allocations: 15.92 kB / 0.6867 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.227e-05/0.1759, allocations: 19.91 kB / 0.6867 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.1759, allocations: 1.656 kB / 0.6867 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.176, allocations: 43.91 kB / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.663e-05/0.176, allocations: 7.984 kB / 0.6868 GB, free: 13.37 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.006e-05/0.1761, allocations: 41.56 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.1763, allocations: 64.75 kB / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1763, allocations: 0 / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1763, allocations: 0 / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1763, allocations: 3.469 kB / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000567/0.1769, allocations: 355.5 kB / 0.6872 GB, free: 12.86 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.1769, allocations: 8.031 kB / 0.6872 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.192e-05/0.177, allocations: 30.75 kB / 0.6873 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.957e-05/0.177, allocations: 4.938 kB / 0.6873 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.1772, allocations: 172.3 kB / 0.6874 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.1772, allocations: 5 kB / 0.6874 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.1772, allocations: 1 kB / 0.6874 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/0.1774, allocations: 71.78 kB / 0.6875 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.1775, allocations: 3.938 kB / 0.6875 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.1775, allocations: 6.281 kB / 0.6875 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1775, allocations: 0 / 0.6875 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002094/0.1777, allocations: 57.2 kB / 0.6876 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004732/0.1782, allocations: 281.9 kB / 0.6879 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.1785, allocations: 64.33 kB / 0.6879 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.1787, allocations: 39.41 kB / 0.6879 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002242/0.1789, allocations: 166.2 kB / 0.6881 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.1789, allocations: 33.16 kB / 0.6881 GB, free: 11.79 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.575e-06/0.1789, allocations: 0 / 0.6881 GB, free: 11.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003972/0.1793, allocations: 119.1 kB / 0.6883 GB, free: 11.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.1794, allocations: 51.94 kB / 0.6883 GB, free: 11.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.823e-05/0.1795, allocations: 111 kB / 0.6884 GB, free: 11.49 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.1795, allocations: 25.7 kB / 0.6884 GB, free: 11.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.275e-05/0.1795, allocations: 89.06 kB / 0.6885 GB, free: 11.37 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.1795, allocations: 3.906 kB / 0.6885 GB, free: 11.37 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.1796, allocations: 21.72 kB / 0.6885 GB, free: 11.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.278e-05/0.1797, allocations: 318.8 kB / 0.6888 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.229e-05/0.1798, allocations: 23.98 kB / 0.6889 GB, free: 11 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.59e-05/0.1799, allocations: 27.97 kB / 0.6889 GB, free: 10.97 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.18, allocations: 56.77 kB / 0.689 GB, free: 10.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1801, allocations: 0 / 0.689 GB, free: 10.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002248/0.1803, allocations: 89.64 kB / 0.689 GB, free: 10.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.1803, allocations: 4 kB / 0.689 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1803, allocations: 4 kB / 0.689 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.1803, allocations: 0 / 0.689 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.888e-05/0.1804, allocations: 11.98 kB / 0.6891 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.227e-06/0.1804, allocations: 3.938 kB / 0.6891 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.928e-05/0.1805, allocations: 11.91 kB / 0.6891 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.1805, allocations: 4 kB / 0.6891 GB, free: 10.78 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (bin.y,rea2Int.y) * 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 7.643e-05/0.1806, allocations: 122.4 kB / 0.6892 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.1806, allocations: 0 / 0.6892 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002622/0.1809, allocations: 101.5 kB / 0.6893 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1809, allocations: 0 / 0.6893 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1809, allocations: 4 kB / 0.6893 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1809, allocations: 3.938 kB / 0.6893 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.1811, allocations: 169.5 kB / 0.6895 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1811, allocations: 4 kB / 0.6895 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.578e-05/0.1812, allocations: 11.98 kB / 0.6895 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1812, allocations: 0 / 0.6895 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.1812, allocations: 4 kB / 0.6895 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1812, allocations: 0 / 0.6895 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1812, allocations: 4 kB / 0.6895 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.1815, allocations: 187.8 kB / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.1816, allocations: 85.02 kB / 0.6897 GB, free: 9.992 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.1816, allocations: 4 kB / 0.6897 GB, free: 9.988 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.424e-05/0.1817, allocations: 7.984 kB / 0.6898 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.205e-05/0.1817, allocations: 12.02 kB / 0.6898 GB, free: 9.969 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1817, allocations: 4 kB / 0.6898 GB, free: 9.965 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.279e-05/0.1818, allocations: 87.58 kB / 0.6898 GB, free: 9.879 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1818, allocations: 0 / 0.6898 GB, free: 9.879 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1821, allocations: 16 kB / 0.6899 GB, free: 9.863 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,bin.y) * 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.0005886/0.1826, allocations: 0.7397 MB / 0.6906 GB, free: 9.098 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002223/0.1829, allocations: 55.95 kB / 0.6906 GB, free: 9.043 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1829, allocations: 0 / 0.6906 GB, free: 9.043 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.183, allocations: 31.97 kB / 0.6907 GB, free: 9.012 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.1833, allocations: 6.031 kB / 0.6907 GB, free: 9.008 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.1847, allocations: 1.328 MB / 0.692 GB, free: 7.605 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.1849, allocations: 0.6809 MB / 0.6926 GB, free: 6.898 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.56e-05/0.185, allocations: 4 kB / 0.6926 GB, free: 6.895 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.07e-05/0.185, allocations: 19.42 kB / 0.6927 GB, free: 6.875 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.185, allocations: 0 / 0.6927 GB, free: 6.875 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01097/0.196, allocations: 1.659 MB / 0.6943 GB, free: 5.34 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.1962, allocations: 193.4 kB / 0.6945 GB, free: 5.09 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.611/1.807, allocations: 0 / 0.6945 GB, free: 5.09 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)