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.00129/0.00129, allocations: 103.5 kB / 16.45 MB, free: 6.449 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.001366/0.001366, allocations: 208.9 kB / 19.42 MB, free: 3.641 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.48/1.48, allocations: 230.6 MB / 252.8 MB, free: 8.941 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.8355/0.8355, allocations: 133.9 MB / 442.8 MB, free: 11.31 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.001929/0.001929, allocations: 71.19 kB / 0.6135 GB, free: 8.711 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1719, allocations: 85.84 MB / 0.6973 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.00232/0.1742, allocations: 0.5876 MB / 0.6979 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003581/0.1746, allocations: 51.8 kB / 0.6979 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.989e-05/0.1746, allocations: 0 / 0.6979 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.081e-05/0.1746, allocations: 0 / 0.6979 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 8.035e-06/0.1746, allocations: 0 / 0.6979 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.1749, allocations: 7.938 kB / 0.6979 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 6.214e-05/0.175, allocations: 15.98 kB / 0.6979 GB, free: 2.281 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.405e-05/0.175, allocations: 0 / 0.6979 GB, free: 2.281 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.936e-05/0.1751, allocations: 3.984 kB / 0.6979 GB, free: 2.277 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 2.548e-05/0.1751, allocations: 4 kB / 0.6979 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.139e-05/0.1751, allocations: 0 / 0.6979 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 9.454e-05/0.1752, allocations: 8 kB / 0.698 GB, free: 2.266 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.186e-05/0.1752, allocations: 0 / 0.698 GB, free: 2.266 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.415e-05/0.1752, allocations: 3.984 kB / 0.698 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.1753, allocations: 15.92 kB / 0.698 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1753, allocations: 0 / 0.698 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.324e-06/0.1753, allocations: 0 / 0.698 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.1753, allocations: 8 kB / 0.698 GB, free: 2.238 MB / 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.0004316/0.1758, allocations: 315.8 kB / 0.6983 GB, free: 1.879 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1758, allocations: 9.109 kB / 0.6983 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.054e-05/0.1759, allocations: 30.75 kB / 0.6983 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.871e-05/0.1759, allocations: 4.891 kB / 0.6983 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.176, allocations: 160.4 kB / 0.6985 GB, free: 1.633 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.1761, allocations: 8.312 kB / 0.6985 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.1761, allocations: 384 / 0.6985 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.1762, allocations: 38.25 kB / 0.6985 GB, free: 1.582 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1762, allocations: 7.938 kB / 0.6985 GB, free: 1.574 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.1762, allocations: 0 / 0.6985 GB, free: 1.574 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.1762, allocations: 0 / 0.6985 GB, free: 1.574 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.976e-05/0.1763, allocations: 4 kB / 0.6985 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002065/0.1765, allocations: 149.7 kB / 0.6987 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 6.801e-05/0.1765, allocations: 22.55 kB / 0.6987 GB, free: 1.344 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.641e-05/0.1766, allocations: 8.922 kB / 0.6987 GB, free: 1.332 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002045/0.1768, allocations: 97.03 kB / 0.6988 GB, free: 1.219 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.569e-05/0.1768, allocations: 34.95 kB / 0.6988 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/0.1768, allocations: 0 / 0.6988 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001791/0.177, allocations: 37.64 kB / 0.6989 GB, free: 1.133 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.177, allocations: 51.41 kB / 0.6989 GB, free: 1.07 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.099e-05/0.1771, allocations: 97.84 kB / 0.699 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.1771, allocations: 29.7 kB / 0.699 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.9e-05/0.1772, allocations: 84.08 kB / 0.6991 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.1772, allocations: 4.125 kB / 0.6991 GB, free: 0.8398 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.1772, allocations: 13.72 kB / 0.6991 GB, free: 0.8203 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1774, allocations: 318.8 kB / 0.6994 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.448e-05/0.1774, allocations: 0 / 0.6994 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.241e-05/0.1774, allocations: 4 kB / 0.6994 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.292e-05/0.1775, allocations: 12.84 kB / 0.6995 GB, free: 492 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1775, allocations: 0 / 0.6995 GB, free: 492 kB / 0.5137 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.133e-05/0.1775, allocations: 41.77 kB / 0.6995 GB, free: 444 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.1776, allocations: 4 kB / 0.6995 GB, free: 440 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1776, allocations: 3.938 kB / 0.6995 GB, free: 436 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1776, allocations: 4 kB / 0.6995 GB, free: 432 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.676e-05/0.1777, allocations: 4 kB / 0.6995 GB, free: 428 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.1777, allocations: 3.938 kB / 0.6995 GB, free: 424 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.53e-05/0.1777, allocations: 7.984 kB / 0.6995 GB, free: 416 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.1777, allocations: 0 / 0.6995 GB, free: 416 kB / 0.5137 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 9.015e-05/0.1778, allocations: 105.8 kB / 0.6996 GB, free: 300 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.26e-05/0.1778, allocations: 7.984 kB / 0.6996 GB, free: 292 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.1779, allocations: 48.75 kB / 0.6997 GB, free: 236 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1779, allocations: 0 / 0.6997 GB, free: 236 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1779, allocations: 0 / 0.6997 GB, free: 236 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1779, allocations: 4 kB / 0.6997 GB, free: 232 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.1781, allocations: 145.7 kB / 0.6998 GB, free: 36 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1781, allocations: 0 / 0.6998 GB, free: 36 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.035e-05/0.1781, allocations: 7.984 kB / 0.6998 GB, free: 28 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1781, allocations: 0 / 0.6998 GB, free: 28 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1781, allocations: 3.938 kB / 0.6998 GB, free: 24 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1781, allocations: 4.031 kB / 0.6998 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.1781, allocations: 3.938 kB / 0.6998 GB, free: 16 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001247/0.1782, allocations: 69.12 kB / 0.6999 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.1783, allocations: 77.11 kB / 0.7 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.1783, allocations: 3.938 kB / 0.7 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.308e-05/0.1783, allocations: 0 / 0.7 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.708e-05/0.1783, allocations: 0 / 0.7 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.1783, allocations: 8.031 kB / 0.7 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.296e-05/0.1784, allocations: 79.22 kB / 0.7001 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.1784, allocations: 3.938 kB / 0.7001 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000266/0.1786, allocations: 7.938 kB / 0.7001 GB, free: 15.73 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.0005418/0.1792, allocations: 0.6143 MB / 0.7007 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 8.825e-05/0.1793, allocations: 8 kB / 0.7007 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1793, allocations: 0 / 0.7007 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.958e-05/0.1793, allocations: 4 kB / 0.7007 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000179/0.1795, allocations: 4 kB / 0.7007 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004028/0.1799, allocations: 118.6 kB / 0.7008 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1802, allocations: 0.6766 MB / 0.7015 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 1.392e-05/0.1802, allocations: 0 / 0.7015 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.54e-05/0.1802, allocations: 15.56 kB / 0.7015 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of SimCode: time 3.51e-07/0.1802, allocations: 0 / 0.7015 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.2054, allocations: 1.064 MB / 0.7025 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/7.883, allocations: 5.656 kB / 0.7025 GB, free: 13.23 MB / 0.5294 GB " [Timeout remaining time 652] (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: 11.509684856995591] Failed to read output from testmodel.py, exit status != 0: 7.950312104992918 7.965179618 7.78687462 Calling exit ...