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.001009/0.001009, allocations: 97.52 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009578/0.000958, allocations: 174.3 kB / 16.57 MB, free: 6.391 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.288/1.288, allocations: 223.2 MB / 240.5 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6511/0.6511, allocations: 113.8 MB / 405.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002848/0.0002849, allocations: 12 kB / 493 MB, free: 8.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1305, allocations: 77.16 MB / 0.5568 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001715/0.1323, allocations: 1.206 MB / 0.558 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003324/0.1326, allocations: 120.5 kB / 0.5581 GB, free: 10.27 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.833e-05/0.1327, allocations: 0 / 0.5581 GB, free: 10.27 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.947e-05/0.1327, allocations: 3.938 kB / 0.5581 GB, free: 10.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.276e-05/0.1328, allocations: 0 / 0.5581 GB, free: 10.26 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.133, allocations: 23.97 kB / 0.5582 GB, free: 10.24 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.325e-05/0.1331, allocations: 15.98 kB / 0.5582 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.685e-05/0.1332, allocations: 11.92 kB / 0.5582 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.003e-05/0.1332, allocations: 15.92 kB / 0.5582 GB, free: 10.2 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.729e-05/0.1333, allocations: 11.92 kB / 0.5582 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.966e-05/0.1333, allocations: 4 kB / 0.5582 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.081e-05/0.1333, allocations: 8 kB / 0.5582 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.656e-06/0.1334, allocations: 0 / 0.5582 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.364e-05/0.1334, allocations: 25.7 kB / 0.5582 GB, free: 10.14 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 7.19e-05/0.1335, allocations: 31.94 kB / 0.5583 GB, free: 10.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.1335, allocations: 4 kB / 0.5583 GB, free: 10.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1335, allocations: 0 / 0.5583 GB, free: 10.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.287e-06/0.1335, allocations: 0 / 0.5583 GB, free: 10.11 MB / 430.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.0004145/0.1339, allocations: 347.6 kB / 0.5586 GB, free: 9.719 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.134, allocations: 12.02 kB / 0.5586 GB, free: 9.707 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.134, allocations: 3.906 kB / 0.5586 GB, free: 9.703 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.1341, allocations: 167 kB / 0.5588 GB, free: 9.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.1341, allocations: 4 kB / 0.5588 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.1342, allocations: 4 kB / 0.5588 GB, free: 9.492 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.1343, allocations: 61.66 kB / 0.5588 GB, free: 9.426 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1344, allocations: 7.938 kB / 0.5589 GB, free: 9.418 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.1344, allocations: 4 kB / 0.5589 GB, free: 9.414 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1344, allocations: 0 / 0.5589 GB, free: 9.414 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.1346, allocations: 51.95 kB / 0.5589 GB, free: 9.363 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003398/0.1349, allocations: 264.9 kB / 0.5592 GB, free: 9.055 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003158/0.1353, allocations: 66.5 kB / 0.5592 GB, free: 8.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.1354, allocations: 85.25 kB / 0.5593 GB, free: 8.879 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.1354, allocations: 30.56 kB / 0.5593 GB, free: 8.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1354, allocations: 0 / 0.5593 GB, free: 8.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.000409/0.1358, allocations: 113.5 kB / 0.5594 GB, free: 8.723 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.1359, allocations: 55.39 kB / 0.5595 GB, free: 8.656 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.947e-05/0.136, allocations: 97.86 kB / 0.5596 GB, free: 8.551 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.136, allocations: 25.7 kB / 0.5596 GB, free: 8.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.641e-05/0.136, allocations: 92.14 kB / 0.5597 GB, free: 8.426 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.1361, allocations: 11.83 kB / 0.5597 GB, free: 8.414 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-06/0.1361, allocations: 0 / 0.5597 GB, free: 8.414 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1362, allocations: 310.8 kB / 0.56 GB, free: 8.102 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.642e-05/0.1363, allocations: 23.98 kB / 0.56 GB, free: 8.078 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.637e-05/0.1364, allocations: 31.97 kB / 0.5601 GB, free: 8.047 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.26e-05/0.1365, allocations: 23.98 kB / 0.5601 GB, free: 8.023 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1365, allocations: 0 / 0.5601 GB, free: 8.023 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002237/0.1367, allocations: 89.55 kB / 0.5602 GB, free: 7.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.1368, allocations: 4 kB / 0.5602 GB, free: 7.926 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1368, allocations: 3.984 kB / 0.5602 GB, free: 7.922 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.1368, allocations: 0 / 0.5602 GB, free: 7.922 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-05/0.1369, allocations: 15.94 kB / 0.5602 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1369, allocations: 7.922 kB / 0.5602 GB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.06e-05/0.1369, allocations: 12 kB / 0.5602 GB, free: 7.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.137, allocations: 0 / 0.5602 GB, free: 7.887 MB / 430.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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.225e-05/0.137, allocations: 109.8 kB / 0.5603 GB, free: 7.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.1371, allocations: 11.86 kB / 0.5603 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002676/0.1373, allocations: 97.12 kB / 0.5604 GB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1374, allocations: 4.562 kB / 0.5604 GB, free: 7.648 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1374, allocations: 4 kB / 0.5604 GB, free: 7.645 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1374, allocations: 3.938 kB / 0.5604 GB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.1375, allocations: 157.7 kB / 0.5606 GB, free: 7.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1375, allocations: 3.984 kB / 0.5606 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.541e-05/0.1376, allocations: 8 kB / 0.5606 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1376, allocations: 0 / 0.5606 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.1377, allocations: 11.92 kB / 0.5606 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1377, allocations: 4 kB / 0.5606 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1377, allocations: 4 kB / 0.5606 GB, free: 7.406 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002608/0.1379, allocations: 171.5 kB / 0.5608 GB, free: 7.223 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.138, allocations: 81.11 kB / 0.5609 GB, free: 7.125 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.138, allocations: 3.984 kB / 0.5609 GB, free: 7.121 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.1381, allocations: 15.95 kB / 0.5609 GB, free: 7.105 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.1382, allocations: 7.984 kB / 0.5609 GB, free: 7.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.1382, allocations: 0 / 0.5609 GB, free: 7.098 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.691e-05/0.1382, allocations: 83.28 kB / 0.561 GB, free: 7.016 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.1382, allocations: 0 / 0.561 GB, free: 7.016 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002291/0.1384, allocations: 11.94 kB / 0.561 GB, free: 7.004 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001445/0.1386, allocations: 103.9 kB / 0.5611 GB, free: 6.891 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002386/0.1388, allocations: 55.95 kB / 0.5611 GB, free: 6.836 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1389, allocations: 0 / 0.5611 GB, free: 6.836 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.139, allocations: 27.98 kB / 0.5612 GB, free: 6.809 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001813/0.1392, allocations: 7.984 kB / 0.5612 GB, free: 6.801 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002691/0.1394, allocations: 120.6 kB / 0.5613 GB, free: 6.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.1397, allocations: 0.677 MB / 0.5619 GB, free: 5.957 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.437e-05/0.1397, allocations: 8 kB / 0.5619 GB, free: 5.949 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.534e-05/0.1398, allocations: 11.44 kB / 0.562 GB, free: 5.938 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1398, allocations: 0 / 0.562 GB, free: 5.938 MB / 430.1 MB Notification: Performance of Templates: time 0.002691/0.1425, allocations: 0.5908 MB / 0.5625 GB, free: 5.352 MB / 430.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)