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: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_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.0008555/0.0008556, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001025/0.001025, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.3 MB / 240 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9717/0.9717, allocations: 135.3 MB / 426.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003335, allocations: 11.94 kB / 0.5071 GB, free: 5.047 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1679, allocations: 82.32 MB / 0.5875 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002413/0.1704, allocations: 1.218 MB / 0.5887 GB, free: 1.668 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003659/0.1708, allocations: 120.5 kB / 0.5888 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.069e-05/0.1708, allocations: 4 kB / 0.5888 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.1708, allocations: 3.938 kB / 0.5888 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.136e-05/0.1709, allocations: 0 / 0.5888 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.1711, allocations: 19.97 kB / 0.5888 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.864e-05/0.1712, allocations: 27.92 kB / 0.5888 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.1713, allocations: 7.984 kB / 0.5888 GB, free: 1.484 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.478e-05/0.1714, allocations: 11.94 kB / 0.5888 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.379e-05/0.1714, allocations: 11.97 kB / 0.5889 GB, free: 1.461 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.1714, allocations: 0 / 0.5889 GB, free: 1.461 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.267e-05/0.1715, allocations: 12 kB / 0.5889 GB, free: 1.449 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.951e-05/0.1715, allocations: 11.92 kB / 0.5889 GB, free: 1.438 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.1716, allocations: 29.7 kB / 0.5889 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.734e-05/0.1717, allocations: 15.97 kB / 0.5889 GB, free: 1.387 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1717, allocations: 0 / 0.5889 GB, free: 1.387 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1717, allocations: 0 / 0.5889 GB, free: 1.387 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.1717, allocations: 0 / 0.5889 GB, free: 1.387 MB / 494.1 MB 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.0005129/0.1722, allocations: 343.5 kB / 0.5892 GB, free: 1.004 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.1723, allocations: 16.03 kB / 0.5893 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.837e-05/0.1724, allocations: 34.55 kB / 0.5893 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.603e-05/0.1724, allocations: 0 / 0.5893 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.1725, allocations: 171 kB / 0.5895 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.1726, allocations: 0 / 0.5895 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.1726, allocations: 4 kB / 0.5895 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.1728, allocations: 61.59 kB / 0.5895 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1728, allocations: 8 kB / 0.5895 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.1728, allocations: 7.938 kB / 0.5895 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1728, allocations: 0 / 0.5895 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.173, allocations: 47.95 kB / 0.5896 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003665/0.1734, allocations: 268.8 kB / 0.5898 GB, free: 300 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003566/0.1738, allocations: 62.47 kB / 0.5899 GB, free: 228 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.1739, allocations: 36.91 kB / 0.5899 GB, free: 188 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001354/0.1741, allocations: 93.02 kB / 0.59 GB, free: 76 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.1741, allocations: 30.56 kB / 0.5901 GB, free: 36 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.1741, allocations: 0 / 0.5901 GB, free: 36 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000522/0.1746, allocations: 113.6 kB / 0.5902 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.1747, allocations: 55.34 kB / 0.5902 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1748, allocations: 102 kB / 0.5903 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.1749, allocations: 25.7 kB / 0.5903 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.267e-05/0.1749, allocations: 84.14 kB / 0.5904 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.175, allocations: 15.83 kB / 0.5904 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.175, allocations: 0 / 0.5904 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1751, allocations: 318.8 kB / 0.5907 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.1753, allocations: 23.98 kB / 0.5908 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.1754, allocations: 23.97 kB / 0.5908 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.1756, allocations: 27.98 kB / 0.5908 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1756, allocations: 0 / 0.5908 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003213/0.1759, allocations: 85.56 kB / 0.5909 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.1759, allocations: 4 kB / 0.5909 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.176, allocations: 7.984 kB / 0.5909 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.176, allocations: 4 kB / 0.5909 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.1761, allocations: 11.94 kB / 0.5909 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.1761, allocations: 3.984 kB / 0.5909 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.326e-05/0.1762, allocations: 8 kB / 0.5909 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.1762, allocations: 0 / 0.5909 GB, free: 15.09 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 (fac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.1764, allocations: 117.8 kB / 0.591 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.975e-05/0.1764, allocations: 7.984 kB / 0.591 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003636/0.1768, allocations: 89.14 kB / 0.5911 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1768, allocations: 0 / 0.5911 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1768, allocations: 0 / 0.5911 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1768, allocations: 0 / 0.5911 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.1771, allocations: 173.6 kB / 0.5913 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1771, allocations: 0 / 0.5913 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.1772, allocations: 8 kB / 0.5913 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.1772, allocations: 7.922 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.1773, allocations: 4 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1773, allocations: 3.938 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1773, allocations: 0 / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003753/0.1777, allocations: 183.4 kB / 0.5915 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.599e-05/0.1777, allocations: 81.02 kB / 0.5916 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.1778, allocations: 7.984 kB / 0.5916 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.1779, allocations: 4 kB / 0.5916 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.846e-05/0.178, allocations: 15.98 kB / 0.5916 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.178, allocations: 0 / 0.5916 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.635e-05/0.178, allocations: 79.7 kB / 0.5917 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.178, allocations: 0 / 0.5917 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003789/0.1784, allocations: 8 kB / 0.5917 GB, free: 14.21 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 (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.0007885/0.1792, allocations: 0.7242 MB / 0.5924 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000333/0.1796, allocations: 63.94 kB / 0.5924 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1796, allocations: 0 / 0.5924 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.1797, allocations: 31.92 kB / 0.5925 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.1802, allocations: 0 / 0.5925 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000585/0.1808, allocations: 150.3 kB / 0.5926 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.1811, allocations: 0.6848 MB / 0.5933 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.75e-05/0.1811, allocations: 4 kB / 0.5933 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.865e-05/0.1812, allocations: 15.44 kB / 0.5933 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1812, allocations: 3.938 kB / 0.5933 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01381/0.195, allocations: 1.284 MB / 0.5946 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002545/0.1953, allocations: 165.4 kB / 0.5947 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/1.795, allocations: 0 / 0.5947 GB, free: 11.06 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: