Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001031/0.001031, allocations: 100.5 kB / 16.35 MB, free: 5.824 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.00112/0.00112, allocations: 193.4 kB / 17.29 MB, free: 5.48 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.242/1.242, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 297.4 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8815/0.8815, allocations: 169.3 MB / 0.4989 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001753, allocations: 97.25 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1454, allocations: 86.98 MB / 0.6816 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001688/0.1471, allocations: 0.5681 MB / 0.6822 GB, free: 6.887 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002421/0.1474, allocations: 63.91 kB / 0.6822 GB, free: 6.824 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.566e-05/0.1474, allocations: 4 kB / 0.6822 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.058e-05/0.1474, allocations: 0 / 0.6822 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.478e-06/0.1475, allocations: 0 / 0.6822 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.1477, allocations: 7.938 kB / 0.6822 GB, free: 6.812 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.348e-05/0.1477, allocations: 7.938 kB / 0.6822 GB, free: 6.805 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.09e-05/0.1478, allocations: 3.984 kB / 0.6822 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.216e-05/0.1478, allocations: 0 / 0.6822 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.215e-05/0.1478, allocations: 11.98 kB / 0.6823 GB, free: 6.789 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.807e-06/0.1478, allocations: 0 / 0.6823 GB, free: 6.789 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.384e-05/0.1479, allocations: 4 kB / 0.6823 GB, free: 6.785 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.064e-05/0.1479, allocations: 4 kB / 0.6823 GB, free: 6.781 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.596e-05/0.1479, allocations: 4 kB / 0.6823 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.012e-05/0.148, allocations: 11.92 kB / 0.6823 GB, free: 6.766 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.148, allocations: 0 / 0.6823 GB, free: 6.766 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.148, allocations: 0 / 0.6823 GB, free: 6.766 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1481, allocations: 0 / 0.6823 GB, free: 6.766 MB / 494.1 MB 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.00025/0.1483, allocations: 323.6 kB / 0.6826 GB, free: 6.398 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.1483, allocations: 8.031 kB / 0.6826 GB, free: 6.391 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.543e-05/0.1484, allocations: 0.9375 kB / 0.6826 GB, free: 6.391 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.833e-05/0.1485, allocations: 160.4 kB / 0.6828 GB, free: 6.195 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.1485, allocations: 4.375 kB / 0.6828 GB, free: 6.191 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.1485, allocations: 4.375 kB / 0.6828 GB, free: 6.188 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.48e-05/0.1486, allocations: 30.25 kB / 0.6828 GB, free: 6.152 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.1486, allocations: 192 / 0.6828 GB, free: 6.152 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.1486, allocations: 11.88 kB / 0.6828 GB, free: 6.141 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1486, allocations: 0 / 0.6828 GB, free: 6.141 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.141e-05/0.1487, allocations: 7.984 kB / 0.6828 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000119/0.1488, allocations: 145.7 kB / 0.6829 GB, free: 5.941 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.735e-05/0.1488, allocations: 30.59 kB / 0.683 GB, free: 5.902 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.136e-05/0.1489, allocations: 8.922 kB / 0.683 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001443/0.149, allocations: 85.09 kB / 0.6831 GB, free: 5.789 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.149, allocations: 30.56 kB / 0.6831 GB, free: 5.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.149, allocations: 0 / 0.6831 GB, free: 5.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001251/0.1492, allocations: 49.56 kB / 0.6831 GB, free: 5.695 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.1492, allocations: 51.41 kB / 0.6832 GB, free: 5.633 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.118e-05/0.1493, allocations: 97.92 kB / 0.6833 GB, free: 5.527 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.1493, allocations: 25.7 kB / 0.6833 GB, free: 5.496 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.555e-05/0.1493, allocations: 84.14 kB / 0.6834 GB, free: 5.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.1493, allocations: 3.938 kB / 0.6834 GB, free: 5.406 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.726e-05/0.1494, allocations: 17.7 kB / 0.6834 GB, free: 5.383 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.612e-05/0.1495, allocations: 314.8 kB / 0.6837 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.191e-05/0.1495, allocations: 0 / 0.6837 GB, free: 5.066 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.288e-06/0.1495, allocations: 4 kB / 0.6837 GB, free: 5.062 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.204e-05/0.1495, allocations: 20.86 kB / 0.6837 GB, free: 5.039 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1495, allocations: 0 / 0.6837 GB, free: 5.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.741e-05/0.1496, allocations: 45.53 kB / 0.6838 GB, free: 4.988 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1496, allocations: 4 kB / 0.6838 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1496, allocations: 0 / 0.6838 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1496, allocations: 3.938 kB / 0.6838 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.681e-05/0.1497, allocations: 4 kB / 0.6838 GB, free: 4.977 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1497, allocations: 0 / 0.6838 GB, free: 4.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.589e-05/0.1497, allocations: 8 kB / 0.6838 GB, free: 4.969 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-06/0.1497, allocations: 4.031 kB / 0.6838 GB, free: 4.965 MB / 494.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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.882e-05/0.1498, allocations: 105.8 kB / 0.6839 GB, free: 4.852 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-06/0.1498, allocations: 3.984 kB / 0.6839 GB, free: 4.848 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.273e-05/0.1499, allocations: 52.69 kB / 0.684 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1499, allocations: 0 / 0.684 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1499, allocations: 0 / 0.684 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1499, allocations: 0 / 0.684 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.962e-05/0.15, allocations: 149.7 kB / 0.6841 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.15, allocations: 0 / 0.6841 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.46e-05/0.15, allocations: 8.031 kB / 0.6841 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.15, allocations: 0 / 0.6841 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1501, allocations: 3.938 kB / 0.6841 GB, free: 4.582 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1501, allocations: 4 kB / 0.6841 GB, free: 4.578 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1501, allocations: 0 / 0.6841 GB, free: 4.578 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.834e-05/0.1501, allocations: 69.06 kB / 0.6842 GB, free: 4.492 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.118e-05/0.1502, allocations: 77.11 kB / 0.6843 GB, free: 4.398 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.1502, allocations: 15.95 kB / 0.6843 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.073e-05/0.1502, allocations: 0 / 0.6843 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.286e-05/0.1502, allocations: 0 / 0.6843 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.1502, allocations: 4 kB / 0.6843 GB, free: 4.379 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.111e-05/0.1503, allocations: 75.28 kB / 0.6843 GB, free: 4.305 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1503, allocations: 0 / 0.6843 GB, free: 4.305 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001857/0.1505, allocations: 4 kB / 0.6843 GB, free: 4.301 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,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 (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.0001335/0.1506, allocations: 99.25 kB / 0.6844 GB, free: 4.191 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.768e-05/0.1507, allocations: 19.98 kB / 0.6845 GB, free: 4.172 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.1507, allocations: 3.938 kB / 0.6845 GB, free: 4.168 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.656e-05/0.1507, allocations: 11.88 kB / 0.6845 GB, free: 4.156 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.1508, allocations: 0 / 0.6845 GB, free: 4.156 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001726/0.151, allocations: 85.06 kB / 0.6846 GB, free: 4.047 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.1512, allocations: 0.6729 MB / 0.6852 GB, free: 3.348 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.169e-05/0.1512, allocations: 0 / 0.6852 GB, free: 3.348 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.29e-05/0.1512, allocations: 7.438 kB / 0.6852 GB, free: 3.34 MB / 494.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1513, allocations: 8.125 kB / 0.6852 GB, free: 3.332 MB / 494.1 MB Notification: Performance of Templates: time 0.001961/0.1532, allocations: 319.3 kB / 0.6855 GB, free: 3.023 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)