Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005665/0.005665, allocations: 101.8 kB / 15.73 MB, free: 6 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.001149/0.001149, allocations: 193.5 kB / 16.67 MB, free: 5.926 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7886/0.7886, allocations: 132.2 MB / 422.7 MB, free: 6.582 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 67.03 kB / 0.5809 GB, free: 24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1543, allocations: 80.21 MB / 0.6592 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002948/0.1573, allocations: 1.503 MB / 0.6607 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003758/0.1577, allocations: 128.5 kB / 0.6608 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.159e-05/0.1578, allocations: 4 kB / 0.6608 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.804e-05/0.1578, allocations: 3.938 kB / 0.6608 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.05e-05/0.1579, allocations: 7.922 kB / 0.6608 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.1581, allocations: 11.98 kB / 0.6608 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.1583, allocations: 31.92 kB / 0.6608 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.1584, allocations: 11.98 kB / 0.6608 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.404e-05/0.1584, allocations: 11.94 kB / 0.6609 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.951e-05/0.1585, allocations: 15.97 kB / 0.6609 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.1585, allocations: 8 kB / 0.6609 GB, free: 9 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.071e-05/0.1586, allocations: 11.98 kB / 0.6609 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.619e-05/0.1586, allocations: 11.94 kB / 0.6609 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.639e-05/0.1586, allocations: 11.92 kB / 0.6609 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.1587, allocations: 39.83 kB / 0.661 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1588, allocations: 7.938 kB / 0.661 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.402e-06/0.1588, allocations: 0 / 0.661 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.1588, allocations: 0 / 0.661 GB, free: 8.918 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.0004812/0.1593, allocations: 342.3 kB / 0.6613 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1593, allocations: 12.03 kB / 0.6613 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.054e-05/0.1594, allocations: 38.72 kB / 0.6613 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.1594, allocations: 4.938 kB / 0.6613 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.1595, allocations: 164.4 kB / 0.6615 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.1595, allocations: 384 / 0.6615 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.1596, allocations: 4.375 kB / 0.6615 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.1598, allocations: 58.22 kB / 0.6616 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.1598, allocations: 3.938 kB / 0.6616 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.1598, allocations: 4 kB / 0.6616 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1598, allocations: 4 kB / 0.6616 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.16, allocations: 39.89 kB / 0.6616 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003809/0.1604, allocations: 269.7 kB / 0.6619 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.1607, allocations: 54.53 kB / 0.6619 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.405e-05/0.1608, allocations: 28.91 kB / 0.6619 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001274/0.1609, allocations: 81.09 kB / 0.662 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.161, allocations: 38.5 kB / 0.6621 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.161, allocations: 4 kB / 0.6621 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003686/0.1614, allocations: 89.62 kB / 0.6621 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.1614, allocations: 55.41 kB / 0.6622 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.465e-05/0.1615, allocations: 97.86 kB / 0.6623 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.1615, allocations: 25.7 kB / 0.6623 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.1616, allocations: 88.06 kB / 0.6624 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.1616, allocations: 15.84 kB / 0.6624 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.116e-05/0.1616, allocations: 13.72 kB / 0.6624 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.828e-05/0.1617, allocations: 314.8 kB / 0.6627 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.008e-05/0.1618, allocations: 23.97 kB / 0.6628 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.762e-05/0.1619, allocations: 15.98 kB / 0.6628 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001606/0.1621, allocations: 56.69 kB / 0.6628 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1621, allocations: 0 / 0.6628 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002188/0.1623, allocations: 66.12 kB / 0.6629 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1623, allocations: 9.719 kB / 0.6629 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1624, allocations: 4 kB / 0.6629 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1624, allocations: 0 / 0.6629 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.034e-05/0.1625, allocations: 11.98 kB / 0.6629 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.1625, allocations: 0 / 0.6629 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.137e-05/0.1625, allocations: 15.89 kB / 0.6629 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.1625, allocations: 0 / 0.6629 GB, free: 6.656 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.964e-05/0.1626, allocations: 126.6 kB / 0.663 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.1627, allocations: 0 / 0.663 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000246/0.1629, allocations: 85.14 kB / 0.6631 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1629, allocations: 4 kB / 0.6631 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1629, allocations: 4 kB / 0.6631 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1629, allocations: 3.984 kB / 0.6631 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.1631, allocations: 161.6 kB / 0.6633 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1631, allocations: 4 kB / 0.6633 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.101e-05/0.1632, allocations: 7.984 kB / 0.6633 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1632, allocations: 4 kB / 0.6633 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.1632, allocations: 4 kB / 0.6633 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1632, allocations: 0 / 0.6633 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1632, allocations: 3.984 kB / 0.6633 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002469/0.1635, allocations: 175.4 kB / 0.6635 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.1635, allocations: 81.02 kB / 0.6636 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.1635, allocations: 0 / 0.6636 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.327e-05/0.1636, allocations: 11.98 kB / 0.6636 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.1637, allocations: 7.984 kB / 0.6636 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.1637, allocations: 0 / 0.6636 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.84e-05/0.1637, allocations: 83.28 kB / 0.6637 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.432e-06/0.1637, allocations: 0 / 0.6637 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002397/0.164, allocations: 11.94 kB / 0.6637 GB, free: 5.789 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.0005493/0.1645, allocations: 0.7148 MB / 0.6644 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002248/0.1648, allocations: 39.95 kB / 0.6644 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1648, allocations: 0 / 0.6644 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.436e-05/0.1649, allocations: 27.97 kB / 0.6644 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.1652, allocations: 8 kB / 0.6644 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004527/0.1656, allocations: 147.1 kB / 0.6646 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.1659, allocations: 0.6768 MB / 0.6652 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.059e-05/0.1659, allocations: 3.984 kB / 0.6652 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.166, allocations: 15.44 kB / 0.6653 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.166, allocations: 0 / 0.6653 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0195/0.1855, allocations: 1.581 MB / 0.6668 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.57/7.756, allocations: 10.69 kB / 0.6668 GB, free: 2.559 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)