Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.915/3.915, allocations: 251.1 MB / 266.7 MB, free: 11.65 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002527/0.002527, allocations: 177.4 kB / 326.2 MB, free: 2.887 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.146/4.146, allocations: 205.4 MB / 0.5772 GB, free: 20.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001424/0.001424, allocations: 98.91 kB / 0.6817 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0008083/0.0008088, allocations: 16.48 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3661, allocations: 106.3 MB / 0.8995 GB, free: 65.56 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3456/0.7118, allocations: 131.8 MB / 1.028 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000352/0.7123, allocations: 75.97 kB / 1.028 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005272/0.7176, allocations: 0.9307 MB / 1.029 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.737e-06/0.7176, allocations: 0 / 1.029 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.729e-06/0.7177, allocations: 0 / 1.029 GB, free: 12.6 MB / 0.6823 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.0007161/0.7184, allocations: 355.4 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/0.7185, allocations: 8.031 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.116e-05/0.7185, allocations: 4.938 kB / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.7188, allocations: 172.3 kB / 1.03 GB, free: 11.98 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.7188, allocations: 4.375 kB / 1.03 GB, free: 11.98 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.791e-05/0.7188, allocations: 384 / 1.03 GB, free: 11.98 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.7192, allocations: 70.17 kB / 1.03 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.7193, allocations: 192 / 1.03 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.7193, allocations: 7.938 kB / 1.03 GB, free: 11.9 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.7193, allocations: 0 / 1.03 GB, free: 11.9 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004477/0.7198, allocations: 51.95 kB / 1.03 GB, free: 11.85 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008353/0.7206, allocations: 284.9 kB / 1.03 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007011/0.7214, allocations: 70.47 kB / 1.03 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/0.7217, allocations: 32.83 kB / 1.03 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002178/0.7219, allocations: 85.09 kB / 1.03 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.722, allocations: 34.56 kB / 1.03 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 4.609e-06/0.722, allocations: 0 / 1.03 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0008926/0.7229, allocations: 101.6 kB / 1.03 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.723, allocations: 59.39 kB / 1.03 GB, free: 11.09 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.7232, allocations: 101.9 kB / 1.031 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.7232, allocations: 29.64 kB / 1.031 GB, free: 10.94 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.103e-05/0.7233, allocations: 84.14 kB / 1.031 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.7233, allocations: 11.89 kB / 1.031 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.091e-05/0.7234, allocations: 0 / 1.031 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.7236, allocations: 314.8 kB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.7238, allocations: 23.98 kB / 1.031 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.724, allocations: 31.97 kB / 1.031 GB, free: 10.47 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.7243, allocations: 19.98 kB / 1.031 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.7243, allocations: 7.938 kB / 1.031 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005661/0.7249, allocations: 85.56 kB / 1.031 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.7249, allocations: 4 kB / 1.031 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.725, allocations: 0 / 1.031 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.725, allocations: 3.984 kB / 1.031 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.7252, allocations: 12 kB / 1.031 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.7253, allocations: 0 / 1.031 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.7254, allocations: 11.98 kB / 1.031 GB, free: 10.32 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.7255, allocations: 11.94 kB / 1.031 GB, free: 10.31 MB / 0.6823 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.0001861/0.7257, allocations: 110.9 kB / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.855e-05/0.7257, allocations: 0 / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006345/0.7264, allocations: 93.14 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-06/0.7264, allocations: 3.984 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.7264, allocations: 0 / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.7265, allocations: 4 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003718/0.7268, allocations: 161.6 kB / 1.031 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.7269, allocations: 3.984 kB / 1.032 GB, free: 9.875 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.7271, allocations: 15.94 kB / 1.032 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.7271, allocations: 0 / 1.032 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.7272, allocations: 7.984 kB / 1.032 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.7272, allocations: 0 / 1.032 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.7272, allocations: 3.938 kB / 1.032 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006611/0.7279, allocations: 187.9 kB / 1.032 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.503e-05/0.728, allocations: 77.11 kB / 1.032 GB, free: 9.555 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.728, allocations: 3.984 kB / 1.032 GB, free: 9.551 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002194/0.7282, allocations: 12 kB / 1.032 GB, free: 9.539 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.7283, allocations: 11.95 kB / 1.032 GB, free: 9.527 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.7284, allocations: 8 kB / 1.032 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.638e-05/0.7284, allocations: 75.28 kB / 1.032 GB, free: 9.445 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.21e-07/0.7285, allocations: 0 / 1.032 GB, free: 9.445 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005817/0.7291, allocations: 31.92 kB / 1.032 GB, free: 9.414 MB / 0.6823 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.000281/0.7294, allocations: 99.25 kB / 1.032 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005965/0.73, allocations: 55.89 kB / 1.032 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.73, allocations: 4 kB / 1.032 GB, free: 9.25 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002441/0.7303, allocations: 27.97 kB / 1.032 GB, free: 9.223 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.7309, allocations: 11.94 kB / 1.032 GB, free: 9.211 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005474/0.7314, allocations: 114.3 kB / 1.032 GB, free: 9.074 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.7318, allocations: 0.6848 MB / 1.033 GB, free: 8.363 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 7.355e-05/0.7319, allocations: 0 / 1.033 GB, free: 8.363 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.828e-05/0.732, allocations: 11.44 kB / 1.033 GB, free: 8.352 MB / 0.6823 GB Notification: Performance of SimCode: time 1.273e-06/0.732, allocations: 3.938 kB / 1.033 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of Templates: time 0.005074/0.7371, allocations: 0.5973 MB / 1.033 GB, free: 7.754 MB / 0.6823 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)