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.001179/0.001179, allocations: 108.5 kB / 16.41 MB, free: 6.496 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.001134/0.001134, allocations: 187 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.314/1.314, 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.8119/0.8119, allocations: 135.1 MB / 426.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 62.5 kB / 0.5863 GB, free: 21.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1303, allocations: 80.92 MB / 0.6653 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002484/0.1328, allocations: 1.499 MB / 0.6668 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003459/0.1331, allocations: 128.4 kB / 0.6669 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.764e-05/0.1332, allocations: 4 kB / 0.6669 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.506e-05/0.1332, allocations: 3.938 kB / 0.6669 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.173e-05/0.1333, allocations: 11.92 kB / 0.6669 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002206/0.1335, allocations: 19.97 kB / 0.6669 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.358e-05/0.1336, allocations: 27.92 kB / 0.667 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.1337, allocations: 8 kB / 0.667 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.781e-05/0.1338, allocations: 19.92 kB / 0.667 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.979e-05/0.1338, allocations: 15.97 kB / 0.667 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.1338, allocations: 4 kB / 0.667 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.703e-05/0.1339, allocations: 8 kB / 0.667 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.567e-05/0.1339, allocations: 15.92 kB / 0.667 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.516e-05/0.134, allocations: 11.94 kB / 0.667 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.1341, allocations: 39.88 kB / 0.6671 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1341, allocations: 4 kB / 0.6671 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1341, allocations: 0 / 0.6671 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.1341, allocations: 0 / 0.6671 GB, free: 3.984 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.0004314/0.1345, allocations: 347.3 kB / 0.6674 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1346, allocations: 9.109 kB / 0.6674 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.238e-05/0.1346, allocations: 4.844 kB / 0.6674 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.791e-05/0.1347, allocations: 168.4 kB / 0.6676 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.1347, allocations: 384 / 0.6676 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.1348, allocations: 4.375 kB / 0.6676 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.1349, allocations: 58.22 kB / 0.6676 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.135, allocations: 192 / 0.6676 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.135, allocations: 3.938 kB / 0.6676 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.135, allocations: 4 kB / 0.6677 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001887/0.1352, allocations: 39.95 kB / 0.6677 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003558/0.1355, allocations: 264.9 kB / 0.6679 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00032/0.1359, allocations: 58.48 kB / 0.668 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.136, allocations: 28.89 kB / 0.668 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.1361, allocations: 85.09 kB / 0.6681 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.1361, allocations: 38.56 kB / 0.6681 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.1361, allocations: 0 / 0.6681 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003918/0.1365, allocations: 97.47 kB / 0.6682 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.1366, allocations: 51.41 kB / 0.6683 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.801e-05/0.1367, allocations: 105.8 kB / 0.6684 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.1367, allocations: 25.7 kB / 0.6684 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.1367, allocations: 88.14 kB / 0.6685 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.1367, allocations: 11.84 kB / 0.6685 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.1368, allocations: 9.719 kB / 0.6685 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.956e-05/0.1369, allocations: 326.8 kB / 0.6688 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.241e-05/0.137, allocations: 19.92 kB / 0.6688 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.042e-05/0.1371, allocations: 15.98 kB / 0.6689 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000172/0.1372, allocations: 52.75 kB / 0.6689 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1373, allocations: 7.938 kB / 0.6689 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002147/0.1375, allocations: 73.64 kB / 0.669 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1375, allocations: 4 kB / 0.669 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1375, allocations: 4 kB / 0.669 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1375, allocations: 0 / 0.669 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.297e-05/0.1376, allocations: 11.98 kB / 0.669 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.1376, allocations: 4 kB / 0.669 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.867e-05/0.1377, allocations: 4 kB / 0.669 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.1377, allocations: 0 / 0.669 GB, free: 1.754 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.662e-05/0.1378, allocations: 117.8 kB / 0.6691 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.1378, allocations: 7.906 kB / 0.6691 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000256/0.1381, allocations: 81.08 kB / 0.6692 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1381, allocations: 0 / 0.6692 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1381, allocations: 4 kB / 0.6692 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1381, allocations: 4 kB / 0.6692 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.1383, allocations: 165.6 kB / 0.6694 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1383, allocations: 0 / 0.6694 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.757e-05/0.1384, allocations: 11.98 kB / 0.6694 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.1384, allocations: 0 / 0.6694 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.1384, allocations: 4 kB / 0.6694 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1384, allocations: 4 kB / 0.6694 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1384, allocations: 0 / 0.6694 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.1387, allocations: 176 kB / 0.6696 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.1387, allocations: 85.12 kB / 0.6696 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.1387, allocations: 0 / 0.6696 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.1389, allocations: 4 kB / 0.6696 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.669e-05/0.1389, allocations: 11.98 kB / 0.6697 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.371e-06/0.1389, allocations: 4 kB / 0.6697 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.437e-05/0.139, allocations: 83.28 kB / 0.6697 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.139, allocations: 0 / 0.6697 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002467/0.1392, allocations: 8 kB / 0.6698 GB, free: 0.8945 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.0001312/0.1394, allocations: 108.5 kB / 0.6699 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002318/0.1396, allocations: 43.95 kB / 0.6699 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1396, allocations: 0 / 0.6699 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.1397, allocations: 27.92 kB / 0.6699 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.14, allocations: 11.92 kB / 0.6699 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.1403, allocations: 147.1 kB / 0.6701 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.1405, allocations: 0.6806 MB / 0.6707 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.851e-05/0.1405, allocations: 7.438 kB / 0.6707 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of SimCode: time 3.61e-07/0.1405, allocations: 4 kB / 0.6708 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of Templates: time 0.0021/0.1427, allocations: 0.735 MB / 0.6715 GB, free: 15.07 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)