Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",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.8381/0.8381, 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.001237/0.001236, allocations: 183.4 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.605/1.605, allocations: 221.3 MB / 441.4 MB, free: 4.613 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.001448/0.001448, allocations: 87.58 kB / 0.5124 GB, free: 24.15 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00255/0.00255, allocations: 282.9 kB / 0.5939 GB, free: 7.977 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.205e-05/5.228e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5184/0.5185, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1311/0.6497, allocations: 107.9 MB / 0.8697 GB, free: 0.6602 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.65, allocations: 76.81 kB / 0.8698 GB, free: 0.5859 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001903/0.6519, allocations: 0.8337 MB / 0.8706 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.774e-06/0.652, allocations: 1.031 kB / 0.8706 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.652, allocations: 4 kB / 0.8706 GB, free: 15.75 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003108/0.6523, allocations: 328.2 kB / 0.8709 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.6524, allocations: 8.625 kB / 0.8709 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.687e-05/0.6524, allocations: 39.44 kB / 0.871 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.664e-05/0.6524, allocations: 3.906 kB / 0.871 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.6526, allocations: 175 kB / 0.8711 GB, free: 15.12 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.6526, allocations: 4.547 kB / 0.8712 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.6526, allocations: 8.562 kB / 0.8712 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001539/0.6528, allocations: 62.14 kB / 0.8712 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.6528, allocations: 4.875 kB / 0.8712 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.6528, allocations: 0 / 0.8712 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.6528, allocations: 0 / 0.8712 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.653, allocations: 100.7 kB / 0.8713 GB, free: 14.94 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001959/0.6532, allocations: 166.2 kB / 0.8715 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.6533, allocations: 89.28 kB / 0.8716 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.6534, allocations: 24.86 kB / 0.8716 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000341/0.6537, allocations: 405.8 kB / 0.872 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.6538, allocations: 30.56 kB / 0.872 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.6538, allocations: 3.938 kB / 0.872 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0002128/0.654, allocations: 90.62 kB / 0.8721 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.654, allocations: 51.41 kB / 0.8721 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.117e-05/0.6541, allocations: 96.25 kB / 0.8722 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.6541, allocations: 29.7 kB / 0.8723 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.6542, allocations: 84.31 kB / 0.8723 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.6542, allocations: 27.59 kB / 0.8724 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-06/0.6542, allocations: 0 / 0.8724 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.6543, allocations: 314.8 kB / 0.8727 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.849e-05/0.6544, allocations: 19.98 kB / 0.8727 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.044e-05/0.6544, allocations: 24 kB / 0.8727 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.555e-05/0.6545, allocations: 27.97 kB / 0.8727 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.6545, allocations: 0 / 0.8727 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001214/0.6546, allocations: 85.61 kB / 0.8728 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.6547, allocations: 7.953 kB / 0.8728 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.6547, allocations: 0 / 0.8728 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.6547, allocations: 0 / 0.8728 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.6548, allocations: 27.92 kB / 0.8729 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.6548, allocations: 6.203 kB / 0.8729 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.859e-05/0.6548, allocations: 0 / 0.8729 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.6549, allocations: 4 kB / 0.8729 GB, free: 13.15 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 9.581e-05/0.655, allocations: 113 kB / 0.873 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.655, allocations: 7.906 kB / 0.873 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002642/0.6553, allocations: 129.5 kB / 0.8731 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.6553, allocations: 4 kB / 0.8731 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6553, allocations: 3.938 kB / 0.8731 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.6553, allocations: 0 / 0.8731 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.6554, allocations: 181.6 kB / 0.8733 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.6555, allocations: 0 / 0.8733 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.598e-05/0.6555, allocations: 16 kB / 0.8733 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.6555, allocations: 0 / 0.8733 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.6555, allocations: 7.984 kB / 0.8733 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.6556, allocations: 3.953 kB / 0.8733 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.6556, allocations: 3.938 kB / 0.8733 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001623/0.6557, allocations: 121.9 kB / 0.8734 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.393e-05/0.6558, allocations: 85.09 kB / 0.8735 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.6558, allocations: 3.938 kB / 0.8735 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.435e-05/0.6558, allocations: 0 / 0.8735 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.6559, allocations: 19.89 kB / 0.8735 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.6559, allocations: 3.984 kB / 0.8735 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.304e-05/0.656, allocations: 75.28 kB / 0.8736 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.21e-07/0.656, allocations: 0 / 0.8736 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001882/0.6562, allocations: 23.94 kB / 0.8736 GB, free: 12.27 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0006303/0.6568, allocations: 0.667 MB / 0.8743 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.657, allocations: 55.97 kB / 0.8743 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.657, allocations: 0 / 0.8743 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.438e-05/0.657, allocations: 35.94 kB / 0.8744 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001026/0.6571, allocations: 11.94 kB / 0.8744 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003856/0.6575, allocations: 142.5 kB / 0.8745 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.6578, allocations: 0.6887 MB / 0.8752 GB, free: 10.58 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.129e-05/0.6579, allocations: 32.34 kB / 0.8752 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.658, allocations: 19.42 kB / 0.8752 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of SimCode: time 3e-07/0.658, allocations: 0 / 0.8752 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01161/0.6696, allocations: 1.358 MB / 0.8766 GB, free: 9.355 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/0.6698, allocations: 169.4 kB / 0.8767 GB, free: 9.137 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/2.334, allocations: 0 / 0.8767 GB, free: 9.137 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)