Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.0009302/0.0009303, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009771/0.0009772, allocations: 182 kB / 16.92 MB, free: 6.914 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.409/1.409, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.005/1.005, allocations: 143.2 MB / 435.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003378/0.0003379, allocations: 8 kB / 0.517 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1555, allocations: 83.42 MB / 0.5985 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.001772/0.1573, allocations: 1.235 MB / 0.5997 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003974/0.1577, allocations: 120.5 kB / 0.5998 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.668e-05/0.1578, allocations: 4 kB / 0.5998 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.716e-05/0.1578, allocations: 0 / 0.5998 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.343e-05/0.1578, allocations: 3.938 kB / 0.5998 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002168/0.1581, allocations: 19.97 kB / 0.5998 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.572e-05/0.1582, allocations: 31.86 kB / 0.5999 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.895e-05/0.1583, allocations: 8 kB / 0.5999 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.541e-05/0.1583, allocations: 7.984 kB / 0.5999 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.419e-05/0.1584, allocations: 15.92 kB / 0.5999 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.515e-05/0.1584, allocations: 4 kB / 0.5999 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.817e-05/0.1585, allocations: 8 kB / 0.5999 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.1585, allocations: 3.984 kB / 0.5999 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.096e-05/0.1585, allocations: 41.62 kB / 0.6 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.977e-05/0.1586, allocations: 19.97 kB / 0.6 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.1586, allocations: 8 kB / 0.6 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1586, allocations: 3.938 kB / 0.6 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.1586, allocations: 0 / 0.6 GB, free: 6.207 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004567/0.1591, allocations: 339.7 kB / 0.6003 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1591, allocations: 8.031 kB / 0.6003 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.1592, allocations: 4.938 kB / 0.6003 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.1593, allocations: 168.4 kB / 0.6005 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.1593, allocations: 8.375 kB / 0.6005 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.1594, allocations: 384 / 0.6005 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.1596, allocations: 62.17 kB / 0.6006 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.1596, allocations: 192 / 0.6006 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.1596, allocations: 3.938 kB / 0.6006 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1596, allocations: 0 / 0.6006 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.1598, allocations: 55.95 kB / 0.6006 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003657/0.1602, allocations: 268.9 kB / 0.6009 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.1605, allocations: 78.39 kB / 0.6009 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.1607, allocations: 28.91 kB / 0.601 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.1608, allocations: 85.09 kB / 0.6011 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.1608, allocations: 34.56 kB / 0.6011 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.1608, allocations: 0 / 0.6011 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004015/0.1612, allocations: 105.6 kB / 0.6012 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.1613, allocations: 55.41 kB / 0.6012 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.813e-05/0.1614, allocations: 105.8 kB / 0.6013 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.1614, allocations: 25.7 kB / 0.6014 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.1614, allocations: 88.08 kB / 0.6015 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.574e-05/0.1615, allocations: 7.844 kB / 0.6015 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.1615, allocations: 17.7 kB / 0.6015 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1616, allocations: 310.8 kB / 0.6018 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.864e-05/0.1617, allocations: 27.98 kB / 0.6018 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.727e-05/0.1618, allocations: 27.97 kB / 0.6018 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.162, allocations: 52.83 kB / 0.6019 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.162, allocations: 7.922 kB / 0.6019 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002409/0.1623, allocations: 81.66 kB / 0.602 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.1623, allocations: 11.94 kB / 0.602 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1623, allocations: 0 / 0.602 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.1623, allocations: 4 kB / 0.602 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.436e-05/0.1624, allocations: 15.92 kB / 0.602 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.1624, allocations: 3.984 kB / 0.602 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.455e-05/0.1625, allocations: 15.89 kB / 0.602 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-06/0.1625, allocations: 0 / 0.602 GB, free: 3.895 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 (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.154e-05/0.1626, allocations: 117.8 kB / 0.6021 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.1626, allocations: 0 / 0.6021 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002868/0.1629, allocations: 93.14 kB / 0.6022 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1629, allocations: 0 / 0.6022 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.1629, allocations: 4 kB / 0.6022 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1629, allocations: 0 / 0.6022 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.1631, allocations: 170.2 kB / 0.6024 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1631, allocations: 4 kB / 0.6024 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.1632, allocations: 15.92 kB / 0.6024 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.1632, allocations: 4 kB / 0.6024 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.1632, allocations: 0 / 0.6024 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1632, allocations: 0 / 0.6024 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1632, allocations: 0 / 0.6024 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.1635, allocations: 187.4 kB / 0.6026 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.1636, allocations: 85.02 kB / 0.6027 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.1636, allocations: 0 / 0.6027 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.899e-05/0.1637, allocations: 7.984 kB / 0.6027 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.1637, allocations: 8 kB / 0.6027 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.1638, allocations: 4 kB / 0.6027 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.126e-05/0.1638, allocations: 83.27 kB / 0.6028 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1638, allocations: 0 / 0.6028 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002243/0.164, allocations: 8 kB / 0.6028 GB, free: 3.016 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.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.0001477/0.1642, allocations: 105.4 kB / 0.6029 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002365/0.1644, allocations: 55.89 kB / 0.6029 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1644, allocations: 7.938 kB / 0.6029 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.1645, allocations: 27.97 kB / 0.603 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.1648, allocations: 11.88 kB / 0.603 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002965/0.1651, allocations: 146.4 kB / 0.6031 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.1654, allocations: 0.6809 MB / 0.6038 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.798e-05/0.1654, allocations: 7.438 kB / 0.6038 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of SimCode: time 3.01e-07/0.1654, allocations: 0 / 0.6038 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of Templates: time 0.002172/0.1676, allocations: 0.7318 MB / 0.6045 GB, free: 1.18 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)