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.001094/0.001094, allocations: 93.41 kB / 15.7 MB, free: 472 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.001423/0.001423, allocations: 174 kB / 16.58 MB, free: 5.66 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.384/1.384, allocations: 223.3 MB / 240.6 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7042/0.7042, allocations: 115.5 MB / 407.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002923/0.0002923, allocations: 12.22 kB / 495.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1306, allocations: 77.53 MB / 0.5593 GB, free: 9.402 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001547/0.1322, allocations: 1.215 MB / 0.5605 GB, free: 8.176 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003287/0.1325, allocations: 120.6 kB / 0.5606 GB, free: 8.055 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.831e-05/0.1326, allocations: 0 / 0.5606 GB, free: 8.055 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.53e-05/0.1326, allocations: 7.875 kB / 0.5606 GB, free: 8.047 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.078e-05/0.1327, allocations: 0 / 0.5606 GB, free: 8.047 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.1329, allocations: 19.98 kB / 0.5606 GB, free: 8.027 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.19e-05/0.1329, allocations: 27.92 kB / 0.5607 GB, free: 8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.927e-05/0.133, allocations: 4 kB / 0.5607 GB, free: 7.996 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.259e-05/0.1331, allocations: 15.92 kB / 0.5607 GB, free: 7.98 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.927e-05/0.1331, allocations: 15.91 kB / 0.5607 GB, free: 7.965 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.1331, allocations: 0 / 0.5607 GB, free: 7.965 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.684e-05/0.1332, allocations: 8 kB / 0.5607 GB, free: 7.957 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.216e-06/0.1332, allocations: 4 kB / 0.5607 GB, free: 7.953 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.101e-05/0.1332, allocations: 25.7 kB / 0.5607 GB, free: 7.922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 6.947e-05/0.1333, allocations: 31.95 kB / 0.5608 GB, free: 7.891 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1333, allocations: 0 / 0.5608 GB, free: 7.891 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1333, allocations: 0 / 0.5608 GB, free: 7.891 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.556e-06/0.1333, allocations: 0 / 0.5608 GB, free: 7.891 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.0003932/0.1337, allocations: 343.5 kB / 0.5611 GB, free: 7.508 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.1338, allocations: 12.03 kB / 0.5611 GB, free: 7.496 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.571e-05/0.1338, allocations: 0 / 0.5611 GB, free: 7.496 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.1339, allocations: 171.1 kB / 0.5613 GB, free: 7.289 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.1339, allocations: 3.938 kB / 0.5613 GB, free: 7.285 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.134, allocations: 0 / 0.5613 GB, free: 7.285 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.1341, allocations: 65.66 kB / 0.5613 GB, free: 7.215 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1342, allocations: 3.953 kB / 0.5613 GB, free: 7.211 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.1342, allocations: 4 kB / 0.5613 GB, free: 7.207 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1342, allocations: 4 kB / 0.5614 GB, free: 7.203 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.1344, allocations: 55.95 kB / 0.5614 GB, free: 7.148 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003419/0.1347, allocations: 261 kB / 0.5617 GB, free: 6.844 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002862/0.135, allocations: 70.44 kB / 0.5617 GB, free: 6.766 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.892e-05/0.1351, allocations: 32.89 kB / 0.5618 GB, free: 6.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.1353, allocations: 81.11 kB / 0.5618 GB, free: 6.633 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.1353, allocations: 34.56 kB / 0.5619 GB, free: 6.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 2.966e-06/0.1353, allocations: 0 / 0.5619 GB, free: 6.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003739/0.1357, allocations: 117.4 kB / 0.562 GB, free: 6.469 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.1357, allocations: 55.41 kB / 0.562 GB, free: 6.402 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.889e-05/0.1358, allocations: 105.8 kB / 0.5621 GB, free: 6.289 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.1358, allocations: 25.7 kB / 0.5622 GB, free: 6.258 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.138e-05/0.1359, allocations: 88.14 kB / 0.5622 GB, free: 6.168 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.1359, allocations: 7.844 kB / 0.5622 GB, free: 6.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.898e-06/0.1359, allocations: 0 / 0.5622 GB, free: 6.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.136, allocations: 310.8 kB / 0.5625 GB, free: 5.848 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.505e-05/0.1361, allocations: 31.97 kB / 0.5626 GB, free: 5.816 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.839e-05/0.1362, allocations: 23.98 kB / 0.5626 GB, free: 5.793 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.175e-05/0.1363, allocations: 23.98 kB / 0.5626 GB, free: 5.77 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1363, allocations: 0 / 0.5626 GB, free: 5.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002232/0.1365, allocations: 89.59 kB / 0.5627 GB, free: 5.676 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1366, allocations: 4 kB / 0.5627 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1366, allocations: 3.938 kB / 0.5627 GB, free: 5.668 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.1366, allocations: 0 / 0.5627 GB, free: 5.668 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.681e-05/0.1367, allocations: 16.5 kB / 0.5627 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.1367, allocations: 4 kB / 0.5627 GB, free: 5.648 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.613e-05/0.1368, allocations: 12 kB / 0.5627 GB, free: 5.637 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.1368, allocations: 3.984 kB / 0.5627 GB, free: 5.633 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 6.832e-05/0.1369, allocations: 105.8 kB / 0.5628 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.1369, allocations: 11.86 kB / 0.5629 GB, free: 5.508 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002561/0.1372, allocations: 101.1 kB / 0.563 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1372, allocations: 0 / 0.563 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1372, allocations: 0 / 0.563 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1372, allocations: 0 / 0.563 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.1374, allocations: 161.7 kB / 0.5631 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1374, allocations: 0 / 0.5631 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.572e-05/0.1374, allocations: 19.92 kB / 0.5631 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.1375, allocations: 0 / 0.5631 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.1375, allocations: 3.953 kB / 0.5631 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.1375, allocations: 4 kB / 0.5631 GB, free: 5.168 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1375, allocations: 0 / 0.5631 GB, free: 5.168 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.1377, allocations: 179.5 kB / 0.5633 GB, free: 4.977 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.224e-05/0.1378, allocations: 85.05 kB / 0.5634 GB, free: 4.875 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.1378, allocations: 0 / 0.5634 GB, free: 4.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.579e-05/0.1379, allocations: 15.94 kB / 0.5634 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.1379, allocations: 4 kB / 0.5634 GB, free: 4.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-06/0.138, allocations: 4 kB / 0.5634 GB, free: 4.852 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.583e-05/0.138, allocations: 87.27 kB / 0.5635 GB, free: 4.766 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.138, allocations: 4 kB / 0.5635 GB, free: 4.762 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002358/0.1382, allocations: 4 kB / 0.5635 GB, free: 4.758 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.000132/0.1384, allocations: 103.2 kB / 0.5636 GB, free: 4.645 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002136/0.1386, allocations: 55.95 kB / 0.5637 GB, free: 4.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1386, allocations: 7.938 kB / 0.5637 GB, free: 4.582 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.669e-05/0.1387, allocations: 27.97 kB / 0.5637 GB, free: 4.555 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.139, allocations: 5.719 kB / 0.5637 GB, free: 4.551 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002648/0.1393, allocations: 116.6 kB / 0.5638 GB, free: 4.414 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.1395, allocations: 0.6848 MB / 0.5645 GB, free: 3.703 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.231e-05/0.1395, allocations: 4 kB / 0.5645 GB, free: 3.699 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.312e-05/0.1396, allocations: 7.438 kB / 0.5645 GB, free: 3.691 MB / 430.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1396, allocations: 0 / 0.5645 GB, free: 3.691 MB / 430.1 MB Notification: Performance of Templates: time 0.00259/0.1422, allocations: 0.5911 MB / 0.5651 GB, free: 3.105 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)