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.001226/0.001226, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009012/0.009012, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.478/1.478, allocations: 223.3 MB / 240.3 MB, free: 5.363 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.122/1.122, allocations: 143.2 MB / 434.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005964/0.0005967, allocations: 8 kB / 0.5164 GB, free: 11.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.207, allocations: 83.41 MB / 0.5978 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.001583/0.2087, allocations: 1.235 MB / 0.599 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003356/0.209, allocations: 120.5 kB / 0.5992 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.236e-05/0.2091, allocations: 4 kB / 0.5992 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.063e-05/0.2091, allocations: 7.922 kB / 0.5992 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.039e-05/0.2091, allocations: 0 / 0.5992 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001734/0.2093, allocations: 19.97 kB / 0.5992 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.879e-05/0.2094, allocations: 27.88 kB / 0.5992 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.797e-05/0.2095, allocations: 11.98 kB / 0.5992 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.664e-05/0.2095, allocations: 4 kB / 0.5992 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.2096, allocations: 19.92 kB / 0.5992 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.2096, allocations: 7.984 kB / 0.5993 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.138e-05/0.2096, allocations: 11.98 kB / 0.5993 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.2097, allocations: 0 / 0.5993 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.691e-05/0.2097, allocations: 37.64 kB / 0.5993 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.58e-05/0.2098, allocations: 31.89 kB / 0.5993 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2098, allocations: 0 / 0.5993 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2098, allocations: 0 / 0.5993 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.216e-06/0.2098, allocations: 0 / 0.5993 GB, free: 6.191 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.0004232/0.2103, allocations: 351.7 kB / 0.5997 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2103, allocations: 8.031 kB / 0.5997 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.528e-05/0.2103, allocations: 0.9375 kB / 0.5997 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.2105, allocations: 176.3 kB / 0.5998 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.2105, allocations: 384 / 0.5998 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.2105, allocations: 4.375 kB / 0.5999 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.2107, allocations: 66.17 kB / 0.5999 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.281e-06/0.2107, allocations: 192 / 0.5999 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.2107, allocations: 7.938 kB / 0.5999 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2107, allocations: 0 / 0.5999 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.2109, allocations: 51.95 kB / 0.6 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003335/0.2113, allocations: 268.9 kB / 0.6002 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.2116, allocations: 70.34 kB / 0.6003 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.2117, allocations: 32.91 kB / 0.6003 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.2118, allocations: 85.09 kB / 0.6004 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.2118, allocations: 34.56 kB / 0.6004 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2118, allocations: 0 / 0.6004 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003737/0.2122, allocations: 109.6 kB / 0.6005 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.2122, allocations: 51.41 kB / 0.6006 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.658e-05/0.2123, allocations: 105.8 kB / 0.6007 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.2123, allocations: 25.7 kB / 0.6007 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.598e-05/0.2124, allocations: 80.14 kB / 0.6008 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.2124, allocations: 15.84 kB / 0.6008 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/0.2124, allocations: 17.7 kB / 0.6008 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.337e-05/0.2125, allocations: 310.8 kB / 0.6011 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.43e-05/0.2126, allocations: 23.98 kB / 0.6011 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.739e-05/0.2127, allocations: 27.97 kB / 0.6012 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.2129, allocations: 57.3 kB / 0.6012 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.2129, allocations: 3.938 kB / 0.6012 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002215/0.2131, allocations: 89.62 kB / 0.6013 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.2132, allocations: 6.031 kB / 0.6013 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2132, allocations: 3.984 kB / 0.6013 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2132, allocations: 0 / 0.6013 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.053e-05/0.2133, allocations: 15.98 kB / 0.6013 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.2133, allocations: 0 / 0.6013 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.289e-05/0.2134, allocations: 15.91 kB / 0.6014 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.2134, allocations: 7.984 kB / 0.6014 GB, free: 3.867 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 7.782e-05/0.2135, allocations: 109.8 kB / 0.6015 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.2135, allocations: 4 kB / 0.6015 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.2138, allocations: 93.08 kB / 0.6016 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2138, allocations: 7.938 kB / 0.6016 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2138, allocations: 0 / 0.6016 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2138, allocations: 0 / 0.6016 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.214, allocations: 165.6 kB / 0.6017 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.214, allocations: 0 / 0.6017 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.487e-05/0.214, allocations: 15.98 kB / 0.6017 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2141, allocations: 0 / 0.6017 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.2141, allocations: 0 / 0.6017 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2141, allocations: 4 kB / 0.6017 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2141, allocations: 0 / 0.6017 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002539/0.2143, allocations: 183.4 kB / 0.6019 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.207e-05/0.2144, allocations: 85.02 kB / 0.602 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.092e-05/0.2144, allocations: 4 kB / 0.602 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.744e-05/0.2145, allocations: 11.98 kB / 0.602 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.2146, allocations: 7.875 kB / 0.602 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.2146, allocations: 4 kB / 0.602 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.126e-05/0.2146, allocations: 87.27 kB / 0.6021 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2146, allocations: 0 / 0.6021 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002176/0.2149, allocations: 4 kB / 0.6021 GB, free: 2.992 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.0001542/0.215, allocations: 103.2 kB / 0.6022 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.2153, allocations: 55.95 kB / 0.6023 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2153, allocations: 0 / 0.6023 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.2154, allocations: 31.97 kB / 0.6023 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.2156, allocations: 7.938 kB / 0.6023 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003035/0.216, allocations: 124.6 kB / 0.6024 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2162, allocations: 0.677 MB / 0.6031 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.43e-05/0.2162, allocations: 8 kB / 0.6031 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.562e-05/0.2163, allocations: 11.44 kB / 0.6031 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of SimCode: time 3.6e-07/0.2163, allocations: 0 / 0.6031 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of Templates: time 0.002736/0.219, allocations: 0.6128 MB / 0.6037 GB, free: 1.305 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)