Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/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: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_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.0009284/0.0009285, allocations: 90.83 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.008255/0.008255, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.35/1.35, allocations: 223.3 MB / 240.3 MB, free: 5.344 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 0.9793/0.9793, allocations: 143.2 MB / 434.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003061, allocations: 12 kB / 0.5165 GB, free: 11.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1521, allocations: 83.42 MB / 0.598 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0006073/0.1527, allocations: 319.1 kB / 0.5983 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002183/0.153, allocations: 43.86 kB / 0.5983 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.975e-06/0.153, allocations: 0 / 0.5983 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 8.866e-06/0.153, allocations: 0 / 0.5983 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.128e-06/0.153, allocations: 3.938 kB / 0.5983 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001564/0.1532, allocations: 11.94 kB / 0.5983 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.275e-05/0.1532, allocations: 8 kB / 0.5983 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.333e-05/0.1533, allocations: 7.984 kB / 0.5984 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.335e-05/0.1533, allocations: 3.984 kB / 0.5984 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.787e-05/0.1533, allocations: 3.938 kB / 0.5984 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.576e-06/0.1533, allocations: 0 / 0.5984 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.676e-05/0.1534, allocations: 8 kB / 0.5984 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.1534, allocations: 0 / 0.5984 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.996e-05/0.1534, allocations: 29.7 kB / 0.5984 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 6.471e-05/0.1535, allocations: 11.97 kB / 0.5984 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1535, allocations: 4 kB / 0.5984 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.503e-06/0.1535, allocations: 0 / 0.5984 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.1535, allocations: 4 kB / 0.5984 GB, free: 7.133 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002363/0.1538, allocations: 311.6 kB / 0.5987 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.1538, allocations: 8.031 kB / 0.5987 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.616e-05/0.1538, allocations: 30.75 kB / 0.5987 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.562e-05/0.1539, allocations: 0.9375 kB / 0.5987 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.159e-05/0.1539, allocations: 160.4 kB / 0.5989 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.774e-06/0.154, allocations: 4.312 kB / 0.5989 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-06/0.154, allocations: 4.375 kB / 0.5989 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.684e-05/0.154, allocations: 38.19 kB / 0.5989 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.1541, allocations: 11.94 kB / 0.599 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.1541, allocations: 0 / 0.599 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1541, allocations: 0 / 0.599 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.716e-05/0.1541, allocations: 4 kB / 0.599 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001168/0.1542, allocations: 145.7 kB / 0.5991 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.906e-05/0.1543, allocations: 22.59 kB / 0.5991 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.74e-05/0.1543, allocations: 8.922 kB / 0.5991 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001321/0.1544, allocations: 85.11 kB / 0.5992 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.1545, allocations: 38.56 kB / 0.5992 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.1545, allocations: 3.938 kB / 0.5993 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001153/0.1546, allocations: 41.62 kB / 0.5993 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.1546, allocations: 51.41 kB / 0.5993 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.879e-05/0.1547, allocations: 89.86 kB / 0.5994 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.1547, allocations: 33.7 kB / 0.5995 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.236e-05/0.1547, allocations: 80.27 kB / 0.5995 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.1547, allocations: 7.906 kB / 0.5995 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/0.1548, allocations: 9.719 kB / 0.5996 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.661e-05/0.1549, allocations: 314.8 kB / 0.5999 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.023e-05/0.1549, allocations: 4 kB / 0.5999 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.56e-06/0.1549, allocations: 0 / 0.5999 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.801e-05/0.1549, allocations: 20.73 kB / 0.5999 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1549, allocations: 4 kB / 0.5999 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.581e-05/0.155, allocations: 45.75 kB / 0.5999 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.155, allocations: 4 kB / 0.5999 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.155, allocations: 3.938 kB / 0.5999 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.584e-06/0.155, allocations: 0 / 0.5999 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.55e-05/0.1551, allocations: 4 kB / 0.5999 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.1551, allocations: 0 / 0.5999 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.22e-05/0.1551, allocations: 288 / 0.5999 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-06/0.1551, allocations: 0 / 0.5999 GB, free: 5.32 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 (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 6.117e-05/0.1552, allocations: 109.8 kB / 0.6 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-06/0.1552, allocations: 4.031 kB / 0.6 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.1553, allocations: 56.62 kB / 0.6001 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.1553, allocations: 3.938 kB / 0.6001 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1553, allocations: 0 / 0.6001 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1553, allocations: 3.984 kB / 0.6001 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.939e-05/0.1554, allocations: 149.7 kB / 0.6002 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1554, allocations: 0 / 0.6002 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.85e-05/0.1555, allocations: 0 / 0.6002 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.1555, allocations: 4 kB / 0.6003 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.1555, allocations: 7.938 kB / 0.6003 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1555, allocations: 4.031 kB / 0.6003 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1555, allocations: 0 / 0.6003 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.585e-05/0.1556, allocations: 65.06 kB / 0.6003 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.935e-05/0.1556, allocations: 77.11 kB / 0.6004 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.1556, allocations: 11.94 kB / 0.6004 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.026e-05/0.1556, allocations: 0 / 0.6004 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.182e-05/0.1556, allocations: 3.984 kB / 0.6004 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-06/0.1557, allocations: 4.031 kB / 0.6004 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.834e-05/0.1557, allocations: 75.28 kB / 0.6005 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1557, allocations: 0 / 0.6005 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001704/0.1559, allocations: 4 kB / 0.6005 GB, free: 4.648 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,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.0003406/0.1562, allocations: 0.6008 MB / 0.6011 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.045e-05/0.1563, allocations: 19.94 kB / 0.6011 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.1563, allocations: 0 / 0.6011 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.359e-05/0.1563, allocations: 7.984 kB / 0.6011 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.1564, allocations: 0 / 0.6011 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000241/0.1567, allocations: 112.3 kB / 0.6012 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.1569, allocations: 0.677 MB / 0.6019 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.122e-05/0.1569, allocations: 3.938 kB / 0.6019 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.636e-05/0.1569, allocations: 15.56 kB / 0.6019 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.1569, allocations: 0 / 0.6019 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009664/0.1666, allocations: 0.8909 MB / 0.6028 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.1669, allocations: 204.8 kB / 0.603 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.618/1.785, allocations: 0 / 0.603 GB, free: 2.125 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)