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.001038/0.001038, allocations: 105.7 kB / 16.41 MB, free: 6.473 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.001074/0.001074, allocations: 187 kB / 17.34 MB, free: 5.754 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8707/0.8707, allocations: 135.1 MB / 426.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 62.69 kB / 0.5863 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1459, allocations: 80.93 MB / 0.6653 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002723/0.1487, allocations: 1.503 MB / 0.6668 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003472/0.149, allocations: 128.5 kB / 0.6669 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.057e-05/0.1491, allocations: 0 / 0.6669 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.576e-05/0.1491, allocations: 3.938 kB / 0.6669 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.816e-05/0.1492, allocations: 3.938 kB / 0.6669 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002051/0.1494, allocations: 15.98 kB / 0.6669 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.311e-05/0.1495, allocations: 39.91 kB / 0.667 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.1496, allocations: 7.984 kB / 0.667 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.088e-05/0.1496, allocations: 15.92 kB / 0.667 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.715e-05/0.1497, allocations: 8 kB / 0.667 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.1497, allocations: 4 kB / 0.667 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.263e-05/0.1498, allocations: 11.98 kB / 0.667 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.1498, allocations: 11.94 kB / 0.667 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.317e-05/0.1499, allocations: 15.91 kB / 0.667 GB, free: 4 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.15, allocations: 35.91 kB / 0.6671 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.15, allocations: 4 kB / 0.6671 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.323e-06/0.15, allocations: 0 / 0.6671 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.15, allocations: 0 / 0.6671 GB, free: 3.961 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.0004671/0.1505, allocations: 347.4 kB / 0.6674 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1505, allocations: 9.109 kB / 0.6674 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.1506, allocations: 8.844 kB / 0.6674 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.1507, allocations: 164.3 kB / 0.6676 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.1507, allocations: 4.375 kB / 0.6676 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.1508, allocations: 12.36 kB / 0.6676 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.1509, allocations: 58.22 kB / 0.6676 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.151, allocations: 4.125 kB / 0.6676 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.151, allocations: 7.938 kB / 0.6677 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.151, allocations: 0 / 0.6677 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001865/0.1512, allocations: 39.95 kB / 0.6677 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003555/0.1515, allocations: 264.9 kB / 0.6679 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003307/0.1519, allocations: 62.53 kB / 0.668 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.73e-05/0.152, allocations: 20.84 kB / 0.668 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/0.1521, allocations: 89.08 kB / 0.6681 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.1521, allocations: 30.56 kB / 0.6681 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.1522, allocations: 4 kB / 0.6681 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003819/0.1525, allocations: 101.5 kB / 0.6682 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.1526, allocations: 55.41 kB / 0.6683 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.682e-05/0.1527, allocations: 93.86 kB / 0.6684 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.1527, allocations: 29.7 kB / 0.6684 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.862e-05/0.1527, allocations: 84.12 kB / 0.6685 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.1528, allocations: 15.84 kB / 0.6685 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.1528, allocations: 17.72 kB / 0.6685 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1529, allocations: 314.8 kB / 0.6688 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.112e-05/0.153, allocations: 19.97 kB / 0.6688 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.063e-05/0.1531, allocations: 19.98 kB / 0.6689 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.1533, allocations: 44.81 kB / 0.6689 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1533, allocations: 7.938 kB / 0.6689 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002139/0.1535, allocations: 73.59 kB / 0.669 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1535, allocations: 8 kB / 0.669 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1535, allocations: 0 / 0.669 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.1536, allocations: 0 / 0.669 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.869e-05/0.1536, allocations: 11.98 kB / 0.669 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1537, allocations: 0 / 0.669 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.779e-05/0.1537, allocations: 7.984 kB / 0.669 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.1537, allocations: 4 kB / 0.669 GB, free: 1.723 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 7.407e-05/0.1538, allocations: 117.8 kB / 0.6691 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.1539, allocations: 4.422 kB / 0.6691 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002585/0.1541, allocations: 85.06 kB / 0.6692 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1541, allocations: 4 kB / 0.6692 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1541, allocations: 0 / 0.6692 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.1541, allocations: 7.984 kB / 0.6692 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.1543, allocations: 161.6 kB / 0.6694 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1543, allocations: 0 / 0.6694 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.378e-05/0.1544, allocations: 11.98 kB / 0.6694 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1544, allocations: 0 / 0.6694 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.1544, allocations: 8 kB / 0.6694 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1544, allocations: 3.984 kB / 0.6694 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1544, allocations: 3.938 kB / 0.6694 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002701/0.1547, allocations: 171.5 kB / 0.6696 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.371e-05/0.1548, allocations: 81.05 kB / 0.6696 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.1548, allocations: 0 / 0.6696 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.002e-05/0.1549, allocations: 7.984 kB / 0.6697 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.906e-05/0.1549, allocations: 11.98 kB / 0.6697 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.1549, allocations: 0 / 0.6697 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.054e-05/0.155, allocations: 79.28 kB / 0.6697 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.155, allocations: 0 / 0.6697 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002323/0.1552, allocations: 16 kB / 0.6698 GB, free: 0.8594 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.0001456/0.1554, allocations: 104.5 kB / 0.6699 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002298/0.1556, allocations: 43.95 kB / 0.6699 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1556, allocations: 0 / 0.6699 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.718e-05/0.1557, allocations: 23.92 kB / 0.6699 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.156, allocations: 19.03 kB / 0.6699 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003122/0.1563, allocations: 147.1 kB / 0.6701 GB, free: 500 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.1566, allocations: 0.6807 MB / 0.6707 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.008e-05/0.1566, allocations: 7.438 kB / 0.6707 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of SimCode: time 4.1e-07/0.1566, allocations: 0 / 0.6707 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of Templates: time 0.002239/0.1589, allocations: 0.7426 MB / 0.6715 GB, free: 15.03 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)