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.001135/0.001135, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.393/1.393, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7482/0.7482, allocations: 132.2 MB / 422.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 68.03 kB / 0.5019 GB, free: 8.66 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.152, allocations: 80.19 MB / 0.5802 GB, free: 8.688 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.00258/0.1546, allocations: 1.521 MB / 0.5817 GB, free: 7.152 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003244/0.1549, allocations: 122.2 kB / 0.5818 GB, free: 7.031 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.339e-05/0.155, allocations: 0 / 0.5818 GB, free: 7.031 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.484e-05/0.155, allocations: 3.938 kB / 0.5818 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.897e-05/0.1551, allocations: 0 / 0.5818 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.1553, allocations: 27.91 kB / 0.5818 GB, free: 7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.688e-05/0.1554, allocations: 39.86 kB / 0.5819 GB, free: 6.961 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.743e-05/0.1554, allocations: 7.984 kB / 0.5819 GB, free: 6.953 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.678e-05/0.1555, allocations: 8 kB / 0.5819 GB, free: 6.945 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.487e-05/0.1555, allocations: 19.91 kB / 0.5819 GB, free: 6.926 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.1556, allocations: 4 kB / 0.5819 GB, free: 6.922 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.651e-05/0.1556, allocations: 11.98 kB / 0.5819 GB, free: 6.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.231e-05/0.1556, allocations: 8 kB / 0.5819 GB, free: 6.902 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.664e-05/0.1557, allocations: 11.94 kB / 0.5819 GB, free: 6.891 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.994e-05/0.1558, allocations: 35.88 kB / 0.582 GB, free: 6.855 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1558, allocations: 4 kB / 0.582 GB, free: 6.852 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1558, allocations: 0 / 0.582 GB, free: 6.852 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1558, allocations: 0 / 0.582 GB, free: 6.852 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.0004945/0.1563, allocations: 343.7 kB / 0.5823 GB, free: 6.465 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1564, allocations: 8.031 kB / 0.5823 GB, free: 6.457 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.646e-05/0.1564, allocations: 34.73 kB / 0.5823 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.926e-05/0.1564, allocations: 4.938 kB / 0.5823 GB, free: 6.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.1566, allocations: 168.3 kB / 0.5825 GB, free: 6.207 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.1566, allocations: 4.375 kB / 0.5825 GB, free: 6.203 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.1566, allocations: 4.375 kB / 0.5825 GB, free: 6.199 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.1568, allocations: 58.17 kB / 0.5826 GB, free: 6.137 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1569, allocations: 7.875 kB / 0.5826 GB, free: 6.129 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.1569, allocations: 7.984 kB / 0.5826 GB, free: 6.121 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1569, allocations: 0 / 0.5826 GB, free: 6.121 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.1571, allocations: 35.97 kB / 0.5826 GB, free: 6.086 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003832/0.1575, allocations: 264.9 kB / 0.5829 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003452/0.1578, allocations: 62.47 kB / 0.5829 GB, free: 5.707 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.158, allocations: 24.91 kB / 0.5829 GB, free: 5.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001295/0.1581, allocations: 81.09 kB / 0.583 GB, free: 5.582 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.1581, allocations: 38.56 kB / 0.5831 GB, free: 5.535 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1581, allocations: 0 / 0.5831 GB, free: 5.535 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000392/0.1585, allocations: 89.64 kB / 0.5831 GB, free: 5.441 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.1586, allocations: 55.39 kB / 0.5832 GB, free: 5.375 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.074e-05/0.1587, allocations: 106 kB / 0.5833 GB, free: 5.262 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.1587, allocations: 25.7 kB / 0.5833 GB, free: 5.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.545e-05/0.1587, allocations: 95.98 kB / 0.5834 GB, free: 5.133 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.1588, allocations: 11.84 kB / 0.5834 GB, free: 5.121 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.1588, allocations: 17.7 kB / 0.5834 GB, free: 5.098 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1589, allocations: 310.8 kB / 0.5837 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-05/0.159, allocations: 23.97 kB / 0.5838 GB, free: 4.762 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.359e-05/0.1591, allocations: 19.98 kB / 0.5838 GB, free: 4.742 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.1593, allocations: 52.75 kB / 0.5838 GB, free: 4.688 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1593, allocations: 0 / 0.5838 GB, free: 4.688 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002156/0.1596, allocations: 69.66 kB / 0.5839 GB, free: 4.613 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.1596, allocations: 4 kB / 0.5839 GB, free: 4.609 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.1596, allocations: 0 / 0.5839 GB, free: 4.609 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.1596, allocations: 0 / 0.5839 GB, free: 4.609 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.132e-05/0.1597, allocations: 15.92 kB / 0.5839 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.1597, allocations: 0 / 0.5839 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.16e-05/0.1598, allocations: 15.98 kB / 0.5839 GB, free: 4.578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.1598, allocations: 0 / 0.5839 GB, free: 4.578 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 8.901e-05/0.1599, allocations: 114.4 kB / 0.584 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.1599, allocations: 4 kB / 0.584 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000272/0.1602, allocations: 85.14 kB / 0.5841 GB, free: 4.359 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1602, allocations: 0 / 0.5841 GB, free: 4.359 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1602, allocations: 7.938 kB / 0.5841 GB, free: 4.352 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1602, allocations: 0 / 0.5841 GB, free: 4.352 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.1604, allocations: 165.6 kB / 0.5843 GB, free: 4.141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1604, allocations: 0 / 0.5843 GB, free: 4.141 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.891e-05/0.1605, allocations: 15.92 kB / 0.5843 GB, free: 4.125 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1605, allocations: 0 / 0.5843 GB, free: 4.125 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.1605, allocations: 0 / 0.5843 GB, free: 4.125 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1605, allocations: 0 / 0.5843 GB, free: 4.125 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1605, allocations: 0 / 0.5843 GB, free: 4.125 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.1608, allocations: 179.3 kB / 0.5845 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.1608, allocations: 77.11 kB / 0.5846 GB, free: 3.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.1609, allocations: 4 kB / 0.5846 GB, free: 3.836 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.927e-05/0.161, allocations: 7.984 kB / 0.5846 GB, free: 3.828 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.161, allocations: 4 kB / 0.5846 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.161, allocations: 3.984 kB / 0.5846 GB, free: 3.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.833e-05/0.1611, allocations: 83.7 kB / 0.5847 GB, free: 3.738 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1611, allocations: 4 kB / 0.5847 GB, free: 3.734 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002267/0.1613, allocations: 8 kB / 0.5847 GB, free: 3.727 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.0005471/0.1618, allocations: 0.7164 MB / 0.5854 GB, free: 2.984 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002268/0.1621, allocations: 43.95 kB / 0.5854 GB, free: 2.941 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1621, allocations: 3.938 kB / 0.5854 GB, free: 2.938 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.1622, allocations: 31.91 kB / 0.5854 GB, free: 2.906 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.1625, allocations: 4 kB / 0.5854 GB, free: 2.902 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004329/0.1629, allocations: 147 kB / 0.5856 GB, free: 2.719 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.1632, allocations: 0.6768 MB / 0.5862 GB, free: 2.016 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.083e-05/0.1632, allocations: 3.984 kB / 0.5862 GB, free: 2.012 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.1633, allocations: 15.44 kB / 0.5863 GB, free: 1.996 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1633, allocations: 0 / 0.5863 GB, free: 1.996 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.1808, allocations: 1.537 MB / 0.5878 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.409/7.59, allocations: 15.11 kB / 0.5878 GB, free: 0.5195 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)