Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, 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.001208/0.001208, allocations: 197.8 kB / 16.14 MB, free: 6.688 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.409/1.409, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.004/1.004, allocations: 143 MB / 433 MB, free: 11.67 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 63.91 kB / 0.5135 GB, free: 12.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1787, allocations: 82.04 MB / 0.5936 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002737/0.1815, allocations: 1.577 MB / 0.5951 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000382/0.1819, allocations: 128.5 kB / 0.5953 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.518e-05/0.1819, allocations: 0 / 0.5953 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.713e-05/0.182, allocations: 0 / 0.5953 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.834e-05/0.1821, allocations: 7.938 kB / 0.5953 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.1823, allocations: 15.98 kB / 0.5953 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.295e-05/0.1823, allocations: 23.92 kB / 0.5953 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.475e-05/0.1824, allocations: 8 kB / 0.5953 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.737e-05/0.1825, allocations: 19.91 kB / 0.5953 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.19e-05/0.1826, allocations: 15.98 kB / 0.5954 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.1826, allocations: 0 / 0.5954 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.911e-05/0.1826, allocations: 4 kB / 0.5954 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.639e-05/0.1827, allocations: 11.94 kB / 0.5954 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.961e-05/0.1827, allocations: 19.92 kB / 0.5954 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.1828, allocations: 31.89 kB / 0.5954 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1828, allocations: 4 kB / 0.5954 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.32e-07/0.1828, allocations: 0 / 0.5954 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.1828, allocations: 0 / 0.5954 GB, free: 8.164 MB / 0.4981 GB 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.0004849/0.1833, allocations: 347.7 kB / 0.5958 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1834, allocations: 8.031 kB / 0.5958 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.1834, allocations: 0.9375 kB / 0.5958 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.1836, allocations: 164.4 kB / 0.5959 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.1836, allocations: 8.312 kB / 0.5959 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.1836, allocations: 4.375 kB / 0.5959 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002186/0.1838, allocations: 62.16 kB / 0.596 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1838, allocations: 192 / 0.596 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.1839, allocations: 3.938 kB / 0.596 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1839, allocations: 4 kB / 0.596 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.1841, allocations: 35.95 kB / 0.596 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003961/0.1845, allocations: 268.9 kB / 0.5963 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00035/0.1848, allocations: 62.41 kB / 0.5964 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.546e-05/0.1849, allocations: 20.91 kB / 0.5964 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.1851, allocations: 89.09 kB / 0.5965 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.1851, allocations: 38.55 kB / 0.5965 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1851, allocations: 0 / 0.5965 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004026/0.1855, allocations: 89.62 kB / 0.5966 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.1856, allocations: 59.34 kB / 0.5966 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.134e-05/0.1856, allocations: 97.86 kB / 0.5967 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.1857, allocations: 25.7 kB / 0.5968 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.154e-05/0.1857, allocations: 92.12 kB / 0.5968 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.1858, allocations: 11.84 kB / 0.5969 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.1858, allocations: 13.72 kB / 0.5969 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1859, allocations: 314.8 kB / 0.5972 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.421e-05/0.186, allocations: 19.97 kB / 0.5972 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.014e-05/0.1861, allocations: 15.98 kB / 0.5972 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001747/0.1863, allocations: 52.81 kB / 0.5972 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1863, allocations: 7.875 kB / 0.5973 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002108/0.1865, allocations: 77.5 kB / 0.5973 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1866, allocations: 10.19 kB / 0.5973 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1866, allocations: 4 kB / 0.5973 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1866, allocations: 3.984 kB / 0.5973 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.144e-05/0.1867, allocations: 8 kB / 0.5974 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1867, allocations: 4 kB / 0.5974 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.822e-05/0.1867, allocations: 7.984 kB / 0.5974 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1868, allocations: 0 / 0.5974 GB, free: 5.93 MB / 0.4981 GB 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 9.3e-05/0.1869, allocations: 113.8 kB / 0.5975 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.1869, allocations: 4 kB / 0.5975 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002628/0.1872, allocations: 77.14 kB / 0.5976 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1872, allocations: 7.984 kB / 0.5976 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.1872, allocations: 4 kB / 0.5976 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1872, allocations: 0 / 0.5976 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.1874, allocations: 165.5 kB / 0.5977 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1874, allocations: 3.984 kB / 0.5977 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.366e-05/0.1875, allocations: 8 kB / 0.5977 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1875, allocations: 3.938 kB / 0.5977 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.1875, allocations: 7.984 kB / 0.5977 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1875, allocations: 0 / 0.5977 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1875, allocations: 0 / 0.5977 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002738/0.1878, allocations: 176 kB / 0.5979 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.405e-05/0.1878, allocations: 81.02 kB / 0.598 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.1878, allocations: 3.984 kB / 0.598 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-05/0.1879, allocations: 4.047 kB / 0.598 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.789e-05/0.188, allocations: 11.97 kB / 0.598 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.188, allocations: 4 kB / 0.598 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.439e-05/0.188, allocations: 83.28 kB / 0.5981 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1881, allocations: 0 / 0.5981 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002232/0.1883, allocations: 8 kB / 0.5981 GB, free: 5.074 MB / 0.4981 GB 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.0001487/0.1884, allocations: 103.2 kB / 0.5982 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002516/0.1887, allocations: 47.95 kB / 0.5982 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1887, allocations: 3.938 kB / 0.5982 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.1888, allocations: 31.97 kB / 0.5983 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.1891, allocations: 3.938 kB / 0.5983 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002981/0.1894, allocations: 119.2 kB / 0.5984 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.1897, allocations: 0.677 MB / 0.5991 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.673e-05/0.1897, allocations: 8 kB / 0.5991 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.385e-05/0.1897, allocations: 7.438 kB / 0.5991 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1897, allocations: 0 / 0.5991 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of Templates: time 0.002722/0.1925, allocations: 0.6188 MB / 0.5997 GB, free: 3.402 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)