Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002283/0.002283, allocations: 212.6 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8509/0.8509, allocations: 134 MB / 446.4 MB, free: 9.926 MB / 350.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002328, allocations: 70.7 kB / 0.6185 GB, free: 6.848 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1564, allocations: 85.92 MB / 0.7024 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001728/0.1581, allocations: 0.5798 MB / 0.703 GB, free: 456 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002633/0.1584, allocations: 52.14 kB / 0.703 GB, free: 404 kB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.66e-05/0.1584, allocations: 4 kB / 0.703 GB, free: 400 kB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.056e-05/0.1584, allocations: 0 / 0.703 GB, free: 400 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.688e-06/0.1584, allocations: 0 / 0.703 GB, free: 400 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.1586, allocations: 8 kB / 0.703 GB, free: 392 kB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 3.524e-05/0.1587, allocations: 0 / 0.703 GB, free: 392 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.126e-05/0.1587, allocations: 7.984 kB / 0.7031 GB, free: 384 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.641e-05/0.1587, allocations: 3.938 kB / 0.7031 GB, free: 380 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 1.962e-05/0.1588, allocations: 0 / 0.7031 GB, free: 380 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.157e-06/0.1588, allocations: 4 kB / 0.7031 GB, free: 376 kB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 7.163e-05/0.1588, allocations: 8 kB / 0.7031 GB, free: 368 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.202e-05/0.1589, allocations: 7.984 kB / 0.7031 GB, free: 360 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 1.582e-05/0.1589, allocations: 0 / 0.7031 GB, free: 360 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 9.237e-05/0.159, allocations: 15.92 kB / 0.7031 GB, free: 344 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.159, allocations: 0 / 0.7031 GB, free: 344 kB / 0.5137 GB Notification: Performance of FrontEnd: time 1.803e-06/0.159, allocations: 0 / 0.7031 GB, free: 344 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.159, allocations: 0 / 0.7031 GB, free: 344 kB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003042/0.1593, allocations: 242.7 kB / 0.7033 GB, free: 68 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1593, allocations: 12.03 kB / 0.7033 GB, free: 56 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.839e-05/0.1594, allocations: 30.75 kB / 0.7034 GB, free: 16 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.97e-05/0.1594, allocations: 8.891 kB / 0.7034 GB, free: 8 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.1595, allocations: 106.5 kB / 0.7035 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.1595, allocations: 8.375 kB / 0.7035 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.782e-06/0.1595, allocations: 384 / 0.7035 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.343e-05/0.1596, allocations: 34.25 kB / 0.7035 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1596, allocations: 3.938 kB / 0.7035 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.593e-06/0.1596, allocations: 0 / 0.7035 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1596, allocations: 0 / 0.7035 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.357e-05/0.1597, allocations: 7.938 kB / 0.7035 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001388/0.1598, allocations: 116.8 kB / 0.7036 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.629e-05/0.1599, allocations: 30.59 kB / 0.7037 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.957e-05/0.1599, allocations: 12.8 kB / 0.7037 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001335/0.16, allocations: 8.062 kB / 0.7037 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.16, allocations: 30.56 kB / 0.7037 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.16, allocations: 0 / 0.7037 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001425/0.1602, allocations: 53.56 kB / 0.7038 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.1602, allocations: 51.41 kB / 0.7038 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.099e-05/0.1603, allocations: 89.86 kB / 0.7039 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.1603, allocations: 25.7 kB / 0.7039 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.451e-05/0.1603, allocations: 84.27 kB / 0.704 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.1603, allocations: 3.938 kB / 0.704 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.298e-05/0.1604, allocations: 21.7 kB / 0.704 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1605, allocations: 310.8 kB / 0.7043 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.111e-05/0.1605, allocations: 4 kB / 0.7043 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.1605, allocations: 0 / 0.7043 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.598e-05/0.1606, allocations: 16.86 kB / 0.7043 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1606, allocations: 3.938 kB / 0.7043 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.785e-05/0.1606, allocations: 41.67 kB / 0.7044 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.1606, allocations: 6.438 kB / 0.7044 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.1606, allocations: 7.938 kB / 0.7044 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.1607, allocations: 0 / 0.7044 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.179e-05/0.1607, allocations: 4 kB / 0.7044 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.1607, allocations: 0 / 0.7044 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.21e-05/0.1607, allocations: 0 / 0.7044 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.1607, allocations: 4 kB / 0.7044 GB, free: 14.79 MB / 0.5294 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.919e-05/0.1608, allocations: 109.8 kB / 0.7045 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.005e-05/0.1608, allocations: 3.953 kB / 0.7045 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.621e-05/0.1609, allocations: 52.72 kB / 0.7046 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1609, allocations: 4.031 kB / 0.7046 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1609, allocations: 0 / 0.7046 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1609, allocations: 0 / 0.7046 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.709e-05/0.161, allocations: 120.8 kB / 0.7047 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.161, allocations: 0 / 0.7047 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.337e-05/0.161, allocations: 4 kB / 0.7047 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.161, allocations: 0 / 0.7047 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.1611, allocations: 3.938 kB / 0.7047 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1611, allocations: 0 / 0.7047 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1611, allocations: 4 kB / 0.7047 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.411e-05/0.1611, allocations: 69.06 kB / 0.7048 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.907e-06/0.1611, allocations: 4.031 kB / 0.7048 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.1612, allocations: 3.938 kB / 0.7048 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.414e-05/0.1612, allocations: 8 kB / 0.7048 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.297e-05/0.1612, allocations: 3.984 kB / 0.7048 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.1612, allocations: 3.938 kB / 0.7048 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.4e-05/0.1612, allocations: 75.28 kB / 0.7049 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.1612, allocations: 0 / 0.7049 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0001846/0.1614, allocations: 11.88 kB / 0.7049 GB, free: 14.24 MB / 0.5294 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004043/0.1618, allocations: 0.6046 MB / 0.7055 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 7.55e-05/0.1619, allocations: 15.94 kB / 0.7055 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.1619, allocations: 0 / 0.7055 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.976e-05/0.1619, allocations: 7.984 kB / 0.7055 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.162, allocations: 0 / 0.7055 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003012/0.1623, allocations: 106.7 kB / 0.7056 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.055e-05/0.1624, allocations: 63.2 kB / 0.7056 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 1.122e-05/0.1624, allocations: 0 / 0.7056 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.062e-05/0.1624, allocations: 7.438 kB / 0.7057 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of SimCode: time 4.01e-07/0.1624, allocations: 4.125 kB / 0.7057 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.1902, allocations: 1.562 MB / 0.7072 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.1, allocations: 4 kB / 0.7072 GB, free: 11.91 MB / 0.5294 GB " [Timeout remaining time 649] (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.910044546239078] Failed to read output from testmodel.py, exit status != 0: 11.206274175085127 11.238030545 11.073365468 Calling exit ...