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/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7417/0.7417, allocations: 127.4 MB / 134.6 MB, free: 4.074 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 181.3 kB / 164.4 MB, free: 6.871 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.862/1.862, allocations: 205.1 MB / 399.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009169/0.000917, allocations: 81.67 kB / 476.3 MB, free: 8.828 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 8.025e-06/8.045e-06, allocations: 0 / 0.546 GB, free: 42.7 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1741, allocations: 76.74 MB / 0.6209 GB, free: 13.89 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5305/0.7046, allocations: 102 MB / 0.7206 GB, free: 10.28 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.705, allocations: 71.95 kB / 0.7206 GB, free: 10.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.002895/0.7079, allocations: 0.6305 MB / 0.7212 GB, free: 9.582 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.7079, allocations: 4 kB / 0.7212 GB, free: 9.578 MB / 490.7 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.0004141/0.7084, allocations: 344.6 kB / 0.7216 GB, free: 9.199 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.7084, allocations: 8.031 kB / 0.7216 GB, free: 9.191 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.897e-05/0.7085, allocations: 7.906 kB / 0.7216 GB, free: 9.184 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.7086, allocations: 163.1 kB / 0.7217 GB, free: 8.984 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.7087, allocations: 0 / 0.7217 GB, free: 8.984 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.7087, allocations: 4 kB / 0.7217 GB, free: 8.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.945e-05/0.7088, allocations: 20.84 kB / 0.7218 GB, free: 8.961 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.7089, allocations: 45.62 kB / 0.7218 GB, free: 8.91 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.7089, allocations: 3.938 kB / 0.7218 GB, free: 8.906 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.7089, allocations: 0 / 0.7218 GB, free: 8.906 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.709, allocations: 3.906 kB / 0.7218 GB, free: 8.902 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.7095, allocations: 261.5 kB / 0.7221 GB, free: 8.609 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/0.7098, allocations: 46.61 kB / 0.7221 GB, free: 8.555 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.346e-05/0.7098, allocations: 20.83 kB / 0.7221 GB, free: 8.531 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/0.71, allocations: 81.11 kB / 0.7222 GB, free: 8.434 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.71, allocations: 38.5 kB / 0.7222 GB, free: 8.387 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.312e-06/0.7101, allocations: 0 / 0.7222 GB, free: 8.387 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002479/0.7103, allocations: 45.78 kB / 0.7223 GB, free: 8.336 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.7104, allocations: 51.41 kB / 0.7223 GB, free: 8.273 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.7105, allocations: 96.98 kB / 0.7224 GB, free: 8.172 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.7105, allocations: 25.7 kB / 0.7225 GB, free: 8.141 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.968e-05/0.7105, allocations: 92.05 kB / 0.7225 GB, free: 8.047 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.7106, allocations: 4 kB / 0.7225 GB, free: 8.043 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-06/0.7106, allocations: 0 / 0.7225 GB, free: 8.043 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.7108, allocations: 314.8 kB / 0.7228 GB, free: 7.727 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.247e-05/0.7108, allocations: 8 kB / 0.7229 GB, free: 7.719 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.694e-05/0.7108, allocations: 4 kB / 0.7229 GB, free: 7.715 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.518e-05/0.7109, allocations: 11.98 kB / 0.7229 GB, free: 7.703 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.7109, allocations: 4 kB / 0.7229 GB, free: 7.699 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001003/0.711, allocations: 49.62 kB / 0.7229 GB, free: 7.645 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.711, allocations: 8.75 kB / 0.7229 GB, free: 7.637 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.7111, allocations: 0 / 0.7229 GB, free: 7.637 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.7111, allocations: 0 / 0.7229 GB, free: 7.637 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.7112, allocations: 15.98 kB / 0.7229 GB, free: 7.621 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.7112, allocations: 0 / 0.7229 GB, free: 7.621 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.7113, allocations: 23.83 kB / 0.723 GB, free: 7.598 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.7113, allocations: 0 / 0.723 GB, free: 7.598 MB / 490.7 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 (fac.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.768e-05/0.7114, allocations: 101 kB / 0.7231 GB, free: 7.492 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.7114, allocations: 7.938 kB / 0.7231 GB, free: 7.484 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.7116, allocations: 61.22 kB / 0.7231 GB, free: 7.418 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.7116, allocations: 0 / 0.7231 GB, free: 7.418 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.7116, allocations: 3.984 kB / 0.7231 GB, free: 7.414 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.7117, allocations: 432 / 0.7231 GB, free: 7.414 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.7118, allocations: 142.2 kB / 0.7233 GB, free: 7.238 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7118, allocations: 0 / 0.7233 GB, free: 7.238 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.786e-05/0.7119, allocations: 11.98 kB / 0.7233 GB, free: 7.227 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.7119, allocations: 4 kB / 0.7233 GB, free: 7.223 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.7119, allocations: 0 / 0.7233 GB, free: 7.223 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.7119, allocations: 3.906 kB / 0.7233 GB, free: 7.219 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.712, allocations: 3.984 kB / 0.7233 GB, free: 7.215 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001505/0.7121, allocations: 147.5 kB / 0.7234 GB, free: 7.055 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.7122, allocations: 85.02 kB / 0.7235 GB, free: 6.953 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.7122, allocations: 0 / 0.7235 GB, free: 6.953 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.935e-05/0.7123, allocations: 11.98 kB / 0.7235 GB, free: 6.941 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.7124, allocations: 4 kB / 0.7235 GB, free: 6.938 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.7e-06/0.7124, allocations: 4 kB / 0.7235 GB, free: 6.934 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.571e-05/0.7124, allocations: 83.27 kB / 0.7236 GB, free: 6.852 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002243/0.7126, allocations: 11.94 kB / 0.7236 GB, free: 6.84 MB / 490.7 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,fac.u) * Number of discrete 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 (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.0001855/0.7128, allocations: 115.1 kB / 0.7237 GB, free: 6.715 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 9.056e-05/0.7129, allocations: 23.98 kB / 0.7238 GB, free: 6.691 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.7129, allocations: 2.438 kB / 0.7238 GB, free: 6.691 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3e-05/0.713, allocations: 12 kB / 0.7238 GB, free: 6.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.7132, allocations: 7.172 kB / 0.7238 GB, free: 6.676 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002644/0.7134, allocations: 67.86 kB / 0.7238 GB, free: 6.586 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003833/0.7138, allocations: 0.6954 MB / 0.7245 GB, free: 5.867 MB / 490.7 MB Notification: Performance of SimCode: time 2.8e-07/0.7138, allocations: 0 / 0.7245 GB, free: 5.867 MB / 490.7 MB Notification: Performance of Templates: time 0.003425/0.7173, allocations: 0.6695 MB / 0.7252 GB, free: 5.199 MB / 490.7 MB 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)