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.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.001714/0.001714, allocations: 73.72 kB / 19.75 MB, free: 2.047 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.002344/0.002344, allocations: 155.2 kB / 23 MB, free: 4.941 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: 177.2 MB / 203.4 MB, free: 9.281 MB / 190.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.8413/0.8413, allocations: 101.3 MB / 361.1 MB, free: 10.09 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") [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.002043/0.002043, allocations: 64.41 kB / 0.5356 GB, free: 5.508 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.1754, allocations: 85.89 MB / 0.6195 GB, free: 1.844 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003045/0.1784, allocations: 1.532 MB / 0.621 GB, free: 308 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003976/0.1788, allocations: 120.5 kB / 0.6211 GB, free: 184 kB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.985e-05/0.1789, allocations: 0 / 0.6211 GB, free: 184 kB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.888e-05/0.1789, allocations: 0 / 0.6211 GB, free: 184 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.841e-05/0.1789, allocations: 11.88 kB / 0.6211 GB, free: 172 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.1792, allocations: 27.91 kB / 0.6212 GB, free: 144 kB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.931e-05/0.1793, allocations: 27.92 kB / 0.6212 GB, free: 116 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.1794, allocations: 4 kB / 0.6212 GB, free: 112 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 7.042e-05/0.1795, allocations: 23.97 kB / 0.6212 GB, free: 88 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.337e-05/0.1795, allocations: 15.92 kB / 0.6212 GB, free: 72 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.1795, allocations: 4 kB / 0.6212 GB, free: 68 kB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.797e-05/0.1796, allocations: 15.98 kB / 0.6212 GB, free: 52 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.322e-05/0.1796, allocations: 0 / 0.6212 GB, free: 52 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.715e-05/0.1796, allocations: 11.94 kB / 0.6212 GB, free: 40 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.1798, allocations: 39.81 kB / 0.6213 GB, free: 0 / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1798, allocations: 4.047 kB / 0.6213 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1798, allocations: 0 / 0.6213 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.1798, allocations: 0 / 0.6213 GB, free: 15.99 MB / 0.5294 GB 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.0005247/0.1803, allocations: 266.2 kB / 0.6215 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1803, allocations: 8.031 kB / 0.6216 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.1804, allocations: 20.89 kB / 0.6216 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.1805, allocations: 106.5 kB / 0.6217 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.1805, allocations: 8.312 kB / 0.6217 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.1805, allocations: 4.359 kB / 0.6217 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.1808, allocations: 62.17 kB / 0.6217 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1808, allocations: 192 / 0.6217 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.1808, allocations: 7.875 kB / 0.6218 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.1808, allocations: 0 / 0.6218 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.181, allocations: 43.95 kB / 0.6218 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003888/0.1814, allocations: 200.6 kB / 0.622 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.1817, allocations: 62.53 kB / 0.622 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.1818, allocations: 28.77 kB / 0.6221 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 8.976e-05/0.1819, allocations: 4 kB / 0.6221 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.182, allocations: 34.56 kB / 0.6221 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.182, allocations: 0 / 0.6221 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004264/0.1824, allocations: 101.6 kB / 0.6222 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.1824, allocations: 51.41 kB / 0.6223 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.681e-05/0.1825, allocations: 97.86 kB / 0.6223 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1825, allocations: 25.7 kB / 0.6224 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.1826, allocations: 92.06 kB / 0.6225 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.1826, allocations: 3.953 kB / 0.6225 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.1826, allocations: 17.72 kB / 0.6225 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1828, allocations: 310.8 kB / 0.6228 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.1829, allocations: 27.97 kB / 0.6228 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.704e-05/0.183, allocations: 19.98 kB / 0.6228 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.1832, allocations: 40.81 kB / 0.6229 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1832, allocations: 0 / 0.6229 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002293/0.1834, allocations: 77.59 kB / 0.6229 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.1834, allocations: 4 kB / 0.6229 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1834, allocations: 0 / 0.6229 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.1834, allocations: 4 kB / 0.6229 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.363e-05/0.1835, allocations: 15.92 kB / 0.623 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1835, allocations: 0 / 0.623 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.072e-05/0.1836, allocations: 11.94 kB / 0.623 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-06/0.1836, allocations: 4 kB / 0.623 GB, free: 14.09 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 (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 9.546e-05/0.1837, allocations: 109.8 kB / 0.6231 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.199e-05/0.1837, allocations: 12.39 kB / 0.6231 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.184, allocations: 89.25 kB / 0.6232 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.184, allocations: 0 / 0.6232 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.184, allocations: 3.984 kB / 0.6232 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.184, allocations: 4 kB / 0.6232 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001518/0.1842, allocations: 109.3 kB / 0.6233 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1842, allocations: 4 kB / 0.6233 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.098e-05/0.1842, allocations: 19.86 kB / 0.6233 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1842, allocations: 0 / 0.6233 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.1842, allocations: 3.984 kB / 0.6233 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1843, allocations: 0 / 0.6233 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.1843, allocations: 8 kB / 0.6233 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.1845, allocations: 171.5 kB / 0.6235 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 1.219e-05/0.1846, allocations: 7.891 kB / 0.6235 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.1846, allocations: 0 / 0.6235 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.707e-05/0.1847, allocations: 7.984 kB / 0.6235 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.458e-05/0.1847, allocations: 11.98 kB / 0.6235 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.1847, allocations: 0 / 0.6235 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.581e-05/0.1848, allocations: 79.28 kB / 0.6236 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.1848, allocations: 0 / 0.6236 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002283/0.185, allocations: 12 kB / 0.6236 GB, free: 13.39 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.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.0001488/0.1851, allocations: 99.23 kB / 0.6237 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002486/0.1854, allocations: 47.89 kB / 0.6237 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.1854, allocations: 0 / 0.6237 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.1855, allocations: 23.98 kB / 0.6238 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.1858, allocations: 3.984 kB / 0.6238 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003546/0.1861, allocations: 121.4 kB / 0.6239 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.207e-05/0.1862, allocations: 63.34 kB / 0.6239 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 2.613e-05/0.1862, allocations: 3.938 kB / 0.6239 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.703e-05/0.1863, allocations: 12.5 kB / 0.624 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of SimCode: time 4.01e-07/0.1863, allocations: 0 / 0.624 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of Templates: time 0.003506/0.1898, allocations: 0.7372 MB / 0.6247 GB, free: 12.25 MB / 0.5294 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (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 & ./IDEAS_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.620332093909383] Failed to read output from testmodel.py, exit status != 0: 0.1979079251177609 0.21605347200000002 0.032877453 Calling exit ...