Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",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.0007168/0.0007169, allocations: 91.84 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.004736/0.004736, allocations: 169.9 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.304/1.304, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001726/0.001726, allocations: 267.2 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.908/0.908, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004036/0.0004037, allocations: 15.22 kB / 0.5988 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1636, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.001558/0.1652, allocations: 1.229 MB / 0.6864 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003377/0.1655, allocations: 126 kB / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.374e-05/0.1655, allocations: 4 kB / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.1656, allocations: 0 / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.102e-05/0.1656, allocations: 0 / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.1658, allocations: 17.02 kB / 0.6866 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.878e-05/0.1659, allocations: 23.98 kB / 0.6866 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.58e-05/0.166, allocations: 15.56 kB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.301e-05/0.166, allocations: 15.91 kB / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.492e-05/0.1661, allocations: 8 kB / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.1661, allocations: 4 kB / 0.6866 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.285e-05/0.1662, allocations: 19.86 kB / 0.6867 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.1662, allocations: 0 / 0.6867 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.718e-05/0.1662, allocations: 37.64 kB / 0.6867 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.98e-05/0.1663, allocations: 39.81 kB / 0.6867 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1663, allocations: 0.5 kB / 0.6867 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1663, allocations: 2.156 kB / 0.6867 GB, free: 13.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1663, allocations: 0 / 0.6867 GB, free: 13.41 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003967/0.1667, allocations: 339.6 kB / 0.6871 GB, free: 13.03 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.1668, allocations: 12.77 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.138e-05/0.1668, allocations: 30.75 kB / 0.6871 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.419e-05/0.1669, allocations: 11 kB / 0.6871 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.167, allocations: 160.4 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.167, allocations: 384 / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.167, allocations: 4.375 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.1672, allocations: 72.59 kB / 0.6873 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1672, allocations: 3.938 kB / 0.6873 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.1672, allocations: 0 / 0.6873 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.1672, allocations: 0 / 0.6873 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.1674, allocations: 58.39 kB / 0.6874 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003376/0.1678, allocations: 262 kB / 0.6876 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.1681, allocations: 68.34 kB / 0.6877 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.1682, allocations: 30.56 kB / 0.6877 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/0.1683, allocations: 89.03 kB / 0.6878 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.1684, allocations: 34.56 kB / 0.6879 GB, free: 12.08 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1684, allocations: 0 / 0.6879 GB, free: 12.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003899/0.1688, allocations: 113.5 kB / 0.688 GB, free: 11.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.1688, allocations: 55.41 kB / 0.688 GB, free: 11.89 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.374e-05/0.1689, allocations: 94.05 kB / 0.6881 GB, free: 11.79 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.1689, allocations: 29.7 kB / 0.6881 GB, free: 11.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.161e-05/0.169, allocations: 84.12 kB / 0.6882 GB, free: 11.67 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.169, allocations: 11.84 kB / 0.6882 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.258e-05/0.169, allocations: 9.719 kB / 0.6882 GB, free: 11.64 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.677e-05/0.1691, allocations: 318.8 kB / 0.6885 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.593e-05/0.1692, allocations: 27.97 kB / 0.6886 GB, free: 11.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.001e-05/0.1693, allocations: 24.11 kB / 0.6886 GB, free: 11.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.1695, allocations: 68.83 kB / 0.6887 GB, free: 11.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1695, allocations: 0 / 0.6887 GB, free: 11.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002293/0.1697, allocations: 81.66 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1698, allocations: 11.94 kB / 0.6887 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1698, allocations: 0 / 0.6887 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.1698, allocations: 4 kB / 0.6887 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.843e-05/0.1699, allocations: 11.98 kB / 0.6888 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.1699, allocations: 0 / 0.6888 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.9e-05/0.1699, allocations: 11.98 kB / 0.6888 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.17, allocations: 0 / 0.6888 GB, free: 11.08 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 (rea2Int.y,fac.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.587e-05/0.17, allocations: 126.4 kB / 0.6889 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.1701, allocations: 3.906 kB / 0.6889 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.1703, allocations: 89.14 kB / 0.689 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1703, allocations: 0 / 0.689 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1704, allocations: 4 kB / 0.689 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1704, allocations: 0 / 0.689 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.1705, allocations: 169.6 kB / 0.6891 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1705, allocations: 0 / 0.6891 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.272e-05/0.1706, allocations: 11.98 kB / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1706, allocations: 0 / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1706, allocations: 8 kB / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1706, allocations: 0 / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1706, allocations: 0 / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.1709, allocations: 187.4 kB / 0.6893 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.498e-05/0.1709, allocations: 77.11 kB / 0.6894 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.171, allocations: 4 kB / 0.6894 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.171, allocations: 11.98 kB / 0.6894 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.1711, allocations: 7.984 kB / 0.6894 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.1711, allocations: 8 kB / 0.6894 GB, free: 10.28 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.193e-05/0.1711, allocations: 79.28 kB / 0.6895 GB, free: 10.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1711, allocations: 0 / 0.6895 GB, free: 10.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.1714, allocations: 11.94 kB / 0.6895 GB, free: 10.19 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 (fac.y,rea2Int.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.0005309/0.1719, allocations: 0.7243 MB / 0.6902 GB, free: 9.438 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000227/0.1721, allocations: 59.98 kB / 0.6903 GB, free: 9.379 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1722, allocations: 0 / 0.6903 GB, free: 9.379 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.1723, allocations: 31.97 kB / 0.6903 GB, free: 9.348 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.1725, allocations: 8 kB / 0.6903 GB, free: 9.34 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.1729, allocations: 150.8 kB / 0.6905 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/0.1732, allocations: 0.677 MB / 0.6911 GB, free: 8.453 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.094e-05/0.1732, allocations: 4 kB / 0.6911 GB, free: 8.449 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.1733, allocations: 19.36 kB / 0.6912 GB, free: 8.43 MB / 494.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1733, allocations: 3.938 kB / 0.6912 GB, free: 8.426 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01106/0.1843, allocations: 1.31 MB / 0.6924 GB, free: 7.242 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.1846, allocations: 201.4 kB / 0.6926 GB, free: 6.988 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/1.833, allocations: 0 / 0.6926 GB, free: 6.988 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)