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.001098/0.001097, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.008449/0.008449, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.327/1.327, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0017/0.0017, allocations: 270.4 kB / 291.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9407/0.9407, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004138/0.0004138, allocations: 17.81 kB / 0.5987 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1554, allocations: 88.55 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.0006659/0.1561, allocations: 311.3 kB / 0.6854 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002855/0.1564, allocations: 44.36 kB / 0.6855 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.09e-05/0.1564, allocations: 0.5 kB / 0.6855 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.204e-05/0.1565, allocations: 0 / 0.6855 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.541e-06/0.1565, allocations: 1.656 kB / 0.6855 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.1567, allocations: 8 kB / 0.6855 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.414e-05/0.1567, allocations: 7.938 kB / 0.6855 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.369e-05/0.1567, allocations: 0 / 0.6855 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.451e-05/0.1568, allocations: 0.875 kB / 0.6855 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.996e-05/0.1568, allocations: 3.938 kB / 0.6855 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.1568, allocations: 4.75 kB / 0.6855 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.417e-05/0.1569, allocations: 15.98 kB / 0.6855 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.087e-05/0.1569, allocations: 5.172 kB / 0.6855 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.654e-05/0.1569, allocations: 25.7 kB / 0.6856 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.346e-05/0.157, allocations: 15.92 kB / 0.6856 GB, free: 14.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.157, allocations: 0 / 0.6856 GB, free: 14.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.157, allocations: 0.5 kB / 0.6856 GB, free: 14.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.157, allocations: 1 kB / 0.6856 GB, free: 14.66 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.0002463/0.1573, allocations: 309.3 kB / 0.6859 GB, free: 14.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1573, allocations: 8.031 kB / 0.6859 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.773e-05/0.1574, allocations: 0.9375 kB / 0.6859 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.945e-05/0.1575, allocations: 168.4 kB / 0.686 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.1575, allocations: 384 / 0.686 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-06/0.1575, allocations: 0.9688 kB / 0.686 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.014e-05/0.1576, allocations: 36.86 kB / 0.6861 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.1576, allocations: 192 / 0.6861 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.1576, allocations: 3.938 kB / 0.6861 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1576, allocations: 0 / 0.6861 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.628e-05/0.1577, allocations: 15.88 kB / 0.6861 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001285/0.1578, allocations: 151.6 kB / 0.6862 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.689e-05/0.1579, allocations: 26.61 kB / 0.6863 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.723e-05/0.1579, allocations: 4.859 kB / 0.6863 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/0.158, allocations: 89.69 kB / 0.6863 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.1581, allocations: 32.28 kB / 0.6864 GB, free: 13.65 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1581, allocations: 0 / 0.6864 GB, free: 13.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.000121/0.1582, allocations: 41.58 kB / 0.6864 GB, free: 13.61 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.1582, allocations: 60.27 kB / 0.6865 GB, free: 13.54 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.35e-05/0.1583, allocations: 93.86 kB / 0.6866 GB, free: 13.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.1583, allocations: 26.42 kB / 0.6866 GB, free: 13.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.575e-05/0.1583, allocations: 80.77 kB / 0.6867 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.1584, allocations: 8.125 kB / 0.6867 GB, free: 13.31 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.043e-05/0.1584, allocations: 11.12 kB / 0.6867 GB, free: 13.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.942e-05/0.1585, allocations: 314.8 kB / 0.687 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.156e-05/0.1585, allocations: 4 kB / 0.687 GB, free: 12.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.012e-06/0.1585, allocations: 0.6562 kB / 0.687 GB, free: 12.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.868e-05/0.1585, allocations: 21.03 kB / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1585, allocations: 0 / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.475e-05/0.1586, allocations: 45.58 kB / 0.6871 GB, free: 12.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1586, allocations: 4 kB / 0.6871 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.1586, allocations: 0 / 0.6871 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.1586, allocations: 3.938 kB / 0.6871 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.773e-05/0.1587, allocations: 4 kB / 0.6871 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.1587, allocations: 0 / 0.6871 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.1587, allocations: 3.984 kB / 0.6871 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.1588, allocations: 8.031 kB / 0.6871 GB, free: 12.88 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.984e-05/0.1588, allocations: 107.2 kB / 0.6872 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-06/0.1588, allocations: 0 / 0.6872 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.078e-05/0.1589, allocations: 52.69 kB / 0.6872 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1589, allocations: 0 / 0.6872 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1589, allocations: 0 / 0.6872 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1589, allocations: 0 / 0.6872 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.535e-05/0.159, allocations: 153.7 kB / 0.6874 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.159, allocations: 0 / 0.6874 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.229e-05/0.1591, allocations: 12.02 kB / 0.6874 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.1591, allocations: 0 / 0.6874 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.1591, allocations: 3.938 kB / 0.6874 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1591, allocations: 0 / 0.6874 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1591, allocations: 0 / 0.6874 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.754e-05/0.1592, allocations: 61.12 kB / 0.6874 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.952e-05/0.1592, allocations: 85.09 kB / 0.6875 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.909e-06/0.1593, allocations: 11.91 kB / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.012e-05/0.1593, allocations: 0 / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.226e-05/0.1593, allocations: 3.938 kB / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1593, allocations: 0 / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.413e-05/0.1593, allocations: 79.28 kB / 0.6876 GB, free: 12.22 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1593, allocations: 0 / 0.6876 GB, free: 12.22 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001762/0.1595, allocations: 4 kB / 0.6876 GB, free: 12.21 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.0001382/0.1597, allocations: 103.2 kB / 0.6877 GB, free: 12.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.514e-05/0.1597, allocations: 16 kB / 0.6877 GB, free: 12.09 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1598, allocations: 0 / 0.6877 GB, free: 12.09 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.385e-05/0.1598, allocations: 7.938 kB / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1599, allocations: 0 / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001565/0.1601, allocations: 86.69 kB / 0.6878 GB, free: 11.97 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/0.1603, allocations: 0.6692 MB / 0.6885 GB, free: 11.27 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.444e-05/0.1603, allocations: 7.984 kB / 0.6885 GB, free: 11.27 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.249e-05/0.1603, allocations: 7.438 kB / 0.6885 GB, free: 11.26 MB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1603, allocations: 4.125 kB / 0.6885 GB, free: 11.25 MB / 494.1 MB Notification: Performance of Templates: time 0.002108/0.1624, allocations: 310.5 kB / 0.6888 GB, free: 10.95 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)