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.0009083/0.0009083, allocations: 73.88 kB / 20.65 MB, free: 3.844 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.001037/0.001037, allocations: 169 kB / 24.06 MB, free: 452 kB / 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 1.003/1.003, allocations: 177.1 MB / 204.5 MB, free: 5.488 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-545:108: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-545:116: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.7814/0.7814, allocations: 154.6 MB / 415.6 MB, free: 0.5234 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.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: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.5215 GB, free: 1.875 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.089e-05, allocations: 4.562 kB / 0.5215 GB, free: 1.871 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001988/0.002009, allocations: 1.565 MB / 0.5231 GB, free: 324 kB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002901/0.002299, allocations: 128.7 kB / 0.5232 GB, free: 196 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.036e-05/0.002329, allocations: 0 / 0.5232 GB, free: 196 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.332e-05/0.002352, allocations: 4.5 kB / 0.5232 GB, free: 192 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 4.289e-05/0.002395, allocations: 13.67 kB / 0.5232 GB, free: 180 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.002616, allocations: 23.86 kB / 0.5232 GB, free: 156 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 5.865e-05/0.002675, allocations: 29.39 kB / 0.5233 GB, free: 128 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.87e-05/0.002753, allocations: 11.98 kB / 0.5233 GB, free: 116 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.901e-05/0.002802, allocations: 15.98 kB / 0.5233 GB, free: 100 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.002e-05/0.002842, allocations: 11.98 kB / 0.5233 GB, free: 88 kB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.002856, allocations: 0.9375 kB / 0.5233 GB, free: 88 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.941e-05/0.002915, allocations: 15.98 kB / 0.5233 GB, free: 72 kB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.527e-05/0.00293, allocations: 7.922 kB / 0.5233 GB, free: 64 kB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.471e-05/0.002945, allocations: 12.98 kB / 0.5233 GB, free: 52 kB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 9.585e-05/0.003041, allocations: 31.89 kB / 0.5234 GB, free: 20 kB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.003043, allocations: 1.562 kB / 0.5234 GB, free: 20 kB / 490.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.003043, allocations: 0 / 0.5234 GB, free: 20 kB / 490.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.003047, allocations: 0 / 0.5234 GB, free: 20 kB / 490.7 MB 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.0003142/0.003361, allocations: 364.6 kB / 0.5237 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.003392, allocations: 8.844 kB / 0.5237 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.003419, allocations: 4.938 kB / 0.5237 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.296e-05/0.003502, allocations: 121.8 kB / 0.5238 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.003518, allocations: 4.375 kB / 0.5238 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.386e-06/0.003526, allocations: 4.359 kB / 0.5239 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.003627, allocations: 60.3 kB / 0.5239 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-06/0.003633, allocations: 192 / 0.5239 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.00364, allocations: 384 / 0.5239 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-06/0.003643, allocations: 384 / 0.5239 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.53e-05/0.003668, allocations: 16.7 kB / 0.5239 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002256/0.003894, allocations: 248.4 kB / 0.5242 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.004027, allocations: 40.64 kB / 0.5242 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.865e-05/0.004045, allocations: 15.73 kB / 0.5242 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 5.482e-05/0.0041, allocations: 7.984 kB / 0.5242 GB, free: 15.03 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.00412, allocations: 43.7 kB / 0.5243 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.004121, allocations: 0 / 0.5243 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0001149/0.004236, allocations: 49.56 kB / 0.5243 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/0.004265, allocations: 55.41 kB / 0.5244 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.926e-05/0.004324, allocations: 161.9 kB / 0.5245 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.689e-06/0.004334, allocations: 29.7 kB / 0.5245 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 3.918e-05/0.004373, allocations: 127.4 kB / 0.5247 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.458e-05/0.004387, allocations: 9.422 kB / 0.5247 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.534e-05/0.004423, allocations: 27.34 kB / 0.5247 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.004531, allocations: 492.1 kB / 0.5252 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.047e-05/0.004542, allocations: 0 / 0.5252 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.608e-06/0.004551, allocations: 4.969 kB / 0.5252 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.118e-05/0.004582, allocations: 23.67 kB / 0.5252 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.004584, allocations: 0.9375 kB / 0.5252 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.513e-05/0.004639, allocations: 49.58 kB / 0.5252 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.004649, allocations: 4 kB / 0.5253 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.004653, allocations: 0.9375 kB / 0.5253 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.614e-06/0.004661, allocations: 7.875 kB / 0.5253 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.947e-05/0.0047, allocations: 8.5 kB / 0.5253 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-06/0.004702, allocations: 0.6875 kB / 0.5253 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.025e-05/0.004723, allocations: 7.984 kB / 0.5253 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-06/0.004727, allocations: 1.219 kB / 0.5253 GB, free: 13.87 MB / 0.4948 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 6.406e-05/0.004791, allocations: 156.6 kB / 0.5254 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.004807, allocations: 4.625 kB / 0.5254 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.883e-05/0.004886, allocations: 53.95 kB / 0.5255 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.004888, allocations: 3.938 kB / 0.5255 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.004891, allocations: 1.25 kB / 0.5255 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.004894, allocations: 4 kB / 0.5255 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.412e-05/0.004988, allocations: 105.2 kB / 0.5256 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.004989, allocations: 0 / 0.5256 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.353e-05/0.005012, allocations: 10.44 kB / 0.5256 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.005014, allocations: 4 kB / 0.5256 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.089e-06/0.005019, allocations: 4 kB / 0.5256 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.00502, allocations: 0 / 0.5256 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.00502, allocations: 0 / 0.5256 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.227e-05/0.005113, allocations: 196.4 kB / 0.5258 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-06/0.005119, allocations: 11.03 kB / 0.5258 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.114e-06/0.005126, allocations: 0 / 0.5258 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.157e-05/0.005158, allocations: 4 kB / 0.5258 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.00519, allocations: 15.86 kB / 0.5258 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.005192, allocations: 0 / 0.5258 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.162e-05/0.005224, allocations: 123.2 kB / 0.5259 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4e-08/0.005224, allocations: 0 / 0.5259 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001796/0.005404, allocations: 12 kB / 0.526 GB, free: 13.12 MB / 0.4948 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 8.794e-05/0.005492, allocations: 101.2 kB / 0.5261 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 5.971e-05/0.005551, allocations: 19.67 kB / 0.5261 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.71e-07/0.005552, allocations: 0 / 0.5261 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.18e-05/0.005574, allocations: 22.23 kB / 0.5261 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001521/0.005726, allocations: 7.938 kB / 0.5261 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001875/0.005914, allocations: 122.2 kB / 0.5262 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.949e-05/0.005943, allocations: 59.3 kB / 0.5263 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.034e-05/0.005963, allocations: 6.75 kB / 0.5263 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.677e-05/0.00601, allocations: 78.19 kB / 0.5264 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of SimCode: time 4.71e-07/0.006011, allocations: 0 / 0.5264 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of Templates: time 0.002115/0.008126, allocations: 0.833 MB / 0.5272 GB, free: 11.86 MB / 0.4948 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=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.747103301808238]