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.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_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.0008944/0.0008944, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.001022/0.001022, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.016/1.016, allocations: 143.4 MB / 434.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002974/0.0002974, allocations: 15.98 kB / 0.5161 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.166, allocations: 83.41 MB / 0.5975 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.001657/0.1677, allocations: 1.231 MB / 0.5987 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003254/0.1681, allocations: 112.6 kB / 0.5988 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.202e-05/0.1681, allocations: 0 / 0.5988 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.665e-05/0.1682, allocations: 4 kB / 0.5988 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.833e-05/0.1682, allocations: 7.938 kB / 0.5989 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002077/0.1684, allocations: 19.97 kB / 0.5989 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.892e-05/0.1685, allocations: 23.92 kB / 0.5989 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.512e-05/0.1686, allocations: 7.984 kB / 0.5989 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.438e-05/0.1687, allocations: 8 kB / 0.5989 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.218e-05/0.1687, allocations: 23.91 kB / 0.5989 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.1687, allocations: 0 / 0.5989 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.11e-05/0.1688, allocations: 4 kB / 0.5989 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.011e-05/0.1688, allocations: 7.984 kB / 0.5989 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.428e-05/0.1689, allocations: 37.64 kB / 0.599 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.701e-05/0.1689, allocations: 11.97 kB / 0.599 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.169, allocations: 0 / 0.599 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.635e-06/0.169, allocations: 4 kB / 0.599 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.169, allocations: 0 / 0.599 GB, free: 6.211 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.0004387/0.1694, allocations: 343.5 kB / 0.5993 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1695, allocations: 16.02 kB / 0.5993 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.215e-05/0.1695, allocations: 38.56 kB / 0.5994 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.315e-05/0.1695, allocations: 0 / 0.5994 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.1697, allocations: 171 kB / 0.5995 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.1697, allocations: 0 / 0.5995 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-06/0.1697, allocations: 0 / 0.5995 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.1699, allocations: 61.66 kB / 0.5996 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1699, allocations: 3.938 kB / 0.5996 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.1699, allocations: 11.94 kB / 0.5996 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.17, allocations: 0 / 0.5996 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.1701, allocations: 47.95 kB / 0.5997 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003805/0.1705, allocations: 280.8 kB / 0.5999 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.1708, allocations: 58.53 kB / 0.6 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.443e-05/0.1709, allocations: 36.83 kB / 0.6 GB, free: 5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.1711, allocations: 89.09 kB / 0.6001 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.1711, allocations: 34.56 kB / 0.6001 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.1711, allocations: 0 / 0.6001 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003621/0.1715, allocations: 109.6 kB / 0.6002 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/0.1715, allocations: 55.36 kB / 0.6003 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.014e-05/0.1716, allocations: 97.86 kB / 0.6004 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.1716, allocations: 25.7 kB / 0.6004 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.329e-05/0.1717, allocations: 84.12 kB / 0.6005 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.1717, allocations: 15.84 kB / 0.6005 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-06/0.1717, allocations: 0 / 0.6005 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.1718, allocations: 314.8 kB / 0.6008 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.299e-05/0.1719, allocations: 27.92 kB / 0.6008 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.482e-05/0.172, allocations: 27.97 kB / 0.6009 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.545e-05/0.1721, allocations: 23.98 kB / 0.6009 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1721, allocations: 0 / 0.6009 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002055/0.1723, allocations: 85.64 kB / 0.601 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1723, allocations: 6.031 kB / 0.601 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1723, allocations: 0 / 0.601 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.1724, allocations: 4 kB / 0.601 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.247e-05/0.1725, allocations: 15.98 kB / 0.601 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.1725, allocations: 0 / 0.601 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.59e-05/0.1725, allocations: 11.86 kB / 0.601 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.1725, allocations: 4 kB / 0.601 GB, free: 3.91 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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.276e-05/0.1726, allocations: 117.8 kB / 0.6011 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.1727, allocations: 8 kB / 0.6011 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002441/0.1729, allocations: 85.14 kB / 0.6012 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1729, allocations: 4 kB / 0.6012 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.1729, allocations: 0 / 0.6012 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1729, allocations: 3.938 kB / 0.6012 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.1731, allocations: 169.6 kB / 0.6014 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1731, allocations: 4 kB / 0.6014 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.083e-05/0.1732, allocations: 11.98 kB / 0.6014 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1732, allocations: 0 / 0.6014 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.1732, allocations: 0 / 0.6014 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1732, allocations: 0 / 0.6014 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1732, allocations: 4 kB / 0.6014 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/0.1735, allocations: 188 kB / 0.6016 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.1735, allocations: 85 kB / 0.6017 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.1736, allocations: 0 / 0.6017 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.889e-05/0.1736, allocations: 11.98 kB / 0.6017 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.1737, allocations: 15.97 kB / 0.6017 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.1737, allocations: 4 kB / 0.6017 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.236e-05/0.1737, allocations: 83.27 kB / 0.6018 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1737, allocations: 0 / 0.6018 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002223/0.174, allocations: 8 kB / 0.6018 GB, free: 3.02 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005211/0.1745, allocations: 0.7202 MB / 0.6025 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002066/0.1747, allocations: 59.95 kB / 0.6025 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1747, allocations: 0 / 0.6025 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.92e-05/0.1748, allocations: 27.98 kB / 0.6026 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.1751, allocations: 0 / 0.6026 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000408/0.1755, allocations: 158.2 kB / 0.6027 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.1757, allocations: 0.6809 MB / 0.6034 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.216e-05/0.1758, allocations: 0 / 0.6034 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.536e-05/0.1758, allocations: 11.44 kB / 0.6034 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.1758, allocations: 0 / 0.6034 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01059/0.1864, allocations: 1.293 MB / 0.6046 GB, free: 108 kB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.3046/0.4911, allocations: 190.2 kB / 0.6048 GB, free: 42.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.677/2.168, allocations: 0 / 0.6048 GB, free: 42.27 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: