Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001425/0.001425, allocations: 106.1 kB / 15.98 MB, free: 6.332 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.001412/0.001412, allocations: 198.6 kB / 16.91 MB, free: 6.18 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.301/1.301, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0024/0.0024, allocations: 282.3 kB / 291 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.121/1.121, allocations: 178.5 MB / 0.5076 GB, free: 12.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002591/0.002591, allocations: 95.84 kB / 0.6066 GB, free: 9.66 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1621, allocations: 89.13 MB / 0.6936 GB, free: 448 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002749/0.1649, allocations: 1.578 MB / 0.6952 GB, free: 14.84 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0003235/0.1653, allocations: 116.5 kB / 0.6953 GB, free: 14.72 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3e-05/0.1653, allocations: 4 kB / 0.6953 GB, free: 14.71 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.241e-05/0.1653, allocations: 3.938 kB / 0.6953 GB, free: 14.71 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.608e-05/0.1654, allocations: 0 / 0.6953 GB, free: 14.71 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001979/0.1656, allocations: 27.97 kB / 0.6953 GB, free: 14.68 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.902e-05/0.1657, allocations: 27.92 kB / 0.6953 GB, free: 14.66 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.976e-05/0.1658, allocations: 8 kB / 0.6953 GB, free: 14.65 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.1e-05/0.1658, allocations: 15.92 kB / 0.6954 GB, free: 14.63 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.804e-05/0.1659, allocations: 23.91 kB / 0.6954 GB, free: 14.61 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.1659, allocations: 0 / 0.6954 GB, free: 14.61 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.474e-05/0.166, allocations: 16 kB / 0.6954 GB, free: 14.59 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.061e-05/0.166, allocations: 0 / 0.6954 GB, free: 14.59 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.938e-05/0.166, allocations: 15.92 kB / 0.6954 GB, free: 14.58 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 8.061e-05/0.1661, allocations: 23.97 kB / 0.6954 GB, free: 14.55 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1661, allocations: 0 / 0.6954 GB, free: 14.55 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1661, allocations: 0 / 0.6954 GB, free: 14.55 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.1661, allocations: 0 / 0.6954 GB, free: 14.55 MB / 0.545 GB 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.000457/0.1666, allocations: 343.7 kB / 0.6958 GB, free: 14.17 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.1666, allocations: 8.031 kB / 0.6958 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/0.1667, allocations: 8.938 kB / 0.6958 GB, free: 14.15 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.1668, allocations: 168.3 kB / 0.6959 GB, free: 13.95 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.1668, allocations: 384 / 0.6959 GB, free: 13.95 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.1668, allocations: 4.375 kB / 0.6959 GB, free: 13.95 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.167, allocations: 54.23 kB / 0.696 GB, free: 13.89 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.167, allocations: 4.125 kB / 0.696 GB, free: 13.88 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.167, allocations: 7.938 kB / 0.696 GB, free: 13.88 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.167, allocations: 0 / 0.696 GB, free: 13.88 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.1672, allocations: 47.89 kB / 0.6961 GB, free: 13.83 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003831/0.1676, allocations: 272.8 kB / 0.6963 GB, free: 13.51 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003223/0.1679, allocations: 62.53 kB / 0.6964 GB, free: 13.44 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.529e-05/0.1681, allocations: 24.84 kB / 0.6964 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.1682, allocations: 81.11 kB / 0.6965 GB, free: 13.32 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.1682, allocations: 34.55 kB / 0.6965 GB, free: 13.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.1682, allocations: 0 / 0.6965 GB, free: 13.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.000347/0.1686, allocations: 89.58 kB / 0.6966 GB, free: 13.18 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.1686, allocations: 55.41 kB / 0.6966 GB, free: 13.11 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.429e-05/0.1687, allocations: 106 kB / 0.6967 GB, free: 13 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.1687, allocations: 25.7 kB / 0.6968 GB, free: 12.97 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.583e-05/0.1688, allocations: 84.14 kB / 0.6969 GB, free: 12.88 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.1688, allocations: 11.84 kB / 0.6969 GB, free: 12.87 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/0.1688, allocations: 21.7 kB / 0.6969 GB, free: 12.84 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.169, allocations: 310.8 kB / 0.6972 GB, free: 12.53 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.355e-05/0.1691, allocations: 15.98 kB / 0.6972 GB, free: 12.52 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.534e-05/0.1691, allocations: 24.16 kB / 0.6972 GB, free: 12.49 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.1693, allocations: 52.89 kB / 0.6973 GB, free: 12.44 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.1693, allocations: 3.938 kB / 0.6973 GB, free: 12.43 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002058/0.1695, allocations: 77.59 kB / 0.6973 GB, free: 12.35 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.1696, allocations: 10.5 kB / 0.6974 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.1696, allocations: 0 / 0.6974 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.1696, allocations: 0 / 0.6974 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.744e-05/0.1697, allocations: 15.98 kB / 0.6974 GB, free: 12.33 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.1697, allocations: 0 / 0.6974 GB, free: 12.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.515e-05/0.1697, allocations: 11.89 kB / 0.6974 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.1697, allocations: 0 / 0.6974 GB, free: 12.32 MB / 0.545 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 (rea2Int.y,fac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.301e-05/0.1698, allocations: 121.1 kB / 0.6975 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.1699, allocations: 0 / 0.6975 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002438/0.1701, allocations: 85.08 kB / 0.6976 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1701, allocations: 0 / 0.6976 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1701, allocations: 4 kB / 0.6976 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1701, allocations: 0 / 0.6976 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.1703, allocations: 161.6 kB / 0.6977 GB, free: 11.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1703, allocations: 3.938 kB / 0.6977 GB, free: 11.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.331e-05/0.1704, allocations: 15.98 kB / 0.6978 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1704, allocations: 0 / 0.6978 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.1704, allocations: 4 kB / 0.6978 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1704, allocations: 0 / 0.6978 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1704, allocations: 7.938 kB / 0.6978 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.1707, allocations: 171.4 kB / 0.6979 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.1707, allocations: 81.02 kB / 0.698 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.1707, allocations: 0 / 0.698 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.597e-05/0.1708, allocations: 7.984 kB / 0.698 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.1709, allocations: 11.94 kB / 0.698 GB, free: 11.56 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.1709, allocations: 4 kB / 0.698 GB, free: 11.55 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.166e-05/0.1709, allocations: 83.27 kB / 0.6981 GB, free: 11.47 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1709, allocations: 0 / 0.6981 GB, free: 11.47 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002123/0.1712, allocations: 8 kB / 0.6981 GB, free: 11.46 MB / 0.545 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.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 (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.0001509/0.1713, allocations: 105 kB / 0.6982 GB, free: 11.35 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002202/0.1715, allocations: 44.23 kB / 0.6983 GB, free: 11.31 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1716, allocations: 4 kB / 0.6983 GB, free: 11.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.351e-05/0.1717, allocations: 32 kB / 0.6983 GB, free: 11.27 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.1719, allocations: 3.938 kB / 0.6983 GB, free: 11.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002912/0.1722, allocations: 147.2 kB / 0.6984 GB, free: 11.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.1725, allocations: 0.6768 MB / 0.6991 GB, free: 10.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.066e-05/0.1726, allocations: 15.44 kB / 0.6991 GB, free: 10.38 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.1726, allocations: 0 / 0.6991 GB, free: 10.38 MB / 0.545 GB Notification: Performance of Templates: time 0.002093/0.1747, allocations: 0.7405 MB / 0.6998 GB, free: 9.637 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)