Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8583/0.8583, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 186.1 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 221.3 MB / 441.4 MB, free: 4.594 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009127/0.0009127, allocations: 96.44 kB / 0.5124 GB, free: 24.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00182/0.00182, allocations: 271.3 kB / 0.5939 GB, free: 7.945 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.925e-05/5.967e-05, allocations: 8 kB / 0.6835 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5415/0.5416, allocations: 82.78 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.6724, allocations: 107.9 MB / 0.8697 GB, free: 0.6641 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.6728, allocations: 76.8 kB / 0.8698 GB, free: 0.5898 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001173/0.6739, allocations: 0.5357 MB / 0.8703 GB, free: 56 kB / 0.5261 GB Notification: Performance of FrontEnd: time 2.535e-06/0.674, allocations: 0 / 0.8703 GB, free: 56 kB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.674, allocations: 0 / 0.8703 GB, free: 56 kB / 0.5261 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.0003782/0.6744, allocations: 308.8 kB / 0.8706 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.6744, allocations: 8.031 kB / 0.8706 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.6745, allocations: 34.5 kB / 0.8706 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.449e-05/0.6745, allocations: 8 kB / 0.8706 GB, free: 15.65 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.6746, allocations: 163.1 kB / 0.8708 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.6747, allocations: 11.95 kB / 0.8708 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.6747, allocations: 3.938 kB / 0.8708 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.6748, allocations: 29.7 kB / 0.8708 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.6748, allocations: 0 / 0.8708 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.6748, allocations: 0 / 0.8708 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.6748, allocations: 0 / 0.8708 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.714e-05/0.6749, allocations: 4 kB / 0.8709 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.6751, allocations: 153.7 kB / 0.871 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.15e-05/0.6751, allocations: 30.47 kB / 0.871 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.982e-05/0.6752, allocations: 8.859 kB / 0.871 GB, free: 15.15 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.6753, allocations: 89.09 kB / 0.8711 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.6754, allocations: 30.56 kB / 0.8711 GB, free: 15 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.6754, allocations: 4 kB / 0.8712 GB, free: 15 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001387/0.6755, allocations: 29.7 kB / 0.8712 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.6756, allocations: 51.41 kB / 0.8712 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.321e-05/0.6756, allocations: 96.97 kB / 0.8713 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.6756, allocations: 29.7 kB / 0.8714 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.6757, allocations: 80.14 kB / 0.8714 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.6757, allocations: 7.891 kB / 0.8714 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-06/0.6757, allocations: 0 / 0.8714 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.6758, allocations: 314.8 kB / 0.8717 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.138e-05/0.6758, allocations: 4 kB / 0.8717 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.73e-06/0.6759, allocations: 0 / 0.8717 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.209e-05/0.6759, allocations: 8.062 kB / 0.8717 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.6759, allocations: 0 / 0.8717 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.258e-05/0.676, allocations: 37.7 kB / 0.8718 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.676, allocations: 11.94 kB / 0.8718 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.676, allocations: 0 / 0.8718 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.676, allocations: 0 / 0.8718 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.327e-05/0.6761, allocations: 4 kB / 0.8718 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.6761, allocations: 0 / 0.8718 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.542e-05/0.6761, allocations: 3.938 kB / 0.8718 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.6761, allocations: 7.938 kB / 0.8718 GB, free: 14.28 MB / 0.5417 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,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.024e-05/0.6762, allocations: 105 kB / 0.8719 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.55e-06/0.6762, allocations: 0 / 0.8719 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.6763, allocations: 48.77 kB / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.6763, allocations: 0 / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6763, allocations: 0 / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.6764, allocations: 0 / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.6765, allocations: 157.7 kB / 0.8721 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.6765, allocations: 0 / 0.8721 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.123e-05/0.6765, allocations: 8.031 kB / 0.8721 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.6765, allocations: 0 / 0.8721 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.6765, allocations: 0 / 0.8721 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.6765, allocations: 3.953 kB / 0.8721 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.6765, allocations: 0 / 0.8721 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.687e-05/0.6766, allocations: 65.06 kB / 0.8722 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.502e-05/0.6767, allocations: 81.11 kB / 0.8723 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.11e-05/0.6767, allocations: 0 / 0.8723 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.699e-06/0.6767, allocations: 4.031 kB / 0.8723 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.23e-05/0.6767, allocations: 7.953 kB / 0.8723 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.6767, allocations: 7.984 kB / 0.8723 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.953e-05/0.6768, allocations: 79.22 kB / 0.8724 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6768, allocations: 0 / 0.8724 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001771/0.677, allocations: 4 kB / 0.8724 GB, free: 13.62 MB / 0.5417 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 () * 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.0004533/0.6774, allocations: 0.6124 MB / 0.873 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 7.337e-05/0.6775, allocations: 12 kB / 0.873 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.6775, allocations: 0 / 0.873 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 1.453e-05/0.6775, allocations: 4 kB / 0.873 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.916e-05/0.6776, allocations: 5.359 kB / 0.873 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002912/0.6779, allocations: 90.77 kB / 0.8731 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.6782, allocations: 0.6811 MB / 0.8737 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.702e-05/0.6782, allocations: 4 kB / 0.8737 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.063e-05/0.6783, allocations: 7.438 kB / 0.8737 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of SimCode: time 4.21e-07/0.6783, allocations: 0 / 0.8737 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0192/0.6975, allocations: 0.8731 MB / 0.8746 GB, free: 11.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.6977, allocations: 163.7 kB / 0.8747 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/2.374, allocations: 0 / 0.8747 GB, free: 11.18 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)