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.001395/0.001395, allocations: 80.44 kB / 19.18 MB, free: 2.527 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.001447/0.001447, allocations: 166.6 kB / 22.46 MB, free: 5.355 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.437/1.437, allocations: 177.2 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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 1.247/1.247, allocations: 154.6 MB / 413.7 MB, free: 5.285 MB / 382.1 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 178] 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.703e-06/1.703e-06, allocations: 0 / 0.6186 GB, free: 4.59 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.809e-05/2.98e-05, allocations: 9.062 kB / 0.6186 GB, free: 4.582 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001801/0.001831, allocations: 0.5963 MB / 0.6192 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002729/0.002104, allocations: 43.81 kB / 0.6192 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.79e-05/0.002122, allocations: 1.438 kB / 0.6192 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.232e-05/0.002134, allocations: 0 / 0.6192 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.097e-06/0.002143, allocations: 3.938 kB / 0.6192 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.00241, allocations: 11.98 kB / 0.6192 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.268e-05/0.002453, allocations: 4 kB / 0.6192 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.33e-05/0.002506, allocations: 7.984 kB / 0.6192 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.855e-05/0.002534, allocations: 0 / 0.6192 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.248e-05/0.002557, allocations: 0 / 0.6192 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.002576, allocations: 4 kB / 0.6192 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.891e-05/0.002665, allocations: 11.98 kB / 0.6192 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.516e-05/0.00268, allocations: 7.875 kB / 0.6193 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.734e-05/0.002698, allocations: 0 / 0.6193 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.002801, allocations: 15.97 kB / 0.6193 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.002803, allocations: 0 / 0.6193 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of FrontEnd: time 5.61e-07/0.002804, allocations: 0 / 0.6193 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.002809, allocations: 4 kB / 0.6193 GB, free: 3.891 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003475/0.003156, allocations: 250.4 kB / 0.6195 GB, free: 3.613 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.003197, allocations: 9.469 kB / 0.6195 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.25e-05/0.00323, allocations: 4.891 kB / 0.6195 GB, free: 3.602 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.505e-05/0.003325, allocations: 109.7 kB / 0.6196 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.003339, allocations: 384 / 0.6196 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.003347, allocations: 384 / 0.6196 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.00346, allocations: 30.27 kB / 0.6197 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.00347, allocations: 192 / 0.6197 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.003483, allocations: 4.359 kB / 0.6197 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.003493, allocations: 384 / 0.6197 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.714e-05/0.003541, allocations: 15.94 kB / 0.6197 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001591/0.0037, allocations: 101.3 kB / 0.6198 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 8.389e-05/0.003784, allocations: 26.55 kB / 0.6198 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.994e-05/0.003804, allocations: 4.859 kB / 0.6198 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001635/0.003967, allocations: 8.047 kB / 0.6198 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.004006, allocations: 34.56 kB / 0.6198 GB, free: 3.191 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.613e-06/0.004008, allocations: 0 / 0.6198 GB, free: 3.191 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001665/0.004175, allocations: 41.69 kB / 0.6199 GB, free: 3.145 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.004212, allocations: 51.41 kB / 0.6199 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.743e-05/0.00426, allocations: 93.98 kB / 0.62 GB, free: 2.98 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.004275, allocations: 25.7 kB / 0.6201 GB, free: 2.949 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.676e-05/0.004312, allocations: 84.08 kB / 0.6201 GB, free: 2.863 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.004331, allocations: 4 kB / 0.6201 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.004361, allocations: 17.66 kB / 0.6202 GB, free: 2.836 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.004504, allocations: 318.8 kB / 0.6205 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.198e-05/0.004516, allocations: 0 / 0.6205 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.176e-05/0.004527, allocations: 7.984 kB / 0.6205 GB, free: 2.508 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.221e-05/0.00457, allocations: 12.86 kB / 0.6205 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.004571, allocations: 64 / 0.6205 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.807e-05/0.004639, allocations: 37.7 kB / 0.6205 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.004654, allocations: 4 kB / 0.6205 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.004659, allocations: 0 / 0.6205 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.00468, allocations: 4 kB / 0.6205 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.152e-05/0.004741, allocations: 3.984 kB / 0.6205 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.004745, allocations: 3.938 kB / 0.6205 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.88e-05/0.004764, allocations: 11.89 kB / 0.6205 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-06/0.004768, allocations: 3.938 kB / 0.6205 GB, free: 2.418 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.473e-05/0.004843, allocations: 110.8 kB / 0.6206 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.644e-06/0.004851, allocations: 4.031 kB / 0.6207 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.662e-05/0.004947, allocations: 48.8 kB / 0.6207 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.004949, allocations: 0 / 0.6207 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.004952, allocations: 4 kB / 0.6207 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.004956, allocations: 0 / 0.6207 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.606e-05/0.005042, allocations: 97.27 kB / 0.6208 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.005043, allocations: 0 / 0.6208 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.664e-05/0.005069, allocations: 7.984 kB / 0.6208 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.005072, allocations: 0 / 0.6208 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.005079, allocations: 3.984 kB / 0.6208 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.005081, allocations: 32 / 0.6208 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.005083, allocations: 8 kB / 0.6208 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.911e-05/0.005172, allocations: 69 kB / 0.6209 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 5.741e-06/0.005178, allocations: 3.938 kB / 0.6209 GB, free: 2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.005191, allocations: 4 kB / 0.6209 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.005203, allocations: 4 kB / 0.6209 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.005231, allocations: 0 / 0.6209 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.005233, allocations: 0 / 0.6209 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.548e-05/0.005269, allocations: 75.28 kB / 0.621 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.005269, allocations: 3.938 kB / 0.621 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000184/0.005453, allocations: 8 kB / 0.621 GB, free: 1.906 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.0001597/0.005612, allocations: 111.2 kB / 0.6211 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 7.216e-05/0.005684, allocations: 7.938 kB / 0.6211 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.005686, allocations: 0 / 0.6211 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.357e-05/0.0057, allocations: 4 kB / 0.6211 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.00583, allocations: 4 kB / 0.6211 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000231/0.006061, allocations: 88.84 kB / 0.6212 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.745e-05/0.006108, allocations: 55.36 kB / 0.6212 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 1.159e-05/0.00612, allocations: 4.125 kB / 0.6212 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.097e-05/0.006141, allocations: 12.5 kB / 0.6213 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of SimCode: time 4.81e-07/0.006141, allocations: 0 / 0.6213 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of Templates: time 0.00278/0.008921, allocations: 326.2 kB / 0.6216 GB, free: 1.25 MB / 0.5294 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: 5.745266899466515] Failed to read output from testmodel.py, exit status != 0: 0.017448604106903076 0.032481413 0.026520944 Calling exit ...