Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 113 kB / 17.09 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 198.8 kB / 18.03 MB, free: 5.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.673/0.673, allocations: 115.3 MB / 407.2 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.7 kB / 0.5583 GB, free: 32.26 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.114, allocations: 76.19 MB / 0.6327 GB, free: 4.395 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002255/0.1163, allocations: 1.499 MB / 0.6342 GB, free: 2.883 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.000299/0.1166, allocations: 124.5 kB / 0.6343 GB, free: 2.758 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.234e-05/0.1167, allocations: 4 kB / 0.6343 GB, free: 2.754 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.287e-05/0.1167, allocations: 0 / 0.6343 GB, free: 2.754 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.258e-05/0.1167, allocations: 3.938 kB / 0.6343 GB, free: 2.75 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.1169, allocations: 23.92 kB / 0.6344 GB, free: 2.727 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.083e-05/0.117, allocations: 35.89 kB / 0.6344 GB, free: 2.691 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.037e-05/0.1171, allocations: 12 kB / 0.6344 GB, free: 2.68 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.659e-05/0.1171, allocations: 11.98 kB / 0.6344 GB, free: 2.668 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.008e-05/0.1172, allocations: 15.92 kB / 0.6344 GB, free: 2.652 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.1172, allocations: 8 kB / 0.6344 GB, free: 2.645 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.736e-05/0.1172, allocations: 8 kB / 0.6344 GB, free: 2.637 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.155e-05/0.1173, allocations: 7.938 kB / 0.6345 GB, free: 2.629 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.285e-05/0.1173, allocations: 19.84 kB / 0.6345 GB, free: 2.609 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 8.82e-05/0.1174, allocations: 27.91 kB / 0.6345 GB, free: 2.582 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1174, allocations: 4 kB / 0.6345 GB, free: 2.578 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1174, allocations: 0 / 0.6345 GB, free: 2.578 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1174, allocations: 0 / 0.6345 GB, free: 2.578 MB / 478.1 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.000404/0.1178, allocations: 355.3 kB / 0.6348 GB, free: 2.18 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.1179, allocations: 12.03 kB / 0.6349 GB, free: 2.168 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.7e-05/0.1179, allocations: 0.9375 kB / 0.6349 GB, free: 2.168 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.994e-05/0.118, allocations: 168.4 kB / 0.635 GB, free: 1.965 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.118, allocations: 384 / 0.635 GB, free: 1.965 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.118, allocations: 384 / 0.635 GB, free: 1.965 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001648/0.1182, allocations: 66.22 kB / 0.6351 GB, free: 1.895 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.1182, allocations: 192 / 0.6351 GB, free: 1.895 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.1182, allocations: 3.938 kB / 0.6351 GB, free: 1.891 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1182, allocations: 0 / 0.6351 GB, free: 1.891 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/0.1184, allocations: 47.89 kB / 0.6351 GB, free: 1.844 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002957/0.1187, allocations: 264.9 kB / 0.6354 GB, free: 1.535 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.119, allocations: 58.47 kB / 0.6354 GB, free: 1.469 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.481e-05/0.1191, allocations: 28.91 kB / 0.6355 GB, free: 1.438 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.965e-05/0.1192, allocations: 85.09 kB / 0.6355 GB, free: 1.336 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.1193, allocations: 38.5 kB / 0.6356 GB, free: 1.289 MB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1193, allocations: 0 / 0.6356 GB, free: 1.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003478/0.1196, allocations: 89.62 kB / 0.6357 GB, free: 1.195 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/0.1197, allocations: 51.41 kB / 0.6357 GB, free: 1.133 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.796e-05/0.1197, allocations: 105.9 kB / 0.6358 GB, free: 1.02 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.1197, allocations: 25.7 kB / 0.6358 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.1198, allocations: 84.12 kB / 0.6359 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.1198, allocations: 11.84 kB / 0.6359 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/0.1198, allocations: 13.72 kB / 0.6359 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.083e-05/0.1199, allocations: 318.8 kB / 0.6363 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.702e-05/0.12, allocations: 15.97 kB / 0.6363 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.225e-05/0.1201, allocations: 27.92 kB / 0.6363 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.1203, allocations: 44.81 kB / 0.6363 GB, free: 472 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1203, allocations: 0 / 0.6363 GB, free: 472 kB / 478.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002111/0.1205, allocations: 77.5 kB / 0.6364 GB, free: 388 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.1205, allocations: 4 kB / 0.6364 GB, free: 384 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1205, allocations: 0.5156 kB / 0.6364 GB, free: 384 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.1205, allocations: 11.94 kB / 0.6364 GB, free: 372 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.641e-05/0.1206, allocations: 11.98 kB / 0.6364 GB, free: 360 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1206, allocations: 4 kB / 0.6364 GB, free: 356 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.428e-05/0.1207, allocations: 3.984 kB / 0.6364 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-06/0.1207, allocations: 7.938 kB / 0.6365 GB, free: 344 kB / 478.1 MB 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.164e-05/0.1208, allocations: 113.7 kB / 0.6366 GB, free: 220 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.1208, allocations: 7.984 kB / 0.6366 GB, free: 212 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.1211, allocations: 85.14 kB / 0.6366 GB, free: 116 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1211, allocations: 0 / 0.6366 GB, free: 116 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1211, allocations: 3.984 kB / 0.6367 GB, free: 112 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.893e-05/0.1211, allocations: 77.11 kB / 0.6367 GB, free: 16 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.1211, allocations: 4 kB / 0.6367 GB, free: 12 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-05/0.1212, allocations: 4 kB / 0.6367 GB, free: 8 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.109e-05/0.1213, allocations: 8.188 kB / 0.6367 GB, free: 16 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002737/0.1216, allocations: 164.8 kB / 0.6369 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002807/0.1218, allocations: 250.7 kB / 0.6371 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.51e-05/0.122, allocations: 23.97 kB / 0.6372 GB, free: 15.54 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.635e-05/0.122, allocations: 79.28 kB / 0.6372 GB, free: 15.46 MB / 494.1 MB Notification: Performance of Backend: time 2.21e-07/0.122, allocations: 4 kB / 0.6372 GB, free: 15.46 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004047/0.1224, allocations: 111.5 kB / 0.6373 GB, free: 15.34 MB / 494.1 MB Notification: Performance of SimCode: time 0.0003681/0.1228, allocations: 0.5494 MB / 0.6379 GB, free: 14.75 MB / 494.1 MB Notification: Performance of Templates: time 0.002639/0.1254, allocations: 0.8093 MB / 0.6387 GB, free: 13.94 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)