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.001048/0.001047, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001189/0.001189, allocations: 195.2 kB / 16.14 MB, free: 6.715 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.318/1.318, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 286.4 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9802/0.9802, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 92.16 kB / 0.5945 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1548, allocations: 86.99 MB / 0.6794 GB, free: 1.195 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001629/0.1564, allocations: 0.6392 MB / 0.6801 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002415/0.1567, allocations: 47.8 kB / 0.6801 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.207e-06/0.1567, allocations: 0 / 0.6801 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.225e-05/0.1567, allocations: 3.938 kB / 0.6801 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.6e-06/0.1567, allocations: 0 / 0.6801 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001648/0.1569, allocations: 15.98 kB / 0.6801 GB, free: 0.5 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 3.463e-05/0.1569, allocations: 0 / 0.6801 GB, free: 0.5 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.54e-05/0.157, allocations: 4 kB / 0.6801 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.365e-05/0.157, allocations: 3.984 kB / 0.6801 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.8e-05/0.157, allocations: 0 / 0.6801 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.226e-06/0.157, allocations: 0 / 0.6801 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.251e-05/0.1571, allocations: 15.98 kB / 0.6802 GB, free: 488 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.228e-06/0.1571, allocations: 0 / 0.6802 GB, free: 488 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.526e-05/0.1572, allocations: 7.938 kB / 0.6802 GB, free: 480 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 7.326e-05/0.1572, allocations: 11.98 kB / 0.6802 GB, free: 468 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1572, allocations: 3.984 kB / 0.6802 GB, free: 464 kB / 478.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1572, allocations: 4 kB / 0.6802 GB, free: 460 kB / 478.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1573, allocations: 0 / 0.6802 GB, free: 460 kB / 478.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.0002615/0.1575, allocations: 311.6 kB / 0.6805 GB, free: 96 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.1576, allocations: 8.031 kB / 0.6805 GB, free: 88 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.266e-05/0.1576, allocations: 0.9375 kB / 0.6805 GB, free: 88 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.391e-05/0.1577, allocations: 172.3 kB / 0.6807 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.805e-06/0.1577, allocations: 384 / 0.6807 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-06/0.1577, allocations: 384 / 0.6807 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.793e-05/0.1578, allocations: 42.27 kB / 0.6807 GB, free: 15.83 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.1578, allocations: 192 / 0.6807 GB, free: 15.83 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.1578, allocations: 3.938 kB / 0.6807 GB, free: 15.83 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1578, allocations: 0 / 0.6807 GB, free: 15.83 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.978e-05/0.1579, allocations: 4 kB / 0.6807 GB, free: 15.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000135/0.158, allocations: 149.7 kB / 0.6808 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.609e-05/0.1581, allocations: 26.55 kB / 0.6809 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.725e-05/0.1581, allocations: 4.859 kB / 0.6809 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.1582, allocations: 89.16 kB / 0.681 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.1583, allocations: 34.56 kB / 0.681 GB, free: 15.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1583, allocations: 3.938 kB / 0.681 GB, free: 15.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001246/0.1584, allocations: 45.61 kB / 0.681 GB, free: 15.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.1584, allocations: 55.41 kB / 0.6811 GB, free: 15.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.748e-05/0.1585, allocations: 93.86 kB / 0.6812 GB, free: 15.21 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.1585, allocations: 25.7 kB / 0.6812 GB, free: 15.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.341e-05/0.1585, allocations: 88.2 kB / 0.6813 GB, free: 15.09 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.1586, allocations: 8.125 kB / 0.6813 GB, free: 15.09 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.49e-05/0.1586, allocations: 13.72 kB / 0.6813 GB, free: 15.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.39e-05/0.1587, allocations: 314.8 kB / 0.6816 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.1587, allocations: 0 / 0.6816 GB, free: 14.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.011e-05/0.1587, allocations: 7.984 kB / 0.6816 GB, free: 14.74 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.214e-05/0.1588, allocations: 12.8 kB / 0.6816 GB, free: 14.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1588, allocations: 0 / 0.6816 GB, free: 14.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.374e-05/0.1588, allocations: 41.77 kB / 0.6817 GB, free: 14.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.1588, allocations: 8 kB / 0.6817 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1589, allocations: 0 / 0.6817 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.1589, allocations: 3.938 kB / 0.6817 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.168e-05/0.1589, allocations: 11.92 kB / 0.6817 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.1589, allocations: 0 / 0.6817 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.233e-05/0.159, allocations: 0 / 0.6817 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-06/0.159, allocations: 0 / 0.6817 GB, free: 14.66 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.61e-05/0.159, allocations: 107.2 kB / 0.6818 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.275e-06/0.159, allocations: 8.031 kB / 0.6818 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.347e-05/0.1591, allocations: 44.75 kB / 0.6818 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1591, allocations: 4 kB / 0.6819 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1591, allocations: 0 / 0.6819 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1591, allocations: 0 / 0.6819 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.83e-05/0.1592, allocations: 149.7 kB / 0.682 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1592, allocations: 0 / 0.682 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.156e-05/0.1593, allocations: 4 kB / 0.682 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1593, allocations: 0 / 0.682 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.1593, allocations: 3.938 kB / 0.682 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.1593, allocations: 11.97 kB / 0.682 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1593, allocations: 0 / 0.682 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.047e-05/0.1594, allocations: 61.12 kB / 0.6821 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.755e-05/0.1594, allocations: 77.11 kB / 0.6821 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.929e-06/0.1594, allocations: 7.875 kB / 0.6822 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.188e-05/0.1594, allocations: 4 kB / 0.6822 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.765e-05/0.1595, allocations: 4 kB / 0.6822 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.1595, allocations: 4.031 kB / 0.6822 GB, free: 14.07 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.542e-05/0.1595, allocations: 75.28 kB / 0.6822 GB, free: 14 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1595, allocations: 0 / 0.6822 GB, free: 14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001873/0.1597, allocations: 7.984 kB / 0.6822 GB, free: 13.99 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.0001298/0.1598, allocations: 103.2 kB / 0.6823 GB, free: 13.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.399e-05/0.1599, allocations: 11.94 kB / 0.6824 GB, free: 13.87 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1599, allocations: 0 / 0.6824 GB, free: 13.87 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.571e-05/0.1599, allocations: 12.05 kB / 0.6824 GB, free: 13.86 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.1601, allocations: 5.891 kB / 0.6824 GB, free: 13.85 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000183/0.1603, allocations: 78.77 kB / 0.6824 GB, free: 13.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.1605, allocations: 0.6692 MB / 0.6831 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.898e-05/0.1605, allocations: 3.984 kB / 0.6831 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.086e-05/0.1605, allocations: 11.44 kB / 0.6831 GB, free: 13.04 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1605, allocations: 3.938 kB / 0.6831 GB, free: 13.04 MB / 494.1 MB Notification: Performance of Templates: time 0.002033/0.1625, allocations: 318.8 kB / 0.6834 GB, free: 12.73 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)