Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007049/0.0007049, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0007267/0.0007267, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.157/1.157, allocations: 223.3 MB / 240 MB, free: 5.395 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 0.8599/0.8599, allocations: 143.2 MB / 434.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002788/0.0002788, allocations: 12 kB / 0.5158 GB, free: 11.49 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1318, allocations: 83.41 MB / 0.5973 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0005927/0.1325, allocations: 318.9 kB / 0.5976 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002123/0.1327, allocations: 43.84 kB / 0.5976 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.935e-06/0.1327, allocations: 0 / 0.5976 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 8.536e-06/0.1327, allocations: 0 / 0.5976 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.859e-06/0.1328, allocations: 0 / 0.5976 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001521/0.1329, allocations: 11.98 kB / 0.5976 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.193e-05/0.133, allocations: 8 kB / 0.5976 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.008e-05/0.133, allocations: 0 / 0.5976 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.22e-05/0.133, allocations: 3.984 kB / 0.5976 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.549e-05/0.1331, allocations: 7.938 kB / 0.5976 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.017e-06/0.1331, allocations: 0 / 0.5976 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.265e-05/0.1331, allocations: 15.92 kB / 0.5976 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.569e-06/0.1331, allocations: 0 / 0.5976 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.924e-05/0.1332, allocations: 25.7 kB / 0.5977 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 4.856e-05/0.1332, allocations: 4 kB / 0.5977 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1332, allocations: 0 / 0.5977 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.1332, allocations: 0 / 0.5977 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.046e-06/0.1332, allocations: 4 kB / 0.5977 GB, free: 7.594 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002284/0.1335, allocations: 315.4 kB / 0.598 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.1335, allocations: 8.031 kB / 0.598 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.084e-05/0.1335, allocations: 0 / 0.598 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.176e-05/0.1336, allocations: 163 kB / 0.5981 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.1336, allocations: 0 / 0.5981 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.1336, allocations: 4 kB / 0.5981 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.921e-05/0.1337, allocations: 29.69 kB / 0.5982 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1337, allocations: 4 kB / 0.5982 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.302e-06/0.1337, allocations: 3.938 kB / 0.5982 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.1338, allocations: 4 kB / 0.5982 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.723e-05/0.1338, allocations: 3.984 kB / 0.5982 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.1339, allocations: 157.6 kB / 0.5983 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.235e-05/0.134, allocations: 22.61 kB / 0.5984 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.258e-05/0.134, allocations: 8.922 kB / 0.5984 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.1341, allocations: 77.11 kB / 0.5984 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.1342, allocations: 42.55 kB / 0.5985 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1342, allocations: 0 / 0.5985 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001155/0.1343, allocations: 41.64 kB / 0.5985 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.1343, allocations: 51.41 kB / 0.5986 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.989e-05/0.1344, allocations: 89.86 kB / 0.5987 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.1344, allocations: 25.7 kB / 0.5987 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.228e-05/0.1344, allocations: 80.14 kB / 0.5988 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.1344, allocations: 16.02 kB / 0.5988 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-06/0.1344, allocations: 0 / 0.5988 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.635e-05/0.1345, allocations: 322.8 kB / 0.5991 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.924e-06/0.1346, allocations: 3.938 kB / 0.5991 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.105e-06/0.1346, allocations: 4 kB / 0.5991 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.697e-05/0.1346, allocations: 3.953 kB / 0.5991 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1346, allocations: 0 / 0.5991 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.623e-05/0.1347, allocations: 45.62 kB / 0.5991 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.1347, allocations: 8.094 kB / 0.5991 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/0.1347, allocations: 4 kB / 0.5991 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.1347, allocations: 0 / 0.5991 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.79e-05/0.1347, allocations: 4 kB / 0.5992 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.1348, allocations: 0 / 0.5992 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.05e-05/0.1348, allocations: 0 / 0.5992 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-06/0.1348, allocations: 0 / 0.5992 GB, free: 5.848 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.467e-05/0.1348, allocations: 113.8 kB / 0.5993 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.942e-06/0.1349, allocations: 0 / 0.5993 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.42e-05/0.1349, allocations: 49.03 kB / 0.5993 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1349, allocations: 4 kB / 0.5993 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.135, allocations: 0 / 0.5993 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.135, allocations: 0 / 0.5993 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.387e-05/0.135, allocations: 153.6 kB / 0.5995 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1351, allocations: 3.953 kB / 0.5995 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.043e-05/0.1351, allocations: 4 kB / 0.5995 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1351, allocations: 0 / 0.5995 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.1351, allocations: 4 kB / 0.5995 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1351, allocations: 4 kB / 0.5995 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1351, allocations: 0 / 0.5995 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.233e-05/0.1352, allocations: 65.16 kB / 0.5995 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.413e-05/0.1352, allocations: 81.06 kB / 0.5996 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.814e-06/0.1352, allocations: 0 / 0.5996 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.059e-05/0.1352, allocations: 4 kB / 0.5996 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.587e-05/0.1353, allocations: 11.92 kB / 0.5996 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.1353, allocations: 0 / 0.5996 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.97e-05/0.1353, allocations: 75.28 kB / 0.5997 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1353, allocations: 4.031 kB / 0.5997 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001649/0.1355, allocations: 8 kB / 0.5997 GB, free: 5.176 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001397/0.1356, allocations: 103.2 kB / 0.5998 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.606e-05/0.1357, allocations: 15.98 kB / 0.5998 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1357, allocations: 0 / 0.5998 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.264e-05/0.1357, allocations: 4 kB / 0.5998 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001138/0.1358, allocations: 0 / 0.5998 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001506/0.136, allocations: 97.53 kB / 0.5999 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.1362, allocations: 0.677 MB / 0.6006 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.163e-05/0.1362, allocations: 0 / 0.6006 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.14e-05/0.1362, allocations: 7.438 kB / 0.6006 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of SimCode: time 1.9e-07/0.1362, allocations: 0 / 0.6006 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of Templates: time 0.001894/0.1381, allocations: 312.2 kB / 0.6009 GB, free: 3.91 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)