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.004667/0.004667, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001077/0.001077, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9465/0.9465, allocations: 135.1 MB / 425.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 60.14 kB / 0.5856 GB, free: 3.332 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4503/0.4515, allocations: 80.92 MB / 0.6647 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002274/0.4538, allocations: 1.507 MB / 0.6661 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003299/0.4542, allocations: 128.3 kB / 0.6663 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.707e-05/0.4542, allocations: 1.562 kB / 0.6663 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.761e-05/0.4542, allocations: 0 / 0.6663 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.185e-05/0.4543, allocations: 3.938 kB / 0.6663 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.4545, allocations: 22.25 kB / 0.6663 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.68e-05/0.4546, allocations: 27.95 kB / 0.6663 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.4547, allocations: 16.47 kB / 0.6663 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.771e-05/0.4548, allocations: 13.12 kB / 0.6663 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.682e-05/0.4548, allocations: 12.52 kB / 0.6663 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.4548, allocations: 10.5 kB / 0.6664 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.97e-05/0.4549, allocations: 14.33 kB / 0.6664 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.553e-05/0.4549, allocations: 9.141 kB / 0.6664 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.66e-05/0.455, allocations: 15.52 kB / 0.6664 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.4551, allocations: 32.38 kB / 0.6664 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4551, allocations: 0 / 0.6664 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4551, allocations: 0 / 0.6664 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.4551, allocations: 1.375 kB / 0.6664 GB, free: 6.164 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.0003924/0.4555, allocations: 346.5 kB / 0.6668 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.4555, allocations: 13.55 kB / 0.6668 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.4556, allocations: 6.094 kB / 0.6668 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.082e-05/0.4556, allocations: 167.1 kB / 0.6669 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.4557, allocations: 4.312 kB / 0.6669 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.4557, allocations: 7.062 kB / 0.6669 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.4559, allocations: 59.97 kB / 0.667 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.4559, allocations: 5.312 kB / 0.667 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.4559, allocations: 7.875 kB / 0.667 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.4559, allocations: 1.688 kB / 0.667 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.4561, allocations: 41.95 kB / 0.6671 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002886/0.4564, allocations: 254 kB / 0.6673 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.4567, allocations: 65.81 kB / 0.6674 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.962e-05/0.4568, allocations: 28.72 kB / 0.6674 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.232e-05/0.4569, allocations: 83.97 kB / 0.6675 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.533e-05/0.4569, allocations: 30.56 kB / 0.6675 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.4569, allocations: 1.531 kB / 0.6675 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003425/0.4573, allocations: 97.83 kB / 0.6676 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.4573, allocations: 55.39 kB / 0.6676 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.82e-05/0.4573, allocations: 102.3 kB / 0.6677 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.4573, allocations: 26.95 kB / 0.6678 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.386e-05/0.4574, allocations: 81.7 kB / 0.6678 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.539e-05/0.4574, allocations: 11.41 kB / 0.6679 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.4574, allocations: 16.41 kB / 0.6679 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.794e-05/0.4575, allocations: 311.9 kB / 0.6682 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.911e-05/0.4576, allocations: 30.78 kB / 0.6682 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.335e-05/0.4576, allocations: 18.64 kB / 0.6682 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.4578, allocations: 42.59 kB / 0.6683 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4578, allocations: 3.938 kB / 0.6683 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001842/0.458, allocations: 77 kB / 0.6683 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.458, allocations: 5.375 kB / 0.6683 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-06/0.458, allocations: 0 / 0.6683 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.458, allocations: 0 / 0.6683 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.397e-05/0.4581, allocations: 11.33 kB / 0.6683 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.4581, allocations: 1.312 kB / 0.6684 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.07e-05/0.4582, allocations: 11.86 kB / 0.6684 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.4582, allocations: 1.312 kB / 0.6684 GB, free: 4.191 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 4.938e-05/0.4583, allocations: 119.2 kB / 0.6685 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.4583, allocations: 9.188 kB / 0.6685 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.4585, allocations: 78.55 kB / 0.6686 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4585, allocations: 1.312 kB / 0.6686 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.4585, allocations: 0 / 0.6686 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4585, allocations: 1.281 kB / 0.6686 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001106/0.4587, allocations: 167.8 kB / 0.6687 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.4587, allocations: 0 / 0.6687 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.187e-05/0.4587, allocations: 12.14 kB / 0.6687 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.4588, allocations: 7.938 kB / 0.6687 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.4588, allocations: 0 / 0.6687 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.4588, allocations: 5.344 kB / 0.6687 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.4588, allocations: 3.938 kB / 0.6688 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.459, allocations: 170.8 kB / 0.6689 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.686e-05/0.459, allocations: 82.39 kB / 0.669 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.459, allocations: 5.25 kB / 0.669 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.037e-05/0.4591, allocations: 10.48 kB / 0.669 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.4592, allocations: 11.7 kB / 0.669 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-06/0.4592, allocations: 1.312 kB / 0.669 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.063e-05/0.4592, allocations: 77.56 kB / 0.6691 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4592, allocations: 1.188 kB / 0.6691 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002229/0.4594, allocations: 10.75 kB / 0.6691 GB, free: 3.418 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.0001236/0.4596, allocations: 103.3 kB / 0.6692 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002123/0.4598, allocations: 49.84 kB / 0.6693 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4598, allocations: 4 kB / 0.6693 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.755e-05/0.4599, allocations: 18.02 kB / 0.6693 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.4601, allocations: 10.72 kB / 0.6693 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002483/0.4604, allocations: 122 kB / 0.6694 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.383e-05/0.4605, allocations: 0.6784 MB / 0.6701 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.791e-05/0.4605, allocations: 6.766 kB / 0.6701 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.569e-05/0.4606, allocations: 14.31 kB / 0.6701 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.4606, allocations: 0 / 0.6701 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of Templates: time 0.002636/0.4632, allocations: 0.7171 MB / 0.6708 GB, free: 2.07 MB / 0.4981 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)