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.001115/0.001115, allocations: 122.2 kB / 17.09 MB, free: 5.977 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.001071/0.001071, allocations: 192.7 kB / 18.02 MB, free: 5.059 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.359/1.359, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7224/0.7224, allocations: 115.3 MB / 407.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 66.64 kB / 0.5583 GB, free: 32.23 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1355, allocations: 76.17 MB / 0.6327 GB, free: 4.418 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002758/0.1383, allocations: 1.518 MB / 0.6342 GB, free: 2.887 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003587/0.1387, allocations: 116.5 kB / 0.6343 GB, free: 2.77 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.98e-05/0.1387, allocations: 4 kB / 0.6343 GB, free: 2.766 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.694e-05/0.1388, allocations: 3.938 kB / 0.6343 GB, free: 2.762 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.263e-05/0.1388, allocations: 7.922 kB / 0.6343 GB, free: 2.754 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.1391, allocations: 19.98 kB / 0.6344 GB, free: 2.734 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 7.441e-05/0.1391, allocations: 35.84 kB / 0.6344 GB, free: 2.699 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.598e-05/0.1392, allocations: 12 kB / 0.6344 GB, free: 2.688 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.416e-05/0.1393, allocations: 15.98 kB / 0.6344 GB, free: 2.672 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.955e-05/0.1394, allocations: 15.92 kB / 0.6344 GB, free: 2.656 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.419e-05/0.1394, allocations: 4 kB / 0.6344 GB, free: 2.652 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.996e-05/0.1394, allocations: 7.984 kB / 0.6344 GB, free: 2.645 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.277e-05/0.1395, allocations: 4 kB / 0.6345 GB, free: 2.641 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.777e-05/0.1395, allocations: 15.92 kB / 0.6345 GB, free: 2.625 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.1396, allocations: 31.89 kB / 0.6345 GB, free: 2.594 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1396, allocations: 4 kB / 0.6345 GB, free: 2.59 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1396, allocations: 4 kB / 0.6345 GB, free: 2.586 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1396, allocations: 0 / 0.6345 GB, free: 2.586 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.0004757/0.1401, allocations: 351.3 kB / 0.6348 GB, free: 2.191 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.1402, allocations: 8.031 kB / 0.6348 GB, free: 2.184 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.1402, allocations: 0.9375 kB / 0.6348 GB, free: 2.184 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.1403, allocations: 172.3 kB / 0.635 GB, free: 1.977 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.1404, allocations: 384 / 0.635 GB, free: 1.977 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.1404, allocations: 4.375 kB / 0.635 GB, free: 1.973 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.1406, allocations: 58.22 kB / 0.6351 GB, free: 1.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1406, allocations: 192 / 0.6351 GB, free: 1.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.1406, allocations: 7.938 kB / 0.6351 GB, free: 1.902 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.84e-06/0.1406, allocations: 4 kB / 0.6351 GB, free: 1.898 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.1408, allocations: 35.95 kB / 0.6351 GB, free: 1.863 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003424/0.1411, allocations: 260.8 kB / 0.6354 GB, free: 1.559 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.1415, allocations: 66.47 kB / 0.6354 GB, free: 1.484 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.4e-05/0.1416, allocations: 24.91 kB / 0.6355 GB, free: 1.457 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001094/0.1417, allocations: 85.09 kB / 0.6355 GB, free: 1.355 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.1417, allocations: 30.56 kB / 0.6356 GB, free: 1.316 MB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1417, allocations: 0 / 0.6356 GB, free: 1.316 MB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003667/0.1421, allocations: 101.6 kB / 0.6357 GB, free: 1.211 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.1421, allocations: 55.34 kB / 0.6357 GB, free: 1.145 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.469e-05/0.1422, allocations: 106 kB / 0.6358 GB, free: 1.031 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.1422, allocations: 25.7 kB / 0.6358 GB, free: 1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.114e-05/0.1423, allocations: 84.12 kB / 0.6359 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.775e-05/0.1423, allocations: 11.84 kB / 0.6359 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-05/0.1424, allocations: 17.72 kB / 0.6359 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1425, allocations: 314.8 kB / 0.6362 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.008e-05/0.1426, allocations: 19.97 kB / 0.6363 GB, free: 0.543 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.941e-05/0.1427, allocations: 19.98 kB / 0.6363 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.1428, allocations: 44.81 kB / 0.6363 GB, free: 488 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.1428, allocations: 7.938 kB / 0.6363 GB, free: 480 kB / 478.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002104/0.1431, allocations: 77.5 kB / 0.6364 GB, free: 396 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.1431, allocations: 4 kB / 0.6364 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1431, allocations: 4 kB / 0.6364 GB, free: 388 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.1431, allocations: 0 / 0.6364 GB, free: 388 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.187e-05/0.1432, allocations: 15.92 kB / 0.6364 GB, free: 372 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.1432, allocations: 0 / 0.6364 GB, free: 372 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.959e-05/0.1433, allocations: 11.98 kB / 0.6364 GB, free: 360 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.1433, allocations: 4 kB / 0.6364 GB, free: 356 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 7.276e-05/0.1434, allocations: 113.8 kB / 0.6366 GB, free: 232 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.1434, allocations: 4 kB / 0.6366 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002568/0.1437, allocations: 85.08 kB / 0.6366 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1437, allocations: 0 / 0.6366 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1437, allocations: 0 / 0.6366 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1437, allocations: 7.984 kB / 0.6366 GB, free: 124 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.1439, allocations: 161.6 kB / 0.6368 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1439, allocations: 4 kB / 0.6368 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.635e-05/0.144, allocations: 11.98 kB / 0.6368 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.144, allocations: 0 / 0.6368 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.144, allocations: 0 / 0.6368 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.144, allocations: 7.984 kB / 0.6368 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.144, allocations: 0 / 0.6368 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002599/0.1443, allocations: 175.4 kB / 0.637 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.1443, allocations: 81.02 kB / 0.6371 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.1443, allocations: 4 kB / 0.6371 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-05/0.1444, allocations: 7.984 kB / 0.6371 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.1445, allocations: 7.984 kB / 0.6371 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.1445, allocations: 0 / 0.6371 GB, free: 15.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.501e-05/0.1445, allocations: 83.7 kB / 0.6372 GB, free: 15.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1445, allocations: 0 / 0.6372 GB, free: 15.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.1448, allocations: 12 kB / 0.6372 GB, free: 15.49 MB / 494.1 MB 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 0.0001396/0.1449, allocations: 103.2 kB / 0.6373 GB, free: 15.38 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000225/0.1451, allocations: 56.02 kB / 0.6373 GB, free: 15.32 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1452, allocations: 0 / 0.6373 GB, free: 15.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.272e-05/0.1453, allocations: 23.92 kB / 0.6374 GB, free: 15.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.1455, allocations: 9.344 kB / 0.6374 GB, free: 15.29 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003033/0.1458, allocations: 139.3 kB / 0.6375 GB, free: 15.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.1461, allocations: 0.6729 MB / 0.6382 GB, free: 14.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.123e-05/0.1462, allocations: 19.36 kB / 0.6382 GB, free: 14.41 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1462, allocations: 0 / 0.6382 GB, free: 14.41 MB / 494.1 MB Notification: Performance of Templates: time 0.002143/0.1483, allocations: 0.7286 MB / 0.6389 GB, free: 13.68 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)