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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.8611/0.8611, allocations: 128.7 MB / 143.7 MB, free: 2.301 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.001572/0.001572, allocations: 172.4 kB / 173.7 MB, free: 6.109 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.951/1.951, allocations: 205.4 MB / 409 MB, free: 10.5 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.000866/0.0008658, allocations: 85.53 kB / 486.6 MB, free: 13.01 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006005/0.000601, allocations: 14.75 kB / 0.5603 GB, free: 97.5 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2173, allocations: 76.77 MB / 0.6353 GB, free: 30.56 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.187/0.4044, allocations: 102.9 MB / 0.7358 GB, free: 7.559 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.4048, allocations: 75.95 kB / 0.7358 GB, free: 7.484 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.003382/0.4082, allocations: 0.945 MB / 0.7368 GB, free: 6.531 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.825e-06/0.4082, allocations: 0 / 0.7368 GB, free: 6.531 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.4082, allocations: 0 / 0.7368 GB, free: 6.531 MB / 0.5105 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.0005091/0.4087, allocations: 357.6 kB / 0.7371 GB, free: 6.137 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4088, allocations: 12.03 kB / 0.7371 GB, free: 6.125 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.4088, allocations: 11.95 kB / 0.7371 GB, free: 6.113 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.409, allocations: 163 kB / 0.7373 GB, free: 5.914 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.409, allocations: 0 / 0.7373 GB, free: 5.914 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.4091, allocations: 4 kB / 0.7373 GB, free: 5.91 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.4093, allocations: 69.59 kB / 0.7373 GB, free: 5.836 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.4093, allocations: 0 / 0.7373 GB, free: 5.836 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.4094, allocations: 0 / 0.7373 GB, free: 5.836 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.4094, allocations: 4 kB / 0.7373 GB, free: 5.832 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002466/0.4096, allocations: 51.95 kB / 0.7374 GB, free: 5.781 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005456/0.4102, allocations: 276.9 kB / 0.7377 GB, free: 5.461 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/0.4106, allocations: 66.47 kB / 0.7377 GB, free: 5.387 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001448/0.4108, allocations: 85.25 kB / 0.7378 GB, free: 5.285 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.4108, allocations: 34.56 kB / 0.7378 GB, free: 5.242 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.513e-06/0.4108, allocations: 0 / 0.7378 GB, free: 5.242 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0005198/0.4114, allocations: 117.5 kB / 0.738 GB, free: 5.121 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/0.4114, allocations: 51.41 kB / 0.738 GB, free: 5.059 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.435e-05/0.4115, allocations: 96.92 kB / 0.7381 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.4116, allocations: 25.7 kB / 0.7381 GB, free: 4.926 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.319e-05/0.4116, allocations: 88.14 kB / 0.7382 GB, free: 4.836 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.4117, allocations: 7.844 kB / 0.7382 GB, free: 4.828 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-06/0.4117, allocations: 0 / 0.7382 GB, free: 4.828 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4118, allocations: 314.8 kB / 0.7385 GB, free: 4.512 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.412, allocations: 27.98 kB / 0.7385 GB, free: 4.484 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.4121, allocations: 23.98 kB / 0.7386 GB, free: 4.461 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.4122, allocations: 27.97 kB / 0.7386 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4123, allocations: 3.938 kB / 0.7386 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002862/0.4126, allocations: 81.66 kB / 0.7387 GB, free: 4.344 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.4126, allocations: 4 kB / 0.7387 GB, free: 4.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.4126, allocations: 0 / 0.7387 GB, free: 4.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4126, allocations: 0 / 0.7387 GB, free: 4.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.4127, allocations: 24.5 kB / 0.7387 GB, free: 4.316 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.4128, allocations: 7.891 kB / 0.7387 GB, free: 4.309 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.905e-05/0.4129, allocations: 11.98 kB / 0.7387 GB, free: 4.297 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.4129, allocations: 0 / 0.7387 GB, free: 4.297 MB / 0.5105 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.y,fac.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.413, allocations: 105.8 kB / 0.7388 GB, free: 4.184 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.413, allocations: 7.906 kB / 0.7388 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.4134, allocations: 105.1 kB / 0.7389 GB, free: 4.062 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.4134, allocations: 0 / 0.7389 GB, free: 4.062 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4134, allocations: 0 / 0.7389 GB, free: 4.062 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.4134, allocations: 3.953 kB / 0.7389 GB, free: 4.059 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.4137, allocations: 161.7 kB / 0.7391 GB, free: 3.852 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4137, allocations: 0 / 0.7391 GB, free: 3.852 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.784e-05/0.4138, allocations: 15.98 kB / 0.7391 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.4138, allocations: 0 / 0.7391 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.4138, allocations: 0 / 0.7391 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.4138, allocations: 7.938 kB / 0.7391 GB, free: 3.828 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4138, allocations: 0 / 0.7391 GB, free: 3.828 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003546/0.4142, allocations: 187.5 kB / 0.7393 GB, free: 3.629 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.4143, allocations: 81.05 kB / 0.7394 GB, free: 3.531 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.4143, allocations: 4 kB / 0.7394 GB, free: 3.527 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4144, allocations: 14.11 kB / 0.7394 GB, free: 3.516 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.4145, allocations: 7.984 kB / 0.7394 GB, free: 3.508 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.4145, allocations: 0 / 0.7394 GB, free: 3.508 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.557e-05/0.4146, allocations: 87.28 kB / 0.7395 GB, free: 3.422 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4146, allocations: 0 / 0.7395 GB, free: 3.422 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003517/0.4149, allocations: 8 kB / 0.7395 GB, free: 3.414 MB / 0.5105 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,fac.u) * 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 (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.0002091/0.4152, allocations: 115 kB / 0.7396 GB, free: 3.293 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003026/0.4155, allocations: 63.89 kB / 0.7396 GB, free: 3.23 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4155, allocations: 0 / 0.7396 GB, free: 3.23 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.4156, allocations: 27.98 kB / 0.7397 GB, free: 3.203 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.4159, allocations: 11.88 kB / 0.7397 GB, free: 3.191 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003909/0.4163, allocations: 128.5 kB / 0.7398 GB, free: 3.039 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.4166, allocations: 0.6848 MB / 0.7405 GB, free: 2.328 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 4.051e-05/0.4167, allocations: 0 / 0.7405 GB, free: 2.328 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.591e-05/0.4167, allocations: 11.44 kB / 0.7405 GB, free: 2.316 MB / 0.5105 GB Notification: Performance of SimCode: time 3.3e-07/0.4167, allocations: 3.938 kB / 0.7405 GB, free: 2.312 MB / 0.5105 GB Notification: Performance of Templates: time 0.003351/0.4201, allocations: 0.5956 MB / 0.7411 GB, free: 1.723 MB / 0.5105 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)