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.00126/0.00126, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001424/0.001424, allocations: 211.3 kB / 22.25 MB, free: 5.086 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.456/1.456, allocations: 230.6 MB / 256 MB, free: 8.016 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.8491/0.8491, allocations: 134 MB / 446.4 MB, free: 10.27 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.001954/0.001954, allocations: 67.22 kB / 0.6186 GB, free: 7.184 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1741, allocations: 85.91 MB / 0.7025 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001727/0.1758, allocations: 0.5743 MB / 0.703 GB, free: 0.7773 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002689/0.1761, allocations: 60.12 kB / 0.7031 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.609e-05/0.1761, allocations: 0 / 0.7031 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.114e-05/0.1761, allocations: 0 / 0.7031 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.1761, allocations: 0 / 0.7031 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002077/0.1763, allocations: 15.98 kB / 0.7031 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 4.466e-05/0.1764, allocations: 11.88 kB / 0.7031 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.257e-05/0.1764, allocations: 3.984 kB / 0.7031 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.373e-05/0.1764, allocations: 4 kB / 0.7031 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 1.714e-05/0.1764, allocations: 0 / 0.7031 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.206e-06/0.1764, allocations: 0 / 0.7031 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 7.073e-05/0.1765, allocations: 11.98 kB / 0.7031 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.585e-06/0.1765, allocations: 0 / 0.7031 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 1.525e-05/0.1765, allocations: 0 / 0.7031 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 8.119e-05/0.1766, allocations: 19.91 kB / 0.7032 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1766, allocations: 0 / 0.7032 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.223e-06/0.1766, allocations: 8 kB / 0.7032 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.1766, allocations: 0 / 0.7032 GB, free: 0.6445 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.0002794/0.1769, allocations: 242.7 kB / 0.7034 GB, free: 384 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.1769, allocations: 8.031 kB / 0.7034 GB, free: 376 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.544e-05/0.177, allocations: 38.73 kB / 0.7034 GB, free: 328 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.339e-05/0.177, allocations: 8.891 kB / 0.7035 GB, free: 320 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.759e-05/0.1771, allocations: 102.5 kB / 0.7036 GB, free: 192 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1771, allocations: 384 / 0.7036 GB, free: 192 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-06/0.1771, allocations: 384 / 0.7036 GB, free: 192 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.233e-05/0.1772, allocations: 34.27 kB / 0.7036 GB, free: 152 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1772, allocations: 7.875 kB / 0.7036 GB, free: 144 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.291e-06/0.1772, allocations: 0 / 0.7036 GB, free: 144 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1772, allocations: 0 / 0.7036 GB, free: 144 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.717e-05/0.1773, allocations: 11.98 kB / 0.7036 GB, free: 132 kB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.1774, allocations: 116.8 kB / 0.7037 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.272e-05/0.1775, allocations: 22.61 kB / 0.7037 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.81e-05/0.1775, allocations: 12.84 kB / 0.7038 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.1776, allocations: 4.062 kB / 0.7038 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.1776, allocations: 34.56 kB / 0.7038 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.1776, allocations: 0 / 0.7038 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001382/0.1778, allocations: 49.56 kB / 0.7038 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.1778, allocations: 51.41 kB / 0.7039 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.226e-05/0.1779, allocations: 89.86 kB / 0.704 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.1779, allocations: 25.7 kB / 0.704 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.311e-05/0.1779, allocations: 84.27 kB / 0.7041 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.1779, allocations: 7.938 kB / 0.7041 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.597e-05/0.178, allocations: 13.72 kB / 0.7041 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1781, allocations: 310.8 kB / 0.7044 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.737e-05/0.1781, allocations: 7.984 kB / 0.7044 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.633e-06/0.1781, allocations: 0 / 0.7044 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.307e-05/0.1781, allocations: 20.8 kB / 0.7044 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1781, allocations: 4.062 kB / 0.7044 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.973e-05/0.1782, allocations: 41.64 kB / 0.7045 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.1782, allocations: 4 kB / 0.7045 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1782, allocations: 7.922 kB / 0.7045 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1782, allocations: 0 / 0.7045 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.111e-05/0.1783, allocations: 4 kB / 0.7045 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.1783, allocations: 0 / 0.7045 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.198e-05/0.1783, allocations: 0 / 0.7045 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-06/0.1783, allocations: 0 / 0.7045 GB, free: 15.11 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.324e-05/0.1784, allocations: 113.9 kB / 0.7046 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-06/0.1784, allocations: 3.953 kB / 0.7046 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.408e-05/0.1785, allocations: 52.72 kB / 0.7046 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.1785, allocations: 0 / 0.7046 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1785, allocations: 0 / 0.7046 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1785, allocations: 0 / 0.7046 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.31e-05/0.1786, allocations: 120.8 kB / 0.7048 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1786, allocations: 0 / 0.7048 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.399e-05/0.1786, allocations: 8 kB / 0.7048 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.1786, allocations: 0 / 0.7048 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1786, allocations: 11.97 kB / 0.7048 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1786, allocations: 0 / 0.7048 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1786, allocations: 0 / 0.7048 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.547e-05/0.1787, allocations: 65.06 kB / 0.7048 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-06/0.1787, allocations: 8 kB / 0.7048 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.023e-05/0.1787, allocations: 3.938 kB / 0.7049 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.062e-05/0.1787, allocations: 0 / 0.7049 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.396e-05/0.1787, allocations: 4.031 kB / 0.7049 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.1787, allocations: 7.984 kB / 0.7049 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.153e-05/0.1788, allocations: 75.28 kB / 0.7049 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.1788, allocations: 0 / 0.7049 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002017/0.179, allocations: 11.88 kB / 0.7049 GB, free: 14.56 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.0003933/0.1794, allocations: 0.6008 MB / 0.7055 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 7.28e-05/0.1794, allocations: 11.94 kB / 0.7055 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1794, allocations: 0 / 0.7055 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.488e-05/0.1795, allocations: 4 kB / 0.7055 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.1796, allocations: 3.984 kB / 0.7056 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002832/0.1799, allocations: 106.7 kB / 0.7057 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.1801, allocations: 0.6766 MB / 0.7063 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 1.255e-05/0.1801, allocations: 8.125 kB / 0.7063 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.061e-05/0.1802, allocations: 11.42 kB / 0.7063 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of SimCode: time 3e-07/0.1802, allocations: 3.938 kB / 0.7063 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02622/0.2064, allocations: 1.169 MB / 0.7075 GB, free: 12 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.73, allocations: 6.734 kB / 0.7075 GB, free: 12 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.439564881002298] Failed to read output from testmodel.py, exit status != 0: 10.838992991994019 10.866408875 10.684967719 Calling exit ...