Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7182/0.7182, allocations: 140.1 MB / 156 MB, free: 5.176 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009539/0.0009538, allocations: 179.4 kB / 188.5 MB, free: 15.82 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.4 MB / 426.3 MB, free: 8.473 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007317/0.0007317, allocations: 93.3 kB / 0.4945 GB, free: 8.418 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001735/0.001735, allocations: 269.8 kB / 0.5728 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.000449, allocations: 19.98 kB / 0.662 GB, free: 6.801 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3794, allocations: 79.31 MB / 0.7395 GB, free: 46.34 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.5093, allocations: 107.4 MB / 0.8444 GB, free: 2.793 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.5096, allocations: 75.95 kB / 0.8444 GB, free: 2.719 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.002548/0.5121, allocations: 0.9318 MB / 0.8453 GB, free: 1.785 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.275e-06/0.5121, allocations: 0 / 0.8453 GB, free: 1.785 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.5122, allocations: 4 kB / 0.8453 GB, free: 1.781 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.0003877/0.5126, allocations: 351.4 kB / 0.8457 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.5126, allocations: 12.03 kB / 0.8457 GB, free: 1.375 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.876e-05/0.5126, allocations: 4.875 kB / 0.8457 GB, free: 1.371 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.5128, allocations: 164.4 kB / 0.8459 GB, free: 1.172 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.5128, allocations: 8.375 kB / 0.8459 GB, free: 1.164 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.5128, allocations: 4.375 kB / 0.8459 GB, free: 1.16 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/0.513, allocations: 62.22 kB / 0.8459 GB, free: 1.094 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.513, allocations: 192 / 0.8459 GB, free: 1.094 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.513, allocations: 7.938 kB / 0.8459 GB, free: 1.086 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.513, allocations: 0 / 0.8459 GB, free: 1.086 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.5132, allocations: 51.95 kB / 0.846 GB, free: 1.035 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.5137, allocations: 284.8 kB / 0.8463 GB, free: 0.707 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002785/0.514, allocations: 66.47 kB / 0.8463 GB, free: 0.6328 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.498e-05/0.5141, allocations: 32.89 kB / 0.8464 GB, free: 0.5977 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001262/0.5142, allocations: 81.11 kB / 0.8464 GB, free: 0.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.5142, allocations: 38.56 kB / 0.8465 GB, free: 464 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.503e-06/0.5142, allocations: 0 / 0.8465 GB, free: 464 kB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0003733/0.5146, allocations: 113.5 kB / 0.8466 GB, free: 344 kB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.5147, allocations: 55.41 kB / 0.8466 GB, free: 276 kB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.418e-05/0.5148, allocations: 97.86 kB / 0.8467 GB, free: 168 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.5148, allocations: 25.7 kB / 0.8467 GB, free: 136 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.5148, allocations: 84.12 kB / 0.8468 GB, free: 48 kB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.5149, allocations: 11.91 kB / 0.8468 GB, free: 36 kB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/0.5149, allocations: 0 / 0.8468 GB, free: 36 kB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.515, allocations: 310.8 kB / 0.8471 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.924e-05/0.5151, allocations: 31.97 kB / 0.8472 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.679e-05/0.5152, allocations: 27.92 kB / 0.8472 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.5153, allocations: 60.75 kB / 0.8472 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5154, allocations: 3.938 kB / 0.8473 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002072/0.5156, allocations: 81.66 kB / 0.8473 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.5156, allocations: 5.25 kB / 0.8473 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.5156, allocations: 4 kB / 0.8473 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.5156, allocations: 0 / 0.8473 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.925e-05/0.5157, allocations: 15.98 kB / 0.8474 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.5157, allocations: 0 / 0.8474 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.619e-05/0.5158, allocations: 11.89 kB / 0.8474 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.5158, allocations: 7.938 kB / 0.8474 GB, free: 15.47 MB / 0.5261 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 8.55e-05/0.5159, allocations: 117.8 kB / 0.8475 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.5159, allocations: 4 kB / 0.8475 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002562/0.5162, allocations: 89.08 kB / 0.8476 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.5162, allocations: 0 / 0.8476 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.5162, allocations: 4 kB / 0.8476 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.5162, allocations: 4 kB / 0.8476 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.5164, allocations: 165.6 kB / 0.8477 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.5164, allocations: 0 / 0.8477 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.349e-05/0.5165, allocations: 15.98 kB / 0.8478 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.5165, allocations: 0 / 0.8478 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.5165, allocations: 0 / 0.8478 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.5165, allocations: 0 / 0.8478 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.5165, allocations: 0 / 0.8478 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002617/0.5168, allocations: 191.9 kB / 0.8479 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.925e-05/0.5168, allocations: 81.02 kB / 0.848 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.5168, allocations: 0 / 0.848 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.472e-05/0.5169, allocations: 19.98 kB / 0.848 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.814e-05/0.517, allocations: 7.984 kB / 0.848 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.517, allocations: 4 kB / 0.848 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.764e-05/0.517, allocations: 83.25 kB / 0.8481 GB, free: 14.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5171, allocations: 4 kB / 0.8481 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002117/0.5173, allocations: 15.94 kB / 0.8481 GB, free: 14.58 MB / 0.5261 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.0001492/0.5174, allocations: 111.2 kB / 0.8482 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.5177, allocations: 55.95 kB / 0.8483 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5177, allocations: 0 / 0.8483 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 9.397e-05/0.5178, allocations: 31.92 kB / 0.8483 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.518, allocations: 18.5 kB / 0.8484 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002752/0.5183, allocations: 114.9 kB / 0.8485 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.5186, allocations: 0.6731 MB / 0.8491 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 3.847e-05/0.5186, allocations: 7.984 kB / 0.8491 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.09e-05/0.5187, allocations: 7.438 kB / 0.8491 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of SimCode: time 2.4e-07/0.5187, allocations: 8 kB / 0.8491 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.002579/0.5213, allocations: 0.594 MB / 0.8497 GB, free: 12.9 MB / 0.5261 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)