Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0009876/0.0009876, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001079/0.001079, allocations: 178.2 kB / 23.22 MB, free: 1.348 MB / 18.57 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 0.8894/0.8894, allocations: 177.2 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.6963/0.6963, allocations: 154.5 MB / 414.5 MB, free: 0.8398 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 0.6193 GB, free: 13.19 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.401e-05, allocations: 2.281 kB / 0.6193 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001128/0.001152, allocations: 0.5998 MB / 0.6199 GB, free: 12.59 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0002106/0.001362, allocations: 47.8 kB / 0.62 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.512e-05/0.001377, allocations: 3.938 kB / 0.62 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.392e-05/0.001391, allocations: 0 / 0.62 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.001398, allocations: 0 / 0.62 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.001609, allocations: 11.94 kB / 0.62 GB, free: 12.52 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 4.226e-05/0.001651, allocations: 4 kB / 0.62 GB, free: 12.52 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.762e-05/0.001689, allocations: 0 / 0.62 GB, free: 12.52 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 2.635e-05/0.001715, allocations: 3.984 kB / 0.62 GB, free: 12.52 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 2.016e-05/0.001735, allocations: 7.984 kB / 0.62 GB, free: 12.51 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.001747, allocations: 4 kB / 0.62 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.278e-05/0.00182, allocations: 11.94 kB / 0.62 GB, free: 12.49 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 9.227e-06/0.001829, allocations: 0 / 0.62 GB, free: 12.49 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.259e-05/0.001842, allocations: 0 / 0.62 GB, free: 12.49 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 8.335e-05/0.001925, allocations: 11.98 kB / 0.62 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.001927, allocations: 0 / 0.62 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of FrontEnd: time 8.32e-07/0.001928, allocations: 0 / 0.62 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.001931, allocations: 4 kB / 0.62 GB, free: 12.48 MB / 0.5886 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.0002123/0.002144, allocations: 234.5 kB / 0.6203 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.002177, allocations: 9.469 kB / 0.6203 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.002204, allocations: 4.875 kB / 0.6203 GB, free: 12.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.414e-05/0.002258, allocations: 113.8 kB / 0.6204 GB, free: 12.07 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.002268, allocations: 4.312 kB / 0.6204 GB, free: 12.06 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-06/0.002276, allocations: 384 / 0.6204 GB, free: 12.06 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.728e-05/0.002363, allocations: 38.19 kB / 0.6204 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.00237, allocations: 192 / 0.6204 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.587e-06/0.002379, allocations: 384 / 0.6204 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.002383, allocations: 384 / 0.6204 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.309e-05/0.002417, allocations: 7.938 kB / 0.6204 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.569e-05/0.002512, allocations: 101.3 kB / 0.6205 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.568e-05/0.002558, allocations: 22.59 kB / 0.6205 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.403e-05/0.002572, allocations: 8.859 kB / 0.6205 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.002698, allocations: 8.062 kB / 0.6206 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.002719, allocations: 34.56 kB / 0.6206 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=2): time 1.522e-06/0.00272, allocations: 7.922 kB / 0.6206 GB, free: 11.78 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2): time 0.0001205/0.002841, allocations: 37.69 kB / 0.6206 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.002869, allocations: 55.41 kB / 0.6207 GB, free: 11.67 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.79e-05/0.002897, allocations: 89.86 kB / 0.6208 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.857e-06/0.002906, allocations: 25.7 kB / 0.6208 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 1.963e-05/0.002926, allocations: 84.14 kB / 0.6209 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.002945, allocations: 8.062 kB / 0.6209 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.185e-05/0.002967, allocations: 17.72 kB / 0.6209 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.09e-05/0.003047, allocations: 322.8 kB / 0.6212 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.062e-05/0.003058, allocations: 0 / 0.6212 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.544e-06/0.003066, allocations: 4 kB / 0.6212 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.727e-05/0.003093, allocations: 12.8 kB / 0.6212 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.003095, allocations: 0 / 0.6212 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.363e-05/0.003139, allocations: 41.69 kB / 0.6213 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.00315, allocations: 4 kB / 0.6213 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.003156, allocations: 4 kB / 0.6213 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.003166, allocations: 4.094 kB / 0.6213 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.005e-05/0.003216, allocations: 0 / 0.6213 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.003221, allocations: 4 kB / 0.6213 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.04e-05/0.003232, allocations: 7.875 kB / 0.6213 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-06/0.003236, allocations: 0 / 0.6213 GB, free: 11.01 MB / 0.5886 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 5.092e-05/0.003287, allocations: 106.8 kB / 0.6214 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.15e-06/0.003292, allocations: 11.94 kB / 0.6214 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.00336, allocations: 40.78 kB / 0.6214 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.003362, allocations: 4 kB / 0.6214 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.003365, allocations: 4.031 kB / 0.6214 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.003367, allocations: 0 / 0.6214 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.184e-05/0.003419, allocations: 109.2 kB / 0.6216 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.00342, allocations: 0 / 0.6216 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.096e-05/0.003431, allocations: 4 kB / 0.6216 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.003432, allocations: 3.938 kB / 0.6216 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.003438, allocations: 0 / 0.6216 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.003439, allocations: 4 kB / 0.6216 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.003439, allocations: 0 / 0.6216 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.015e-05/0.00349, allocations: 69 kB / 0.6216 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-06/0.003493, allocations: 0 / 0.6216 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.586e-06/0.003502, allocations: 8.031 kB / 0.6216 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.929e-06/0.003507, allocations: 0 / 0.6216 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.35e-05/0.00353, allocations: 0 / 0.6216 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.003533, allocations: 3.984 kB / 0.6216 GB, free: 10.58 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.213e-05/0.003555, allocations: 79.28 kB / 0.6217 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4e-08/0.003555, allocations: 0 / 0.6217 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001233/0.003678, allocations: 4 kB / 0.6217 GB, free: 10.5 MB / 0.5886 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.000109/0.003787, allocations: 99.19 kB / 0.6218 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003099/0.004097, allocations: 16 kB / 0.6218 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.004098, allocations: 0 / 0.6218 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 8.075e-06/0.004107, allocations: 11.92 kB / 0.6218 GB, free: 10.37 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.512e-05/0.004202, allocations: 0 / 0.6218 GB, free: 10.37 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001755/0.004377, allocations: 102.7 kB / 0.6219 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.384e-05/0.004411, allocations: 59.34 kB / 0.622 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.452e-05/0.004425, allocations: 8.5 kB / 0.622 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of SimCode: time 6.92e-07/0.004426, allocations: 0 / 0.622 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of Templates: time 0.001295/0.005722, allocations: 475.8 kB / 0.6225 GB, free: 9.68 MB / 0.5886 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.952274545095861] Failed to read output from testmodel.py, exit status != 0: 0.010921892710030079 0.019364084 0.015558710000000002 Calling exit ...