Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.692/1.692, allocations: 285.6 MB / 293.1 MB, free: 10.19 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001271/0.001271, allocations: 180.8 kB / 361.4 MB, free: 6.812 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.791/1.791, allocations: 205.2 MB / 0.62 GB, free: 11.65 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009084/0.0009084, allocations: 96.19 kB / 0.733 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.737e-05/2.725e-05, allocations: 8 kB / 0.8518 GB, free: 2.73 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7275/0.7276, allocations: 115.3 MB / 0.9644 GB, free: 78.75 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.192/0.9196, allocations: 136.6 MB / 1.098 GB, free: 3.277 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.92, allocations: 71.95 kB / 1.098 GB, free: 3.207 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.001206/0.9212, allocations: 0.5166 MB / 1.098 GB, free: 2.691 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9212, allocations: 1.062 kB / 1.098 GB, free: 2.691 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.9212, allocations: 0 / 1.098 GB, free: 2.691 MB / 0.698 GB 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.0002808/0.9215, allocations: 312 kB / 1.099 GB, free: 2.348 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.9216, allocations: 8.031 kB / 1.099 GB, free: 2.34 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.9216, allocations: 1.531 kB / 1.099 GB, free: 2.34 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.9217, allocations: 165.8 kB / 1.099 GB, free: 2.141 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.9218, allocations: 4 kB / 1.099 GB, free: 2.137 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.9218, allocations: 3.938 kB / 1.099 GB, free: 2.133 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.053e-05/0.9219, allocations: 3.5 kB / 1.099 GB, free: 2.133 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.73e-05/0.922, allocations: 42.67 kB / 1.099 GB, free: 2.09 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.922, allocations: 0 / 1.099 GB, free: 2.09 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.922, allocations: 0 / 1.099 GB, free: 2.09 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.922, allocations: 0.9375 kB / 1.099 GB, free: 2.09 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.9222, allocations: 126.2 kB / 1.099 GB, free: 1.93 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.866e-05/0.9222, allocations: 24.25 kB / 1.099 GB, free: 1.898 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.49e-05/0.9222, allocations: 12.92 kB / 1.099 GB, free: 1.883 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001493/0.9224, allocations: 81.62 kB / 1.099 GB, free: 1.785 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.9224, allocations: 39.34 kB / 1.099 GB, free: 1.738 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.944e-06/0.9225, allocations: 1.906 kB / 1.099 GB, free: 1.738 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001743/0.9226, allocations: 29.7 kB / 1.099 GB, free: 1.703 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.9227, allocations: 54.06 kB / 1.099 GB, free: 1.641 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.544e-05/0.9228, allocations: 92.98 kB / 1.099 GB, free: 1.543 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.9228, allocations: 25.7 kB / 1.099 GB, free: 1.512 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.136e-05/0.9228, allocations: 84.14 kB / 1.099 GB, free: 1.426 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.9228, allocations: 3.906 kB / 1.099 GB, free: 1.422 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/0.9229, allocations: 1.406 kB / 1.099 GB, free: 1.422 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.923, allocations: 310.8 kB / 1.1 GB, free: 1.109 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.077e-05/0.923, allocations: 0 / 1.1 GB, free: 1.109 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.923, allocations: 4.938 kB / 1.1 GB, free: 1.105 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.124e-05/0.9231, allocations: 0 / 1.1 GB, free: 1.105 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.9231, allocations: 4.531 kB / 1.1 GB, free: 1.102 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.293e-05/0.9232, allocations: 42.22 kB / 1.1 GB, free: 1.055 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.9232, allocations: 14.64 kB / 1.1 GB, free: 1.043 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.9232, allocations: 0 / 1.1 GB, free: 1.043 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.9232, allocations: 0 / 1.1 GB, free: 1.043 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.274e-05/0.9233, allocations: 4 kB / 1.1 GB, free: 1.039 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.9233, allocations: 0.5938 kB / 1.1 GB, free: 1.039 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.9233, allocations: 7.438 kB / 1.1 GB, free: 1.035 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.9234, allocations: 0.6562 kB / 1.1 GB, free: 1.035 MB / 0.698 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,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 6.927e-05/0.9234, allocations: 101.7 kB / 1.1 GB, free: 0.9297 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-06/0.9235, allocations: 5.469 kB / 1.1 GB, free: 0.9258 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.9236, allocations: 46.08 kB / 1.1 GB, free: 0.875 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.9236, allocations: 4 kB / 1.1 GB, free: 0.8711 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.9236, allocations: 0.875 kB / 1.1 GB, free: 0.8711 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.9236, allocations: 3.938 kB / 1.1 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.53e-05/0.9237, allocations: 130.8 kB / 1.1 GB, free: 0.7031 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.9237, allocations: 0 / 1.1 GB, free: 0.7031 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.68e-05/0.9238, allocations: 8.281 kB / 1.1 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.9238, allocations: 0.875 kB / 1.1 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.9238, allocations: 0 / 1.1 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.9238, allocations: 0 / 1.1 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.947e-05/0.9238, allocations: 9.672 kB / 1.1 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.924, allocations: 64.62 kB / 1.1 GB, free: 0.6133 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.924, allocations: 77.11 kB / 1.1 GB, free: 0.5195 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.924, allocations: 0 / 1.1 GB, free: 0.5195 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.272e-05/0.924, allocations: 1.453 kB / 1.1 GB, free: 0.5195 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-05/0.9241, allocations: 3.984 kB / 1.1 GB, free: 0.5156 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.9241, allocations: 7.953 kB / 1.1 GB, free: 0.5078 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.31e-05/0.9241, allocations: 75.28 kB / 1.1 GB, free: 444 kB / 0.698 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9241, allocations: 0 / 1.1 GB, free: 444 kB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002087/0.9244, allocations: 5.75 kB / 1.1 GB, free: 440 kB / 0.698 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,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.0002133/0.9246, allocations: 119.2 kB / 1.1 GB, free: 316 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 7.974e-05/0.9247, allocations: 11.94 kB / 1.1 GB, free: 304 kB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.9247, allocations: 0 / 1.1 GB, free: 304 kB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.786e-05/0.9247, allocations: 7.984 kB / 1.1 GB, free: 296 kB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001073/0.9248, allocations: 5.859 kB / 1.1 GB, free: 292 kB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002024/0.925, allocations: 48.02 kB / 1.1 GB, free: 220 kB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.9254, allocations: 0.6768 MB / 1.101 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.567e-05/0.9254, allocations: 0 / 1.101 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.815e-05/0.9254, allocations: 7.438 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/0.9254, allocations: 0 / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of Templates: time 0.002247/0.9277, allocations: 298.6 kB / 1.101 GB, free: 15.24 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)