Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009327/0.0009326, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001062/0.001062, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.2 MB / 239.9 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9823/0.9823, allocations: 143.3 MB / 434.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003121/0.0003122, allocations: 12 kB / 0.5158 GB, free: 11.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1477, allocations: 83.41 MB / 0.5973 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0006956/0.1485, allocations: 311 kB / 0.5976 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002364/0.1487, allocations: 43.89 kB / 0.5976 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.213e-05/0.1488, allocations: 3.938 kB / 0.5976 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.057e-05/0.1488, allocations: 4 kB / 0.5976 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.007e-06/0.1488, allocations: 3.938 kB / 0.5976 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001535/0.149, allocations: 8 kB / 0.5976 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 2.871e-05/0.149, allocations: 0 / 0.5976 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.893e-05/0.149, allocations: 0 / 0.5976 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.1e-05/0.1491, allocations: 0 / 0.5976 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.682e-05/0.1491, allocations: 15.97 kB / 0.5977 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.1491, allocations: 0 / 0.5977 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.436e-05/0.1492, allocations: 4 kB / 0.5977 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.731e-06/0.1492, allocations: 0 / 0.5977 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.141e-05/0.1492, allocations: 25.7 kB / 0.5977 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 5.168e-05/0.1493, allocations: 11.98 kB / 0.5977 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.1493, allocations: 0 / 0.5977 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1493, allocations: 0 / 0.5977 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.1493, allocations: 0 / 0.5977 GB, free: 7.336 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002465/0.1495, allocations: 315.4 kB / 0.598 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.1496, allocations: 11.97 kB / 0.598 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.276e-05/0.1496, allocations: 0 / 0.598 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.579e-05/0.1497, allocations: 163 kB / 0.5982 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.1497, allocations: 0 / 0.5982 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.1497, allocations: 7.938 kB / 0.5982 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.226e-05/0.1498, allocations: 33.69 kB / 0.5982 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-06/0.1498, allocations: 0 / 0.5982 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.1498, allocations: 4 kB / 0.5982 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1499, allocations: 0 / 0.5982 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.392e-05/0.1499, allocations: 0 / 0.5982 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.15, allocations: 157.6 kB / 0.5984 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.237e-05/0.1501, allocations: 26.55 kB / 0.5984 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.1502, allocations: 89.16 kB / 0.5985 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.1502, allocations: 30.56 kB / 0.5985 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1503, allocations: 0 / 0.5985 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001222/0.1504, allocations: 41.64 kB / 0.5985 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.1504, allocations: 55.41 kB / 0.5986 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.252e-05/0.1505, allocations: 93.8 kB / 0.5987 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.1505, allocations: 25.7 kB / 0.5987 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.995e-05/0.1505, allocations: 88.25 kB / 0.5988 GB, free: 6 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.1505, allocations: 3.906 kB / 0.5988 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.1505, allocations: 0 / 0.5988 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.1507, allocations: 310.8 kB / 0.5991 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.259e-05/0.1507, allocations: 8 kB / 0.5991 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.092e-06/0.1507, allocations: 0 / 0.5991 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.949e-05/0.1507, allocations: 7.953 kB / 0.5991 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1507, allocations: 0 / 0.5991 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.854e-05/0.1508, allocations: 37.69 kB / 0.5991 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.1508, allocations: 8.094 kB / 0.5992 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.1508, allocations: 0 / 0.5992 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.1508, allocations: 0 / 0.5992 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.346e-05/0.1509, allocations: 4 kB / 0.5992 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1509, allocations: 0 / 0.5992 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.591e-05/0.1509, allocations: 4 kB / 0.5992 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-06/0.1509, allocations: 7.938 kB / 0.5992 GB, free: 5.602 MB / 0.4981 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.331e-05/0.151, allocations: 109.8 kB / 0.5993 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.196e-06/0.151, allocations: 3.984 kB / 0.5993 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.829e-05/0.1511, allocations: 49.09 kB / 0.5993 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1511, allocations: 0 / 0.5993 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1511, allocations: 0 / 0.5993 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1511, allocations: 3.938 kB / 0.5993 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.598e-05/0.1512, allocations: 153.6 kB / 0.5995 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1512, allocations: 3.953 kB / 0.5995 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.597e-05/0.1513, allocations: 8 kB / 0.5995 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1513, allocations: 0 / 0.5995 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.1513, allocations: 0 / 0.5995 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1513, allocations: 0 / 0.5995 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1513, allocations: 4.031 kB / 0.5995 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.204e-05/0.1514, allocations: 69.06 kB / 0.5996 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.1514, allocations: 85.06 kB / 0.5996 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.1515, allocations: 4 kB / 0.5996 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.049e-05/0.1515, allocations: 0 / 0.5996 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.671e-05/0.1515, allocations: 3.984 kB / 0.5996 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.1515, allocations: 4 kB / 0.5996 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.512e-05/0.1515, allocations: 79.31 kB / 0.5997 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.1515, allocations: 0 / 0.5997 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001824/0.1517, allocations: 4 kB / 0.5997 GB, free: 4.93 MB / 0.4981 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001573/0.1519, allocations: 103.2 kB / 0.5998 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.145e-05/0.152, allocations: 15.92 kB / 0.5998 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.152, allocations: 0 / 0.5998 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.661e-05/0.152, allocations: 8 kB / 0.5998 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.209e-05/0.1521, allocations: 6.531 kB / 0.5999 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000152/0.1523, allocations: 78.75 kB / 0.5999 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/0.1525, allocations: 0.677 MB / 0.6006 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.27e-05/0.1525, allocations: 0 / 0.6006 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.1525, allocations: 7.438 kB / 0.6006 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1525, allocations: 0 / 0.6006 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of Templates: time 0.001967/0.1545, allocations: 310.6 kB / 0.6009 GB, free: 3.68 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: