Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.557/2.557, allocations: 284.8 MB / 297.3 MB, free: 6.336 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001471/0.001471, allocations: 172.8 kB / 365.7 MB, free: 2.57 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.1 MB / 0.6241 GB, free: 8.168 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001103, allocations: 104.1 kB / 0.7372 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.395e-05/4.399e-05, allocations: 8 kB / 0.8574 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8613/0.8614, allocations: 115.2 MB / 0.97 GB, free: 78.23 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2368/1.098, allocations: 138 MB / 1.105 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/1.099, allocations: 72.89 kB / 1.105 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003868/1.102, allocations: 0.9292 MB / 1.106 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.894e-06/1.102, allocations: 4 kB / 1.106 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.414e-06/1.102, allocations: 0 / 1.106 GB, free: 13.46 MB / 0.7136 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.0004978/1.103, allocations: 343.4 kB / 1.106 GB, free: 13.08 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/1.103, allocations: 12.94 kB / 1.106 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/1.103, allocations: 5.109 kB / 1.106 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/1.103, allocations: 171 kB / 1.106 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/1.103, allocations: 1.469 kB / 1.106 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/1.103, allocations: 1.625 kB / 1.106 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001364/1.104, allocations: 49.69 kB / 1.106 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/1.104, allocations: 0 / 1.106 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/1.104, allocations: 0 / 1.106 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/1.104, allocations: 1 kB / 1.106 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.322e-05/1.104, allocations: 15.94 kB / 1.106 GB, free: 12.79 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005982/1.104, allocations: 289.2 kB / 1.107 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/1.105, allocations: 39.72 kB / 1.107 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.505e-05/1.105, allocations: 16.92 kB / 1.107 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001464/1.105, allocations: 86.05 kB / 1.107 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/1.105, allocations: 39.22 kB / 1.107 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.663e-06/1.105, allocations: 0 / 1.107 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0002076/1.105, allocations: 51.38 kB / 1.107 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/1.105, allocations: 54 kB / 1.107 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.062e-05/1.105, allocations: 103.2 kB / 1.107 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/1.105, allocations: 27.17 kB / 1.107 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.477e-05/1.105, allocations: 84.14 kB / 1.107 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/1.105, allocations: 3.906 kB / 1.107 GB, free: 11.9 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-06/1.105, allocations: 3.938 kB / 1.107 GB, free: 11.9 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.106, allocations: 323.4 kB / 1.107 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.85e-05/1.106, allocations: 5.281 kB / 1.107 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.478e-05/1.106, allocations: 12 kB / 1.107 GB, free: 11.56 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.121e-05/1.106, allocations: 13.47 kB / 1.107 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/1.106, allocations: 0 / 1.107 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001292/1.106, allocations: 45.69 kB / 1.107 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/1.106, allocations: 9.094 kB / 1.107 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/1.106, allocations: 0 / 1.107 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/1.106, allocations: 1.188 kB / 1.107 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/1.106, allocations: 12.48 kB / 1.107 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/1.106, allocations: 0.7031 kB / 1.107 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/1.106, allocations: 12.89 kB / 1.107 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/1.106, allocations: 2.375 kB / 1.107 GB, free: 11.46 MB / 0.7136 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 () * 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.881e-05/1.106, allocations: 112.9 kB / 1.108 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/1.106, allocations: 0 / 1.108 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/1.107, allocations: 64.17 kB / 1.108 GB, free: 11.28 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/1.107, allocations: 4 kB / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/1.107, allocations: 4 kB / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/1.107, allocations: 0 / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002192/1.107, allocations: 166.5 kB / 1.108 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/1.107, allocations: 0 / 1.108 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/1.107, allocations: 15.98 kB / 1.108 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/1.107, allocations: 0 / 1.108 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/1.107, allocations: 0 / 1.108 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/1.107, allocations: 0 / 1.108 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.107, allocations: 4 kB / 1.108 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/1.107, allocations: 151.4 kB / 1.108 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/1.107, allocations: 81.09 kB / 1.108 GB, free: 10.78 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/1.107, allocations: 4 kB / 1.108 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/1.108, allocations: 13.53 kB / 1.108 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/1.108, allocations: 7.984 kB / 1.108 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/1.108, allocations: 0 / 1.108 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.933e-05/1.108, allocations: 83.7 kB / 1.108 GB, free: 10.67 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.2e-07/1.108, allocations: 0 / 1.108 GB, free: 10.67 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003043/1.108, allocations: 19.92 kB / 1.108 GB, free: 10.65 MB / 0.7136 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 () * 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.0001948/1.108, allocations: 103.2 kB / 1.108 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001299/1.108, allocations: 20.14 kB / 1.108 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.108, allocations: 0 / 1.108 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.91e-05/1.109, allocations: 24 kB / 1.108 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/1.109, allocations: 14.36 kB / 1.108 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002763/1.109, allocations: 67.39 kB / 1.108 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/1.109, allocations: 0.677 MB / 1.109 GB, free: 9.699 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.892e-05/1.109, allocations: 5.875 kB / 1.109 GB, free: 9.695 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/1.109, allocations: 11.42 kB / 1.109 GB, free: 9.684 MB / 0.7136 GB Notification: Performance of SimCode: time 7.71e-07/1.109, allocations: 0 / 1.109 GB, free: 9.684 MB / 0.7136 GB Notification: Performance of Templates: time 0.003627/1.113, allocations: 0.5942 MB / 1.11 GB, free: 9.117 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)