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/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.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") [: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.7678/0.7678, allocations: 127.4 MB / 134.6 MB, free: 4.082 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.001213/0.001213, allocations: 181.3 kB / 164.4 MB, free: 6.879 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.878/1.878, allocations: 205.1 MB / 399.1 MB, free: 6.09 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.0009551/0.0009551, allocations: 78.75 kB / 476.3 MB, free: 8.844 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.155e-05/1.158e-05, allocations: 0 / 0.546 GB, free: 42.75 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1958, allocations: 76.75 MB / 0.6209 GB, free: 13.93 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6043/0.8002, allocations: 101.1 MB / 0.7196 GB, free: 11.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003618/0.8006, allocations: 79.95 kB / 0.7197 GB, free: 11.22 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.001395/0.802, allocations: 221.8 kB / 0.7199 GB, free: 11.01 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.802, allocations: 0.6562 kB / 0.7199 GB, free: 11.01 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003875/0.8025, allocations: 316.5 kB / 0.7202 GB, free: 10.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.817e-05/0.8026, allocations: 8.031 kB / 0.7202 GB, free: 10.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.8026, allocations: 3.938 kB / 0.7202 GB, free: 10.65 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.8028, allocations: 163.1 kB / 0.7204 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.8028, allocations: 0 / 0.7204 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.8029, allocations: 8 kB / 0.7204 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.949e-05/0.8029, allocations: 7.938 kB / 0.7204 GB, free: 10.44 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.962e-05/0.803, allocations: 37.59 kB / 0.7204 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.8031, allocations: 0 / 0.7204 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.8031, allocations: 0 / 0.7204 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.8031, allocations: 0 / 0.7204 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002045/0.8033, allocations: 126.2 kB / 0.7206 GB, free: 10.23 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.465e-05/0.8034, allocations: 26.61 kB / 0.7206 GB, free: 10.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.392e-05/0.8034, allocations: 4.859 kB / 0.7206 GB, free: 10.19 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002253/0.8037, allocations: 89.09 kB / 0.7207 GB, free: 10.09 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.8037, allocations: 34.5 kB / 0.7207 GB, free: 10.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.8037, allocations: 0 / 0.7207 GB, free: 10.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002221/0.8039, allocations: 45.59 kB / 0.7208 GB, free: 9.992 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.804, allocations: 51.41 kB / 0.7208 GB, free: 9.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.672e-05/0.8041, allocations: 85 kB / 0.7209 GB, free: 9.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.8041, allocations: 29.73 kB / 0.7209 GB, free: 9.805 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.702e-05/0.8042, allocations: 80.14 kB / 0.721 GB, free: 9.723 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.215e-05/0.8042, allocations: 4 kB / 0.721 GB, free: 9.719 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-06/0.8042, allocations: 0 / 0.721 GB, free: 9.719 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.8044, allocations: 310.8 kB / 0.7213 GB, free: 9.406 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-06/0.8044, allocations: 0 / 0.7213 GB, free: 9.406 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.325e-06/0.8044, allocations: 4 kB / 0.7213 GB, free: 9.402 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.988e-05/0.8045, allocations: 4 kB / 0.7213 GB, free: 9.398 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.8045, allocations: 4.062 kB / 0.7213 GB, free: 9.395 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.898e-05/0.8046, allocations: 45.53 kB / 0.7213 GB, free: 9.344 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.8046, allocations: 4 kB / 0.7214 GB, free: 9.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.8046, allocations: 4 kB / 0.7214 GB, free: 9.336 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.8047, allocations: 0 / 0.7214 GB, free: 9.336 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.103e-05/0.8047, allocations: 0 / 0.7214 GB, free: 9.336 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.8047, allocations: 4 kB / 0.7214 GB, free: 9.332 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.407e-05/0.8048, allocations: 0 / 0.7214 GB, free: 9.332 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.8048, allocations: 0 / 0.7214 GB, free: 9.332 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,n) * Number of discrete 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 0.000103/0.8049, allocations: 105 kB / 0.7215 GB, free: 9.223 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.8049, allocations: 7.891 kB / 0.7215 GB, free: 9.215 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001528/0.8051, allocations: 40.86 kB / 0.7215 GB, free: 9.172 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.8051, allocations: 0 / 0.7215 GB, free: 9.172 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.8051, allocations: 0 / 0.7215 GB, free: 9.172 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.8051, allocations: 7.984 kB / 0.7215 GB, free: 9.164 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.8052, allocations: 126.2 kB / 0.7216 GB, free: 9.004 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.8052, allocations: 7.844 kB / 0.7216 GB, free: 8.996 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.45e-05/0.8053, allocations: 7.938 kB / 0.7216 GB, free: 8.988 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.8053, allocations: 0 / 0.7216 GB, free: 8.988 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-06/0.8053, allocations: 4.031 kB / 0.7217 GB, free: 8.984 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.8053, allocations: 0 / 0.7217 GB, free: 8.984 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.8053, allocations: 2.938 kB / 0.7217 GB, free: 8.984 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000173/0.8055, allocations: 61.12 kB / 0.7217 GB, free: 8.906 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.127e-05/0.8056, allocations: 85.02 kB / 0.7218 GB, free: 8.805 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.8056, allocations: 0 / 0.7218 GB, free: 8.805 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.8056, allocations: 0 / 0.7218 GB, free: 8.805 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.8057, allocations: 8.016 kB / 0.7218 GB, free: 8.797 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.8057, allocations: 0 / 0.7218 GB, free: 8.797 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.934e-05/0.8057, allocations: 79.28 kB / 0.7219 GB, free: 8.719 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002217/0.806, allocations: 4 kB / 0.7219 GB, free: 8.715 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,n) * Number of discrete 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.0003302/0.8063, allocations: 99.25 kB / 0.722 GB, free: 8.609 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 9.78e-05/0.8064, allocations: 19.92 kB / 0.722 GB, free: 8.59 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.8064, allocations: 0 / 0.722 GB, free: 8.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.698e-05/0.8064, allocations: 4 kB / 0.722 GB, free: 8.586 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.8066, allocations: 4.125 kB / 0.722 GB, free: 8.582 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002622/0.8068, allocations: 40.08 kB / 0.722 GB, free: 8.52 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004166/0.8073, allocations: 0.688 MB / 0.7227 GB, free: 7.805 MB / 490.7 MB Notification: Performance of SimCode: time 2.4e-07/0.8073, allocations: 0 / 0.7227 GB, free: 7.805 MB / 490.7 MB Notification: Performance of Templates: time 0.002887/0.8102, allocations: 358.8 kB / 0.7231 GB, free: 7.457 MB / 490.7 MB 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)