Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00668/0.00668, allocations: 100.3 kB / 15.87 MB, free: 6.254 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.001583/0.001583, allocations: 198.7 kB / 16.79 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.269/1.269, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6672/0.6672, allocations: 115.3 MB / 405.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 62.97 kB / 493 MB, free: 6.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1661, allocations: 76.19 MB / 0.5558 GB, free: 10.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002362/0.1685, allocations: 1.567 MB / 0.5574 GB, free: 9.148 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003153/0.1688, allocations: 124.5 kB / 0.5575 GB, free: 9.023 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.088e-05/0.1688, allocations: 0 / 0.5575 GB, free: 9.023 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.846e-05/0.1689, allocations: 0 / 0.5575 GB, free: 9.023 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.447e-05/0.1689, allocations: 3.938 kB / 0.5575 GB, free: 9.02 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001612/0.1691, allocations: 19.98 kB / 0.5575 GB, free: 9 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.48e-05/0.1692, allocations: 35.84 kB / 0.5575 GB, free: 8.965 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.499e-05/0.1692, allocations: 12 kB / 0.5576 GB, free: 8.953 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.354e-05/0.1693, allocations: 11.98 kB / 0.5576 GB, free: 8.941 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.261e-05/0.1693, allocations: 15.92 kB / 0.5576 GB, free: 8.926 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.1694, allocations: 4 kB / 0.5576 GB, free: 8.922 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.941e-05/0.1694, allocations: 4 kB / 0.5576 GB, free: 8.918 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.507e-05/0.1694, allocations: 7.984 kB / 0.5576 GB, free: 8.91 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.753e-05/0.1695, allocations: 15.92 kB / 0.5576 GB, free: 8.895 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 8.816e-05/0.1696, allocations: 27.89 kB / 0.5576 GB, free: 8.867 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1696, allocations: 3.938 kB / 0.5576 GB, free: 8.863 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1696, allocations: 0 / 0.5576 GB, free: 8.863 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.1696, allocations: 0 / 0.5576 GB, free: 8.863 MB / 430.1 MB 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.0004091/0.17, allocations: 351.7 kB / 0.558 GB, free: 8.469 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.17, allocations: 12.03 kB / 0.558 GB, free: 8.457 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.134e-05/0.1701, allocations: 30.75 kB / 0.558 GB, free: 8.418 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.109e-05/0.1701, allocations: 0.9375 kB / 0.558 GB, free: 8.418 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.571e-05/0.1702, allocations: 168.4 kB / 0.5582 GB, free: 8.215 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.1702, allocations: 384 / 0.5582 GB, free: 8.215 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-06/0.1702, allocations: 384 / 0.5582 GB, free: 8.215 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.1704, allocations: 66.17 kB / 0.5582 GB, free: 8.145 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1704, allocations: 3.938 kB / 0.5583 GB, free: 8.141 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.1704, allocations: 3.938 kB / 0.5583 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1704, allocations: 0 / 0.5583 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.1706, allocations: 43.95 kB / 0.5583 GB, free: 8.094 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003218/0.171, allocations: 268.8 kB / 0.5586 GB, free: 7.781 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.1713, allocations: 66.47 kB / 0.5586 GB, free: 7.707 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.153e-05/0.1714, allocations: 28.89 kB / 0.5586 GB, free: 7.676 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.655e-05/0.1715, allocations: 81.11 kB / 0.5587 GB, free: 7.578 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.1715, allocations: 30.56 kB / 0.5588 GB, free: 7.539 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.1715, allocations: 0 / 0.5588 GB, free: 7.539 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.000356/0.1719, allocations: 93.62 kB / 0.5588 GB, free: 7.441 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.1719, allocations: 55.41 kB / 0.5589 GB, free: 7.375 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.541e-05/0.172, allocations: 101.8 kB / 0.559 GB, free: 7.266 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.172, allocations: 25.7 kB / 0.559 GB, free: 7.234 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.821e-05/0.172, allocations: 84.14 kB / 0.5591 GB, free: 7.148 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.309e-05/0.1721, allocations: 11.78 kB / 0.5591 GB, free: 7.137 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.1721, allocations: 25.7 kB / 0.5591 GB, free: 7.105 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1722, allocations: 314.8 kB / 0.5594 GB, free: 6.789 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.828e-05/0.1723, allocations: 15.98 kB / 0.5594 GB, free: 6.773 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.986e-05/0.1724, allocations: 19.97 kB / 0.5595 GB, free: 6.754 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.1725, allocations: 44.77 kB / 0.5595 GB, free: 6.707 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1726, allocations: 0 / 0.5595 GB, free: 6.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002028/0.1728, allocations: 85.55 kB / 0.5596 GB, free: 6.617 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.1728, allocations: 4 kB / 0.5596 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1728, allocations: 0 / 0.5596 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.1728, allocations: 4 kB / 0.5596 GB, free: 6.609 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.987e-05/0.1729, allocations: 11.92 kB / 0.5596 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1729, allocations: 4 kB / 0.5596 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.348e-05/0.173, allocations: 4 kB / 0.5596 GB, free: 6.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.173, allocations: 7.984 kB / 0.5596 GB, free: 6.582 MB / 430.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 (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 6.434e-05/0.173, allocations: 117.8 kB / 0.5597 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.1731, allocations: 7.938 kB / 0.5597 GB, free: 6.449 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002467/0.1733, allocations: 77.14 kB / 0.5598 GB, free: 6.367 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1733, allocations: 0 / 0.5598 GB, free: 6.367 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1734, allocations: 0 / 0.5598 GB, free: 6.367 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1734, allocations: 4.5 kB / 0.5598 GB, free: 6.363 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.1735, allocations: 169.6 kB / 0.56 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1735, allocations: 4 kB / 0.56 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.65e-05/0.1736, allocations: 11.98 kB / 0.56 GB, free: 6.133 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1736, allocations: 3.938 kB / 0.56 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.1736, allocations: 0 / 0.56 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1736, allocations: 0 / 0.56 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1737, allocations: 4 kB / 0.56 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.1739, allocations: 175.4 kB / 0.5602 GB, free: 5.938 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.64e-05/0.174, allocations: 85.02 kB / 0.5603 GB, free: 5.836 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.174, allocations: 0 / 0.5603 GB, free: 5.836 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.252e-05/0.1741, allocations: 7.984 kB / 0.5603 GB, free: 5.828 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.668e-05/0.1741, allocations: 4 kB / 0.5603 GB, free: 5.824 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.1741, allocations: 4 kB / 0.5603 GB, free: 5.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.886e-05/0.1742, allocations: 83.27 kB / 0.5604 GB, free: 5.738 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1742, allocations: 0 / 0.5604 GB, free: 5.738 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002173/0.1744, allocations: 4 kB / 0.5604 GB, free: 5.734 MB / 430.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.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.000565/0.175, allocations: 0.7163 MB / 0.5611 GB, free: 4.988 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002015/0.1752, allocations: 47.95 kB / 0.5611 GB, free: 4.941 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1752, allocations: 4 kB / 0.5611 GB, free: 4.938 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.1753, allocations: 23.91 kB / 0.5611 GB, free: 4.914 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.1756, allocations: 8 kB / 0.5611 GB, free: 4.906 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003726/0.1759, allocations: 144.9 kB / 0.5613 GB, free: 4.727 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.1762, allocations: 0.6848 MB / 0.5619 GB, free: 4.016 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.897e-05/0.1762, allocations: 4 kB / 0.5619 GB, free: 4.012 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.1762, allocations: 19.42 kB / 0.562 GB, free: 3.992 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1762, allocations: 0 / 0.562 GB, free: 3.992 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5005/0.6768, allocations: 1.361 MB / 0.5633 GB, free: 2.727 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003143/0.6771, allocations: 190.7 kB / 0.5635 GB, free: 2.465 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.231/2.908, allocations: 0 / 0.5635 GB, free: 2.465 MB / 430.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)