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.001395/0.001395, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001642/0.001642, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.305/1.305, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7285/0.7285, allocations: 132.2 MB / 422.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.78 kB / 0.5014 GB, free: 8.984 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1437, allocations: 80.2 MB / 0.5797 GB, free: 9.008 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002473/0.1462, allocations: 1.579 MB / 0.5812 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000301/0.1465, allocations: 120.5 kB / 0.5813 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.041e-05/0.1466, allocations: 0 / 0.5813 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.024e-05/0.1466, allocations: 0 / 0.5813 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.281e-05/0.1467, allocations: 0 / 0.5813 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.1469, allocations: 31.91 kB / 0.5814 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.851e-05/0.147, allocations: 31.86 kB / 0.5814 GB, free: 7.23 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.416e-05/0.147, allocations: 8 kB / 0.5814 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.481e-05/0.1471, allocations: 15.98 kB / 0.5814 GB, free: 7.207 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.925e-05/0.1471, allocations: 19.91 kB / 0.5814 GB, free: 7.188 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.1471, allocations: 4 kB / 0.5814 GB, free: 7.184 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.769e-05/0.1472, allocations: 8 kB / 0.5815 GB, free: 7.176 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.388e-05/0.1472, allocations: 11.98 kB / 0.5815 GB, free: 7.164 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.356e-05/0.1472, allocations: 7.938 kB / 0.5815 GB, free: 7.156 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.464e-05/0.1473, allocations: 39.88 kB / 0.5815 GB, free: 7.117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1473, allocations: 3.938 kB / 0.5815 GB, free: 7.113 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1474, allocations: 0 / 0.5815 GB, free: 7.113 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.1474, allocations: 0 / 0.5815 GB, free: 7.113 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.0004206/0.1478, allocations: 347.7 kB / 0.5818 GB, free: 6.723 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1478, allocations: 8.031 kB / 0.5819 GB, free: 6.715 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.009e-05/0.1479, allocations: 30.75 kB / 0.5819 GB, free: 6.676 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.726e-05/0.1479, allocations: 4.938 kB / 0.5819 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.148, allocations: 172.3 kB / 0.582 GB, free: 6.465 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.148, allocations: 384 / 0.582 GB, free: 6.465 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.268e-05/0.148, allocations: 8.375 kB / 0.5821 GB, free: 6.457 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.1482, allocations: 54.23 kB / 0.5821 GB, free: 6.398 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.1482, allocations: 11.88 kB / 0.5821 GB, free: 6.387 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.245e-06/0.1482, allocations: 0 / 0.5821 GB, free: 6.387 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1483, allocations: 0 / 0.5821 GB, free: 6.387 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.1484, allocations: 47.89 kB / 0.5822 GB, free: 6.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003097/0.1488, allocations: 260.9 kB / 0.5824 GB, free: 6.035 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.1491, allocations: 58.55 kB / 0.5825 GB, free: 5.969 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.735e-05/0.1492, allocations: 28.89 kB / 0.5825 GB, free: 5.938 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001006/0.1493, allocations: 77.11 kB / 0.5826 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.1493, allocations: 38.5 kB / 0.5826 GB, free: 5.797 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1493, allocations: 0 / 0.5826 GB, free: 5.797 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003547/0.1497, allocations: 97.62 kB / 0.5827 GB, free: 5.695 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.1497, allocations: 51.41 kB / 0.5828 GB, free: 5.633 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.354e-05/0.1498, allocations: 101.8 kB / 0.5828 GB, free: 5.523 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.1498, allocations: 25.7 kB / 0.5829 GB, free: 5.492 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.149e-05/0.1499, allocations: 88.05 kB / 0.583 GB, free: 5.402 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.364e-05/0.1499, allocations: 7.844 kB / 0.583 GB, free: 5.395 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.45e-05/0.1499, allocations: 21.7 kB / 0.583 GB, free: 5.367 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1501, allocations: 314.8 kB / 0.5833 GB, free: 5.051 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.272e-05/0.1502, allocations: 19.98 kB / 0.5833 GB, free: 5.031 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.033e-05/0.1502, allocations: 19.97 kB / 0.5833 GB, free: 5.012 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.1504, allocations: 48.7 kB / 0.5834 GB, free: 4.961 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1504, allocations: 0 / 0.5834 GB, free: 4.961 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002138/0.1506, allocations: 85.58 kB / 0.5835 GB, free: 4.871 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.1507, allocations: 4 kB / 0.5835 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1507, allocations: 0 / 0.5835 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.826e-06/0.1507, allocations: 0 / 0.5835 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.018e-05/0.1508, allocations: 11.98 kB / 0.5835 GB, free: 4.855 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.1508, allocations: 0 / 0.5835 GB, free: 4.855 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.821e-05/0.1508, allocations: 8.5 kB / 0.5835 GB, free: 4.848 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.1509, allocations: 0 / 0.5835 GB, free: 4.848 MB / 494.1 MB 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.051e-05/0.1509, allocations: 126.4 kB / 0.5836 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.345e-05/0.151, allocations: 0 / 0.5836 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002448/0.1512, allocations: 85.12 kB / 0.5837 GB, free: 4.621 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1512, allocations: 0 / 0.5837 GB, free: 4.621 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1512, allocations: 3.938 kB / 0.5837 GB, free: 4.617 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1512, allocations: 4 kB / 0.5837 GB, free: 4.613 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.1514, allocations: 169.6 kB / 0.5838 GB, free: 4.398 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1514, allocations: 0 / 0.5838 GB, free: 4.398 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.76e-05/0.1515, allocations: 15.98 kB / 0.5839 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1515, allocations: 0 / 0.5839 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.1515, allocations: 0 / 0.5839 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1515, allocations: 0 / 0.5839 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1515, allocations: 0 / 0.5839 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002381/0.1517, allocations: 179.3 kB / 0.584 GB, free: 4.191 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.032e-05/0.1518, allocations: 77.11 kB / 0.5841 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.1518, allocations: 4 kB / 0.5841 GB, free: 4.094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.77e-05/0.1519, allocations: 7.984 kB / 0.5841 GB, free: 4.086 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.05e-05/0.1519, allocations: 8 kB / 0.5841 GB, free: 4.078 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-06/0.152, allocations: 0 / 0.5841 GB, free: 4.078 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.238e-05/0.152, allocations: 83.27 kB / 0.5842 GB, free: 3.996 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.152, allocations: 0 / 0.5842 GB, free: 3.996 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.1522, allocations: 12 kB / 0.5842 GB, free: 3.984 MB / 494.1 MB 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.0004944/0.1527, allocations: 0.7085 MB / 0.5849 GB, free: 3.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000215/0.153, allocations: 43.95 kB / 0.5849 GB, free: 3.207 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.153, allocations: 0 / 0.5849 GB, free: 3.207 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.543e-05/0.1531, allocations: 27.98 kB / 0.585 GB, free: 3.18 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.1533, allocations: 3.984 kB / 0.585 GB, free: 3.176 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003884/0.1537, allocations: 159 kB / 0.5851 GB, free: 2.98 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.1539, allocations: 0.6768 MB / 0.5858 GB, free: 2.277 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.07e-05/0.154, allocations: 11.94 kB / 0.5858 GB, free: 2.266 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.864e-05/0.154, allocations: 15.42 kB / 0.5858 GB, free: 2.25 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.154, allocations: 0 / 0.5858 GB, free: 2.25 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0952/0.2492, allocations: 1.395 MB / 0.5872 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003216/0.2496, allocations: 176.2 kB / 0.5873 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.953/2.202, allocations: 7.938 kB / 0.5874 GB, free: 0.7031 MB / 494.1 MB (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)