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.0008113/0.0008113, 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.0008232/0.0008232, allocations: 177.9 kB / 23.21 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.8588/0.8588, allocations: 177.1 MB / 203.5 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.689/0.689, allocations: 154.6 MB / 414.5 MB, free: 0.7266 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.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 4.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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 7.11e-07/7.11e-07, allocations: 0 / 0.6194 GB, free: 13.13 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.158e-05/1.229e-05, allocations: 2.281 kB / 0.6194 GB, free: 13.13 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0008856/0.0008978, allocations: 0.5868 MB / 0.62 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0001278/0.001026, allocations: 59.73 kB / 0.62 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.406e-06/0.001034, allocations: 4 kB / 0.62 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 6.903e-06/0.001041, allocations: 0 / 0.62 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 3.096e-06/0.001044, allocations: 0 / 0.62 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001036/0.001148, allocations: 7.938 kB / 0.62 GB, free: 12.47 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 2.107e-05/0.001169, allocations: 3.984 kB / 0.62 GB, free: 12.47 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 2.053e-05/0.001189, allocations: 7.984 kB / 0.62 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 1.25e-05/0.001202, allocations: 4 kB / 0.62 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 9.006e-06/0.001211, allocations: 0 / 0.62 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 6.051e-06/0.001217, allocations: 3.938 kB / 0.6201 GB, free: 12.45 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 3.684e-05/0.001254, allocations: 7.984 kB / 0.6201 GB, free: 12.45 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 5.32e-06/0.001259, allocations: 8 kB / 0.6201 GB, free: 12.44 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 7.224e-06/0.001266, allocations: 0 / 0.6201 GB, free: 12.44 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 4.687e-05/0.001313, allocations: 11.98 kB / 0.6201 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.001319, allocations: 3.938 kB / 0.6201 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of FrontEnd: time 6.01e-07/0.001319, allocations: 0 / 0.6201 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 2.545e-06/0.001322, allocations: 0 / 0.6201 GB, free: 12.42 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.000136/0.001458, allocations: 246.4 kB / 0.6203 GB, free: 12.15 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 2.092e-05/0.001479, allocations: 8.031 kB / 0.6203 GB, free: 12.14 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.375e-05/0.001493, allocations: 0.9375 kB / 0.6203 GB, free: 12.14 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.952e-05/0.001532, allocations: 101.8 kB / 0.6204 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-06/0.001538, allocations: 4.375 kB / 0.6204 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.977e-06/0.001542, allocations: 4.375 kB / 0.6204 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.321e-05/0.001585, allocations: 34.25 kB / 0.6205 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-06/0.00159, allocations: 4.125 kB / 0.6205 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-06/0.001595, allocations: 4.375 kB / 0.6205 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-06/0.001597, allocations: 384 / 0.6205 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.076e-05/0.001618, allocations: 7.938 kB / 0.6205 GB, free: 11.95 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.366e-05/0.001681, allocations: 97.31 kB / 0.6206 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 3.195e-05/0.001713, allocations: 26.67 kB / 0.6206 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.013e-05/0.001723, allocations: 4.859 kB / 0.6206 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 7.089e-05/0.001794, allocations: 8 kB / 0.6206 GB, free: 11.78 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.361e-05/0.001808, allocations: 30.56 kB / 0.6206 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=2): time 5.21e-07/0.001808, allocations: 0 / 0.6206 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2): time 6.966e-05/0.001878, allocations: 49.62 kB / 0.6207 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.001902, allocations: 55.34 kB / 0.6207 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.588e-05/0.001928, allocations: 89.86 kB / 0.6208 GB, free: 11.52 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.635e-06/0.001935, allocations: 25.7 kB / 0.6209 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 1.643e-05/0.001952, allocations: 80.14 kB / 0.6209 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 9.778e-06/0.001962, allocations: 0 / 0.6209 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.121e-05/0.001983, allocations: 21.7 kB / 0.6209 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.029e-05/0.002053, allocations: 318.9 kB / 0.6213 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.701e-06/0.002059, allocations: 4 kB / 0.6213 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.938e-06/0.002063, allocations: 0 / 0.6213 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.131e-05/0.002084, allocations: 20.8 kB / 0.6213 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.002085, allocations: 0 / 0.6213 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.057e-05/0.002115, allocations: 41.64 kB / 0.6213 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.643e-06/0.002122, allocations: 4 kB / 0.6213 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-06/0.002124, allocations: 0 / 0.6213 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.119e-06/0.002129, allocations: 0 / 0.6213 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.413e-05/0.002153, allocations: 4.094 kB / 0.6213 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-06/0.002155, allocations: 4 kB / 0.6213 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.276e-06/0.002163, allocations: 7.938 kB / 0.6213 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-06/0.002166, allocations: 4 kB / 0.6213 GB, free: 10.96 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 4.062e-05/0.002207, allocations: 110.8 kB / 0.6214 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-06/0.00221, allocations: 0 / 0.6214 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.485e-05/0.002265, allocations: 56.69 kB / 0.6215 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.002267, allocations: 3.984 kB / 0.6215 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.00227, allocations: 0 / 0.6215 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.002273, allocations: 3.984 kB / 0.6215 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.109e-05/0.002314, allocations: 105.3 kB / 0.6216 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-07/0.002314, allocations: 0 / 0.6216 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.494e-06/0.002322, allocations: 4 kB / 0.6216 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.81e-07/0.002323, allocations: 0 / 0.6216 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-06/0.002325, allocations: 0 / 0.6216 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.21e-07/0.002326, allocations: 0 / 0.6216 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.002326, allocations: 0 / 0.6216 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.054e-05/0.002367, allocations: 73 kB / 0.6217 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.116e-06/0.00237, allocations: 3.938 kB / 0.6217 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.701e-06/0.002376, allocations: 0 / 0.6217 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.238e-06/0.00238, allocations: 0 / 0.6217 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.051e-05/0.002401, allocations: 15.95 kB / 0.6217 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-06/0.002402, allocations: 0 / 0.6217 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 1.796e-05/0.00242, allocations: 79.28 kB / 0.6218 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.00242, allocations: 0 / 0.6218 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001125/0.002532, allocations: 4 kB / 0.6218 GB, free: 10.45 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 8.297e-05/0.002615, allocations: 99.19 kB / 0.6219 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 4.636e-05/0.002661, allocations: 11.98 kB / 0.6219 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.61e-07/0.002662, allocations: 0 / 0.6219 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.761e-06/0.002668, allocations: 8.062 kB / 0.6219 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.033e-05/0.002748, allocations: 7.938 kB / 0.6219 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001414/0.00289, allocations: 106.7 kB / 0.622 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.197e-05/0.002922, allocations: 59.34 kB / 0.6221 GB, free: 10.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.176e-05/0.002934, allocations: 8.5 kB / 0.6221 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of SimCode: time 3.7e-07/0.002934, allocations: 0 / 0.6221 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of Templates: time 0.001078/0.004011, allocations: 463.8 kB / 0.6225 GB, free: 9.633 MB / 0.5886 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 660] (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 & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.88707765378058] Failed to read output from testmodel.py, exit status != 0: 0.007974798791110516 0.017844628 0.014456618000000001 Calling exit ...