Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001313, allocations: 172.3 kB / 16.76 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.6452/0.6452, allocations: 86.27 MB / 103.8 MB, free: 14.52 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 223.2 MB / 348.4 MB, free: 4.98 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008664/0.0008664, allocations: 94.84 kB / 420.2 MB, free: 9.641 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003493, allocations: 16 kB / 0.4901 GB, free: 7.988 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.3713, allocations: 71.01 MB / 0.5594 GB, free: 43.74 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.5099, allocations: 100.4 MB / 0.6575 GB, free: 9.078 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.5102, allocations: 76.97 kB / 0.6576 GB, free: 9.004 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002716/0.5129, allocations: 0.9445 MB / 0.6585 GB, free: 8.066 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.5129, allocations: 0 / 0.6585 GB, free: 8.066 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.5129, allocations: 0 / 0.6585 GB, free: 8.066 MB / 474.7 MB 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.0003922/0.5133, allocations: 351.4 kB / 0.6588 GB, free: 7.672 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.5134, allocations: 8.031 kB / 0.6589 GB, free: 7.664 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.207e-05/0.5134, allocations: 4.938 kB / 0.6589 GB, free: 7.66 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.5136, allocations: 172.3 kB / 0.659 GB, free: 7.453 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.5136, allocations: 384 / 0.659 GB, free: 7.453 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.5136, allocations: 384 / 0.659 GB, free: 7.453 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/0.5138, allocations: 66.22 kB / 0.6591 GB, free: 7.383 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.5138, allocations: 192 / 0.6591 GB, free: 7.383 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.5138, allocations: 7.938 kB / 0.6591 GB, free: 7.375 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.5138, allocations: 0 / 0.6591 GB, free: 7.375 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.514, allocations: 51.95 kB / 0.6591 GB, free: 7.324 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004349/0.5145, allocations: 284.9 kB / 0.6594 GB, free: 6.996 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.5148, allocations: 66.42 kB / 0.6595 GB, free: 6.922 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.421e-05/0.5149, allocations: 28.89 kB / 0.6595 GB, free: 6.891 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/0.515, allocations: 89.11 kB / 0.6596 GB, free: 6.785 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.515, allocations: 30.56 kB / 0.6596 GB, free: 6.746 MB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 2.615e-06/0.5151, allocations: 3.984 kB / 0.6596 GB, free: 6.742 MB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003798/0.5154, allocations: 113.6 kB / 0.6597 GB, free: 6.625 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.5155, allocations: 51.41 kB / 0.6598 GB, free: 6.562 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.408e-05/0.5156, allocations: 105.8 kB / 0.6599 GB, free: 6.449 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.5156, allocations: 25.7 kB / 0.6599 GB, free: 6.418 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.853e-05/0.5157, allocations: 92.12 kB / 0.66 GB, free: 6.324 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.5157, allocations: 3.906 kB / 0.66 GB, free: 6.32 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-06/0.5157, allocations: 0 / 0.66 GB, free: 6.32 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.5158, allocations: 314.8 kB / 0.6603 GB, free: 6.004 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.901e-05/0.5159, allocations: 27.97 kB / 0.6603 GB, free: 5.977 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.501e-05/0.516, allocations: 23.98 kB / 0.6603 GB, free: 5.953 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.5162, allocations: 56.81 kB / 0.6604 GB, free: 5.895 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.5162, allocations: 3.938 kB / 0.6604 GB, free: 5.891 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002054/0.5164, allocations: 89.59 kB / 0.6605 GB, free: 5.797 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.5164, allocations: 7.938 kB / 0.6605 GB, free: 5.789 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.5164, allocations: 0 / 0.6605 GB, free: 5.789 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.5164, allocations: 0 / 0.6605 GB, free: 5.789 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.866e-05/0.5165, allocations: 15.98 kB / 0.6605 GB, free: 5.773 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.5165, allocations: 0 / 0.6605 GB, free: 5.773 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.788e-05/0.5166, allocations: 15.89 kB / 0.6605 GB, free: 5.758 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.5166, allocations: 0 / 0.6605 GB, free: 5.758 MB / 474.7 MB 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 7.127e-05/0.5167, allocations: 117.8 kB / 0.6606 GB, free: 5.633 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.5167, allocations: 4 kB / 0.6606 GB, free: 5.629 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002449/0.517, allocations: 93.08 kB / 0.6607 GB, free: 5.523 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.517, allocations: 4 kB / 0.6607 GB, free: 5.52 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.517, allocations: 0 / 0.6607 GB, free: 5.52 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.517, allocations: 3.984 kB / 0.6607 GB, free: 5.516 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001485/0.5171, allocations: 165.6 kB / 0.6609 GB, free: 5.305 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.5171, allocations: 0 / 0.6609 GB, free: 5.305 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-05/0.5172, allocations: 11.98 kB / 0.6609 GB, free: 5.293 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.5172, allocations: 4 kB / 0.6609 GB, free: 5.289 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.5172, allocations: 0 / 0.6609 GB, free: 5.289 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.5173, allocations: 7.984 kB / 0.6609 GB, free: 5.281 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5173, allocations: 0 / 0.6609 GB, free: 5.281 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002386/0.5175, allocations: 180 kB / 0.6611 GB, free: 5.09 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.443e-05/0.5176, allocations: 81.02 kB / 0.6612 GB, free: 4.992 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.5176, allocations: 0 / 0.6612 GB, free: 4.992 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.171e-05/0.5177, allocations: 19.98 kB / 0.6612 GB, free: 4.973 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.5177, allocations: 11.92 kB / 0.6612 GB, free: 4.961 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.5177, allocations: 0 / 0.6612 GB, free: 4.961 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.614e-05/0.5178, allocations: 83.31 kB / 0.6613 GB, free: 4.879 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5178, allocations: 0 / 0.6613 GB, free: 4.879 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002221/0.518, allocations: 19.88 kB / 0.6613 GB, free: 4.859 MB / 474.7 MB 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.0001505/0.5182, allocations: 107.2 kB / 0.6614 GB, free: 4.746 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002188/0.5184, allocations: 59.95 kB / 0.6615 GB, free: 4.688 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5184, allocations: 3.938 kB / 0.6615 GB, free: 4.684 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 9.42e-05/0.5185, allocations: 31.97 kB / 0.6615 GB, free: 4.652 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.5188, allocations: 7.938 kB / 0.6615 GB, free: 4.645 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002943/0.5191, allocations: 116.6 kB / 0.6616 GB, free: 4.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.5193, allocations: 0.677 MB / 0.6623 GB, free: 3.797 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 3.574e-05/0.5193, allocations: 4 kB / 0.6623 GB, free: 3.793 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.285e-05/0.5194, allocations: 11.44 kB / 0.6623 GB, free: 3.781 MB / 474.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5194, allocations: 0 / 0.6623 GB, free: 3.781 MB / 474.7 MB Notification: Performance of Templates: time 0.002588/0.522, allocations: 0.6006 MB / 0.6629 GB, free: 3.184 MB / 474.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)