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/Complex 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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 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(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/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7244/0.7244, allocations: 133.4 MB / 146.7 MB, free: 10.78 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 221.3 MB / 400.4 MB, free: 5.867 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008774/0.0008775, allocations: 91.89 kB / 483.3 MB, free: 5.887 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.742e-05/3.746e-05, allocations: 6.688 kB / 0.56 GB, free: 87.9 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1436, allocations: 82.3 MB / 0.6404 GB, free: 7.832 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5886/0.7323, allocations: 111.5 MB / 0.7493 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.7326, allocations: 69.81 kB / 0.7494 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.002999/0.7356, allocations: 0.944 MB / 0.7503 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.385e-06/0.7356, allocations: 4 kB / 0.7503 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.7356, allocations: 3.812 kB / 0.7503 GB, free: 27.59 MB / 0.5105 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.0003953/0.736, allocations: 342 kB / 0.7506 GB, free: 27.24 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.7361, allocations: 7.75 kB / 0.7506 GB, free: 27.24 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.7361, allocations: 3.906 kB / 0.7506 GB, free: 27.24 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.7363, allocations: 169.8 kB / 0.7508 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.7363, allocations: 10.88 kB / 0.7508 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.7363, allocations: 3.719 kB / 0.7508 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.7365, allocations: 45.3 kB / 0.7509 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.7365, allocations: 0 / 0.7509 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.7365, allocations: 0 / 0.7509 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.7365, allocations: 0 / 0.7509 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.573e-05/0.7366, allocations: 18.75 kB / 0.7509 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004391/0.737, allocations: 282.2 kB / 0.7512 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.7373, allocations: 46.61 kB / 0.7512 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.769e-05/0.7373, allocations: 16.17 kB / 0.7512 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001166/0.7374, allocations: 81.09 kB / 0.7513 GB, free: 26.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.7375, allocations: 37.55 kB / 0.7513 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.412e-06/0.7375, allocations: 4 kB / 0.7513 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001572/0.7376, allocations: 55.02 kB / 0.7514 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.7377, allocations: 51.41 kB / 0.7514 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.486e-05/0.7378, allocations: 98.62 kB / 0.7515 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.7378, allocations: 25.7 kB / 0.7516 GB, free: 26.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.319e-05/0.7378, allocations: 80.14 kB / 0.7516 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.538e-05/0.7379, allocations: 15.06 kB / 0.7516 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-06/0.7379, allocations: 3.938 kB / 0.7516 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.738, allocations: 322.6 kB / 0.752 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.327e-05/0.738, allocations: 9.953 kB / 0.752 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.659e-05/0.7381, allocations: 7.438 kB / 0.752 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.353e-05/0.7381, allocations: 3.844 kB / 0.752 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.7381, allocations: 0 / 0.752 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.404e-05/0.7382, allocations: 54.27 kB / 0.752 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.7382, allocations: 5.125 kB / 0.752 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.7382, allocations: 0 / 0.752 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.7382, allocations: 3.875 kB / 0.752 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.812e-05/0.7383, allocations: 18.48 kB / 0.7521 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.7383, allocations: 0 / 0.7521 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.948e-05/0.7384, allocations: 10.88 kB / 0.7521 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.7384, allocations: 0 / 0.7521 GB, free: 25.88 MB / 0.5105 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.y,fac.u) * Number of discrete 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 8.633e-05/0.7385, allocations: 110.2 kB / 0.7522 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.364e-05/0.7385, allocations: 3.906 kB / 0.7522 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.7387, allocations: 61.05 kB / 0.7522 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.7387, allocations: 7.656 kB / 0.7522 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.7387, allocations: 0 / 0.7522 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.7387, allocations: 0 / 0.7522 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.7389, allocations: 165.2 kB / 0.7524 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.7389, allocations: 0 / 0.7524 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.044e-05/0.739, allocations: 15.16 kB / 0.7524 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.739, allocations: 3.844 kB / 0.7524 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.739, allocations: 0 / 0.7524 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.739, allocations: 0 / 0.7524 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.739, allocations: 0 / 0.7524 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001537/0.7392, allocations: 157.9 kB / 0.7526 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.959e-05/0.7392, allocations: 80.67 kB / 0.7526 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.7393, allocations: 0 / 0.7526 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.146e-05/0.7394, allocations: 10.06 kB / 0.7526 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.046e-05/0.7394, allocations: 10.53 kB / 0.7527 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.7394, allocations: 0 / 0.7527 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 4.359e-05/0.7395, allocations: 86.94 kB / 0.7527 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7395, allocations: 0 / 0.7527 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002265/0.7397, allocations: 18.39 kB / 0.7528 GB, free: 25.2 MB / 0.5105 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,fac.u) * Number of discrete 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.0001799/0.7399, allocations: 106.4 kB / 0.7529 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 8.68e-05/0.74, allocations: 21.3 kB / 0.7529 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.74, allocations: 0 / 0.7529 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.847e-05/0.7401, allocations: 11.25 kB / 0.7529 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001641/0.7402, allocations: 14.44 kB / 0.7529 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000231/0.7405, allocations: 66.97 kB / 0.753 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.7408, allocations: 0.6858 MB / 0.7536 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 3.75e-05/0.7408, allocations: 7.938 kB / 0.7536 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.7408, allocations: 14.19 kB / 0.7537 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of SimCode: time 3.5e-07/0.7408, allocations: 0 / 0.7537 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of Templates: time 0.002527/0.7434, allocations: 0.5859 MB / 0.7542 GB, free: 24.28 MB / 0.5105 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)