Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 109.5 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 183 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.845/0.845, allocations: 135.2 MB / 426.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 66.7 kB / 0.5863 GB, free: 21.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1593, allocations: 80.92 MB / 0.6654 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002701/0.162, allocations: 1.517 MB / 0.6668 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000372/0.1624, allocations: 124.5 kB / 0.667 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.221e-05/0.1624, allocations: 0 / 0.667 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.383e-05/0.1624, allocations: 7.875 kB / 0.667 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.849e-05/0.1625, allocations: 11.94 kB / 0.667 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.1627, allocations: 23.95 kB / 0.667 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.953e-05/0.1628, allocations: 31.92 kB / 0.667 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.1629, allocations: 8 kB / 0.667 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.836e-05/0.163, allocations: 15.92 kB / 0.6671 GB, free: 4 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.661e-05/0.163, allocations: 11.98 kB / 0.6671 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.163, allocations: 4 kB / 0.6671 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.097e-05/0.1631, allocations: 12 kB / 0.6671 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.1631, allocations: 11.91 kB / 0.6671 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.69e-05/0.1631, allocations: 11.94 kB / 0.6671 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.1633, allocations: 39.83 kB / 0.6671 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1633, allocations: 0 / 0.6671 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.823e-06/0.1633, allocations: 0 / 0.6671 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.1633, allocations: 0 / 0.6671 GB, free: 3.91 MB / 0.4981 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.0005067/0.1638, allocations: 343.5 kB / 0.6675 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1638, allocations: 17.05 kB / 0.6675 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.433e-05/0.1639, allocations: 0.9375 kB / 0.6675 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.164, allocations: 168.3 kB / 0.6676 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.164, allocations: 4.375 kB / 0.6676 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.164, allocations: 4.375 kB / 0.6677 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.1642, allocations: 62.22 kB / 0.6677 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.1642, allocations: 192 / 0.6677 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.1642, allocations: 3.938 kB / 0.6677 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.1642, allocations: 0 / 0.6677 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.1644, allocations: 39.95 kB / 0.6678 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003921/0.1648, allocations: 272.9 kB / 0.668 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.1651, allocations: 54.48 kB / 0.6681 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.1652, allocations: 24.89 kB / 0.6681 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.1654, allocations: 81.11 kB / 0.6682 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.172e-05/0.1654, allocations: 34.56 kB / 0.6682 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1654, allocations: 4 kB / 0.6682 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003809/0.1658, allocations: 93.75 kB / 0.6683 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.1658, allocations: 55.41 kB / 0.6683 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.865e-05/0.1659, allocations: 105.8 kB / 0.6684 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.1659, allocations: 25.7 kB / 0.6685 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.938e-05/0.166, allocations: 84.09 kB / 0.6686 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.166, allocations: 15.95 kB / 0.6686 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.684e-05/0.166, allocations: 13.72 kB / 0.6686 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1662, allocations: 322.8 kB / 0.6689 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.208e-05/0.1663, allocations: 15.98 kB / 0.6689 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.561e-05/0.1664, allocations: 19.97 kB / 0.6689 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.1665, allocations: 56.7 kB / 0.669 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1665, allocations: 3.938 kB / 0.669 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002336/0.1668, allocations: 69.64 kB / 0.669 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.1668, allocations: 8 kB / 0.6691 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.1668, allocations: 0 / 0.6691 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.1668, allocations: 0 / 0.6691 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.638e-05/0.1669, allocations: 15.98 kB / 0.6691 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1669, allocations: 0 / 0.6691 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.89e-05/0.167, allocations: 8 kB / 0.6691 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.167, allocations: 4 kB / 0.6691 GB, free: 1.676 MB / 0.4981 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 (rea2Int.y,fac.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.878e-05/0.1671, allocations: 117.8 kB / 0.6692 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.1671, allocations: 0 / 0.6692 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002761/0.1674, allocations: 85.08 kB / 0.6693 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.1674, allocations: 4 kB / 0.6693 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.1674, allocations: 0 / 0.6693 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1674, allocations: 4 kB / 0.6693 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.1676, allocations: 165.5 kB / 0.6694 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1676, allocations: 0 / 0.6694 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.476e-05/0.1676, allocations: 11.98 kB / 0.6695 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1676, allocations: 0 / 0.6695 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.1676, allocations: 4 kB / 0.6695 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1676, allocations: 0 / 0.6695 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1676, allocations: 0 / 0.6695 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/0.1679, allocations: 183.3 kB / 0.6696 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.402e-05/0.168, allocations: 81.09 kB / 0.6697 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.168, allocations: 0 / 0.6697 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.357e-05/0.1681, allocations: 4 kB / 0.6697 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.1681, allocations: 7.984 kB / 0.6697 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.1681, allocations: 0 / 0.6697 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.875e-05/0.1682, allocations: 83.7 kB / 0.6698 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.1682, allocations: 0 / 0.6698 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002231/0.1684, allocations: 12 kB / 0.6698 GB, free: 0.8242 MB / 0.4981 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,rea2Int.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000147/0.1685, allocations: 107.3 kB / 0.6699 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002402/0.1688, allocations: 47.95 kB / 0.67 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1688, allocations: 0 / 0.67 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.1689, allocations: 27.91 kB / 0.67 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.1692, allocations: 11.94 kB / 0.67 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003219/0.1695, allocations: 139 kB / 0.6701 GB, free: 464 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.1698, allocations: 0.6768 MB / 0.6708 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.315e-05/0.1699, allocations: 11.44 kB / 0.6708 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of SimCode: time 3.9e-07/0.1699, allocations: 3.938 kB / 0.6708 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of Templates: time 0.002343/0.1722, allocations: 0.7344 MB / 0.6715 GB, free: 15 MB / 0.5137 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)