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/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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/BuildSysPro 3.5.0/package.mo): time 0.6787/0.6787, allocations: 127.4 MB / 134.9 MB, free: 3.773 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 188.8 kB / 164.7 MB, free: 6.523 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.643/1.643, allocations: 205.2 MB / 399.5 MB, free: 5.949 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009044/0.0009045, allocations: 86.16 kB / 476.7 MB, free: 8.684 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.754e-05, allocations: 8 kB / 0.5467 GB, free: 60.4 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1787, allocations: 76.77 MB / 0.6216 GB, free: 15.56 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5646/0.7434, allocations: 101.3 MB / 0.7205 GB, free: 14.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.7438, allocations: 79.56 kB / 0.7206 GB, free: 14.36 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001328/0.7451, allocations: 0.5249 MB / 0.7211 GB, free: 13.87 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.7452, allocations: 0.6562 kB / 0.7211 GB, free: 13.87 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.7452, allocations: 0 / 0.7211 GB, free: 13.87 MB / 490.7 MB 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.000258/0.7455, allocations: 320.2 kB / 0.7214 GB, free: 13.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.7455, allocations: 8.031 kB / 0.7214 GB, free: 13.51 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.7455, allocations: 7.328 kB / 0.7214 GB, free: 13.51 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.7457, allocations: 159.1 kB / 0.7216 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.7457, allocations: 0 / 0.7216 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.7457, allocations: 5.125 kB / 0.7216 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.418e-05/0.7458, allocations: 3.75 kB / 0.7216 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.58e-05/0.7459, allocations: 33.69 kB / 0.7216 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.7459, allocations: 3.438 kB / 0.7216 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.7459, allocations: 3.938 kB / 0.7216 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.7459, allocations: 0 / 0.7216 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001565/0.7461, allocations: 133.7 kB / 0.7218 GB, free: 13.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.823e-05/0.7461, allocations: 22.59 kB / 0.7218 GB, free: 13.07 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.783e-05/0.7461, allocations: 8.797 kB / 0.7218 GB, free: 13.06 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.7463, allocations: 85.17 kB / 0.7219 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.7463, allocations: 33.94 kB / 0.7219 GB, free: 12.92 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.363e-06/0.7463, allocations: 0 / 0.7219 GB, free: 12.92 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001789/0.7465, allocations: 37.69 kB / 0.722 GB, free: 12.88 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.7466, allocations: 51.41 kB / 0.722 GB, free: 12.81 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.279e-05/0.7466, allocations: 88.94 kB / 0.7221 GB, free: 12.72 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.7466, allocations: 25.7 kB / 0.7221 GB, free: 12.69 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.042e-05/0.7467, allocations: 84.17 kB / 0.7222 GB, free: 12.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.7467, allocations: 9.094 kB / 0.7222 GB, free: 12.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-06/0.7467, allocations: 0 / 0.7222 GB, free: 12.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.7468, allocations: 310.8 kB / 0.7225 GB, free: 12.29 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.124e-05/0.7468, allocations: 0 / 0.7225 GB, free: 12.29 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.876e-06/0.7469, allocations: 4 kB / 0.7225 GB, free: 12.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.145e-05/0.7469, allocations: 3.953 kB / 0.7225 GB, free: 12.28 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.7469, allocations: 0 / 0.7225 GB, free: 12.28 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.194e-05/0.747, allocations: 44.72 kB / 0.7225 GB, free: 12.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.747, allocations: 16.03 kB / 0.7226 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.747, allocations: 0 / 0.7226 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.7471, allocations: 0 / 0.7226 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.206e-05/0.7471, allocations: 4 kB / 0.7226 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.7471, allocations: 0 / 0.7226 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.7472, allocations: 0 / 0.7226 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-06/0.7472, allocations: 0 / 0.7226 GB, free: 12.21 MB / 490.7 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 (fac,n) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.436e-05/0.7472, allocations: 116.8 kB / 0.7227 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.716e-05/0.7473, allocations: 33.7 kB / 0.7227 GB, free: 12.05 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-06/0.7473, allocations: 4.031 kB / 0.7227 GB, free: 12.05 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.7474, allocations: 44.81 kB / 0.7228 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.7475, allocations: 0 / 0.7228 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.7475, allocations: 0 / 0.7228 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.7475, allocations: 3.938 kB / 0.7228 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.506e-05/0.7476, allocations: 134.2 kB / 0.7229 GB, free: 11.83 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.7476, allocations: 0 / 0.7229 GB, free: 11.83 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.566e-05/0.7476, allocations: 7.938 kB / 0.7229 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.7476, allocations: 0 / 0.7229 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.7476, allocations: 3.25 kB / 0.7229 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.7476, allocations: 4.031 kB / 0.7229 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.7477, allocations: 0 / 0.7229 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.245e-05/0.7478, allocations: 64.14 kB / 0.723 GB, free: 11.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-05/0.7478, allocations: 81.11 kB / 0.723 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.7478, allocations: 0 / 0.723 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.389e-05/0.7478, allocations: 7.109 kB / 0.723 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.567e-05/0.7479, allocations: 0 / 0.723 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.7479, allocations: 8.016 kB / 0.7231 GB, free: 11.63 MB / 490.7 MB Notification: Performance of sorting global known variables: time 2.944e-05/0.7479, allocations: 79.28 kB / 0.7231 GB, free: 11.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7479, allocations: 0 / 0.7231 GB, free: 11.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001946/0.7481, allocations: 8 kB / 0.7231 GB, free: 11.55 MB / 490.7 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,n) * Number of discrete 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 (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.0004193/0.7485, allocations: 0.6133 MB / 0.7237 GB, free: 10.91 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 6.32e-05/0.7486, allocations: 4 kB / 0.7237 GB, free: 10.91 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.7486, allocations: 0 / 0.7237 GB, free: 10.91 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.514e-05/0.7487, allocations: 4 kB / 0.7237 GB, free: 10.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.283e-05/0.7487, allocations: 0 / 0.7237 GB, free: 10.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002609/0.749, allocations: 88.84 kB / 0.7238 GB, free: 10.78 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.7492, allocations: 0.6768 MB / 0.7245 GB, free: 10.08 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.633e-05/0.7493, allocations: 4 kB / 0.7245 GB, free: 10.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.396e-05/0.7493, allocations: 7.562 kB / 0.7245 GB, free: 10.07 MB / 490.7 MB Notification: Performance of SimCode: time 2.61e-07/0.7493, allocations: 4 kB / 0.7245 GB, free: 10.06 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0172/0.7665, allocations: 0.5741 MB / 0.7251 GB, free: 9.5 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.7668, allocations: 150.1 kB / 0.7252 GB, free: 9.309 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.274/2.041, allocations: 0 / 0.7252 GB, free: 9.309 MB / 490.7 MB (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/linux/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)