Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008379/0.008379, allocations: 102.1 kB / 15.73 MB, free: 6.438 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.001644/0.001644, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9169/0.9169, allocations: 135.1 MB / 425.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 72.05 kB / 0.5857 GB, free: 3.289 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4356/0.4368, allocations: 80.91 MB / 0.6647 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001835/0.4387, allocations: 0.5707 MB / 0.6652 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000281/0.439, allocations: 60.97 kB / 0.6653 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.026e-05/0.4391, allocations: 0 / 0.6653 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.901e-05/0.4391, allocations: 1.125 kB / 0.6653 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.303e-06/0.4391, allocations: 0 / 0.6653 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002308/0.4393, allocations: 8.062 kB / 0.6653 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5e-05/0.4394, allocations: 6.469 kB / 0.6653 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.58e-05/0.4395, allocations: 5.047 kB / 0.6653 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.77e-05/0.4395, allocations: 1.25 kB / 0.6653 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.726e-05/0.4395, allocations: 5.109 kB / 0.6653 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.4395, allocations: 0 / 0.6653 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.15e-05/0.4396, allocations: 9.25 kB / 0.6653 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.4396, allocations: 4 kB / 0.6653 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.208e-05/0.4396, allocations: 1.375 kB / 0.6653 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.951e-05/0.4397, allocations: 12.14 kB / 0.6653 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4398, allocations: 0 / 0.6653 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.803e-06/0.4398, allocations: 3.938 kB / 0.6654 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.4398, allocations: 0 / 0.6654 GB, free: 7.074 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002525/0.44, allocations: 324.7 kB / 0.6657 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.4401, allocations: 9.562 kB / 0.6657 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.4401, allocations: 4.875 kB / 0.6657 GB, free: 6.707 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.461e-05/0.4402, allocations: 160.4 kB / 0.6658 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.4402, allocations: 5.969 kB / 0.6658 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.4402, allocations: 384 / 0.6658 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/0.4403, allocations: 33.88 kB / 0.6659 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.4404, allocations: 192 / 0.6659 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.4404, allocations: 13.17 kB / 0.6659 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.4404, allocations: 0 / 0.6659 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.657e-05/0.4404, allocations: 3.562 kB / 0.6659 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.4406, allocations: 142.9 kB / 0.666 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.216e-05/0.4406, allocations: 35.81 kB / 0.6661 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.893e-05/0.4406, allocations: 7.828 kB / 0.6661 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001583/0.4408, allocations: 83.28 kB / 0.6661 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.4408, allocations: 31.72 kB / 0.6662 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.4408, allocations: 0 / 0.6662 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001508/0.441, allocations: 51.28 kB / 0.6662 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.441, allocations: 55.53 kB / 0.6663 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.762e-05/0.4411, allocations: 89.86 kB / 0.6664 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.4411, allocations: 26.98 kB / 0.6664 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.413e-05/0.4411, allocations: 80.14 kB / 0.6665 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.353e-05/0.4411, allocations: 5.406 kB / 0.6665 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.4412, allocations: 16.23 kB / 0.6665 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.93e-05/0.4412, allocations: 310.8 kB / 0.6668 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.4412, allocations: 2.5 kB / 0.6668 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.227e-06/0.4412, allocations: 7.891 kB / 0.6668 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.049e-05/0.4413, allocations: 18.8 kB / 0.6668 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4413, allocations: 0 / 0.6668 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.649e-05/0.4413, allocations: 46.28 kB / 0.6668 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.4414, allocations: 5.125 kB / 0.6669 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4414, allocations: 0 / 0.6669 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.4414, allocations: 3.938 kB / 0.6669 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.878e-05/0.4415, allocations: 2.906 kB / 0.6669 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.4415, allocations: 1.625 kB / 0.6669 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.315e-05/0.4415, allocations: 4.094 kB / 0.6669 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.87e-06/0.4415, allocations: 1.156 kB / 0.6669 GB, free: 5.359 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.422e-05/0.4415, allocations: 107.2 kB / 0.667 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-06/0.4416, allocations: 7.891 kB / 0.667 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.633e-05/0.4417, allocations: 49.52 kB / 0.667 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.4417, allocations: 0 / 0.667 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4417, allocations: 0 / 0.667 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4417, allocations: 3.938 kB / 0.667 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.531e-05/0.4417, allocations: 156.1 kB / 0.6672 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.4418, allocations: 3.938 kB / 0.6672 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.14e-05/0.4418, allocations: 3.781 kB / 0.6672 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.4418, allocations: 0 / 0.6672 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.4418, allocations: 9.312 kB / 0.6672 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.4418, allocations: 0 / 0.6672 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.4418, allocations: 3.984 kB / 0.6672 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.678e-05/0.4419, allocations: 58.7 kB / 0.6673 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.4419, allocations: 81.14 kB / 0.6673 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.4419, allocations: 9.234 kB / 0.6673 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.082e-05/0.4419, allocations: 0 / 0.6673 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.442, allocations: 1.406 kB / 0.6673 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.442, allocations: 1.375 kB / 0.6673 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.624e-05/0.442, allocations: 75.28 kB / 0.6674 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.442, allocations: 0 / 0.6674 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001995/0.4422, allocations: 3.938 kB / 0.6674 GB, free: 4.727 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001718/0.4424, allocations: 109.9 kB / 0.6675 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 9.083e-05/0.4425, allocations: 18.67 kB / 0.6675 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4425, allocations: 0 / 0.6675 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.636e-05/0.4425, allocations: 3.938 kB / 0.6675 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.4427, allocations: 1.375 kB / 0.6675 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002081/0.4429, allocations: 88.11 kB / 0.6676 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000145/0.443, allocations: 0.6716 MB / 0.6683 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.359e-05/0.4431, allocations: 1.469 kB / 0.6683 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.714e-05/0.4431, allocations: 12.84 kB / 0.6683 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.4431, allocations: 3.938 kB / 0.6683 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of Templates: time 0.002413/0.4455, allocations: 320.1 kB / 0.6686 GB, free: 3.637 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)