Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.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: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",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.00459/0.00459, allocations: 102.1 kB / 15.73 MB, free: 6.035 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.001081/0.001081, allocations: 199.2 kB / 16.68 MB, free: 5.957 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7982/0.7982, allocations: 135.1 MB / 425.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001186, allocations: 63.39 kB / 0.5851 GB, free: 21.89 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1668, allocations: 80.92 MB / 0.6642 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.003108/0.1699, allocations: 1.525 MB / 0.6656 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004683/0.1704, allocations: 144.3 kB / 0.6658 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.88e-05/0.1705, allocations: 0 / 0.6658 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.216e-05/0.1706, allocations: 11.92 kB / 0.6658 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.342e-05/0.1706, allocations: 4 kB / 0.6658 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003806/0.171, allocations: 27.91 kB / 0.6658 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001083/0.1711, allocations: 35.92 kB / 0.6659 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1712, allocations: 11.98 kB / 0.6659 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.052e-05/0.1713, allocations: 15.92 kB / 0.6659 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.56e-05/0.1714, allocations: 19.92 kB / 0.6659 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.1714, allocations: 4 kB / 0.6659 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.733e-05/0.1715, allocations: 15.98 kB / 0.6659 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.924e-05/0.1715, allocations: 11.98 kB / 0.6659 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.779e-05/0.1715, allocations: 19.86 kB / 0.666 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.1717, allocations: 43.89 kB / 0.666 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1717, allocations: 0 / 0.666 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.396e-06/0.1717, allocations: 0 / 0.666 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.035e-06/0.1717, allocations: 7.938 kB / 0.666 GB, free: 4.387 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006002/0.1723, allocations: 346.3 kB / 0.6663 GB, free: 4 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.1724, allocations: 9.109 kB / 0.6663 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.185e-05/0.1724, allocations: 38.75 kB / 0.6664 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.098e-05/0.1725, allocations: 12.92 kB / 0.6664 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.1726, allocations: 177.1 kB / 0.6666 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.1727, allocations: 384 / 0.6666 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.1727, allocations: 4.375 kB / 0.6666 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.1729, allocations: 58.23 kB / 0.6666 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1729, allocations: 3.938 kB / 0.6666 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.1729, allocations: 4 kB / 0.6666 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1729, allocations: 0 / 0.6666 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002018/0.1731, allocations: 51.89 kB / 0.6667 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000425/0.1736, allocations: 276.8 kB / 0.6669 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.1739, allocations: 62.47 kB / 0.667 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.657e-05/0.174, allocations: 24.91 kB / 0.667 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002698/0.1743, allocations: 409.5 kB / 0.6674 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.1743, allocations: 34.55 kB / 0.6674 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1743, allocations: 0 / 0.6674 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003793/0.1747, allocations: 89.55 kB / 0.6675 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.1748, allocations: 51.41 kB / 0.6676 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.769e-05/0.1748, allocations: 117.8 kB / 0.6677 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.1749, allocations: 25.7 kB / 0.6677 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.384e-05/0.1749, allocations: 88.12 kB / 0.6678 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.1749, allocations: 7.906 kB / 0.6678 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.175, allocations: 13.72 kB / 0.6678 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1751, allocations: 322.7 kB / 0.6681 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.579e-05/0.1752, allocations: 27.91 kB / 0.6682 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.041e-05/0.1753, allocations: 15.98 kB / 0.6682 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.1754, allocations: 48.81 kB / 0.6682 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1755, allocations: 0 / 0.6682 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002142/0.1757, allocations: 73.66 kB / 0.6683 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.1757, allocations: 4 kB / 0.6683 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1757, allocations: 0 / 0.6683 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.1757, allocations: 0 / 0.6683 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.547e-05/0.1758, allocations: 15.98 kB / 0.6683 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.1758, allocations: 0 / 0.6683 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.1759, allocations: 11.89 kB / 0.6683 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.1759, allocations: 7.938 kB / 0.6683 GB, free: 1.68 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 (falFac.y,rea2Int.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 9.308e-05/0.176, allocations: 113.8 kB / 0.6684 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.1761, allocations: 4.328 kB / 0.6684 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002875/0.1763, allocations: 85.53 kB / 0.6685 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.1764, allocations: 3.984 kB / 0.6685 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1764, allocations: 0 / 0.6685 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1764, allocations: 4 kB / 0.6685 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.1766, allocations: 169.7 kB / 0.6687 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1766, allocations: 4 kB / 0.6687 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.527e-05/0.1767, allocations: 7.984 kB / 0.6687 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.1767, allocations: 11.94 kB / 0.6687 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.1767, allocations: 0 / 0.6687 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1767, allocations: 0 / 0.6687 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1767, allocations: 3.938 kB / 0.6687 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002762/0.177, allocations: 179.3 kB / 0.6689 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.177, allocations: 85.05 kB / 0.669 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.1771, allocations: 4 kB / 0.669 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.965e-05/0.1772, allocations: 0 / 0.669 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.1772, allocations: 7.984 kB / 0.669 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.1772, allocations: 4 kB / 0.669 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.053e-05/0.1773, allocations: 95.56 kB / 0.6691 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1773, allocations: 0 / 0.6691 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002291/0.1775, allocations: 12 kB / 0.6691 GB, free: 0.7969 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 (rea2Int.y,falFac.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.0005782/0.1781, allocations: 0.7176 MB / 0.6698 GB, free: 56 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002281/0.1784, allocations: 43.95 kB / 0.6698 GB, free: 12 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1784, allocations: 0 / 0.6698 GB, free: 12 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.1785, allocations: 27.97 kB / 0.6699 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.1788, allocations: 3.938 kB / 0.6699 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.1802, allocations: 1.296 MB / 0.6711 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.1804, allocations: 0.6768 MB / 0.6718 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.166e-05/0.1805, allocations: 7.984 kB / 0.6718 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/0.1805, allocations: 15.44 kB / 0.6718 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of SimCode: time 2.21e-07/0.1805, allocations: 0 / 0.6718 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01639/0.1969, allocations: 1.706 MB / 0.6735 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.46/7.657, allocations: 8.062 kB / 0.6735 GB, free: 12.24 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)