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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001218/0.001218, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.226/1.226, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001801/0.001801, allocations: 289.9 kB / 290.2 MB, free: 2.199 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8452/0.8452, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 89.47 kB / 0.5946 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.127, allocations: 86.98 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001451/0.1285, allocations: 0.6362 MB / 0.6802 GB, free: 440 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002332/0.1288, allocations: 51.84 kB / 0.6802 GB, free: 388 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.169e-05/0.1288, allocations: 0 / 0.6802 GB, free: 388 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.437e-05/0.1288, allocations: 0 / 0.6802 GB, free: 388 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.378e-06/0.1288, allocations: 7.938 kB / 0.6802 GB, free: 380 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001954/0.129, allocations: 19.92 kB / 0.6803 GB, free: 360 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 5.964e-05/0.1291, allocations: 28.59 kB / 0.6803 GB, free: 332 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.229e-05/0.1291, allocations: 8.859 kB / 0.6803 GB, free: 324 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.557e-05/0.1291, allocations: 8 kB / 0.6803 GB, free: 316 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.446e-05/0.1292, allocations: 11.98 kB / 0.6803 GB, free: 304 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.1292, allocations: 0.7188 kB / 0.6803 GB, free: 304 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.991e-05/0.1293, allocations: 15.98 kB / 0.6803 GB, free: 288 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 2.53e-05/0.1293, allocations: 20.55 kB / 0.6803 GB, free: 268 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.852e-05/0.1293, allocations: 13.25 kB / 0.6804 GB, free: 256 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 7.403e-05/0.1294, allocations: 31.89 kB / 0.6804 GB, free: 224 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1294, allocations: 0 / 0.6804 GB, free: 224 kB / 478.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1294, allocations: 0 / 0.6804 GB, free: 224 kB / 478.1 MB Notification: Performance of Transformations before backend: time 3.045e-06/0.1294, allocations: 0.75 kB / 0.6804 GB, free: 224 kB / 478.1 MB 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.000271/0.1297, allocations: 343.8 kB / 0.6807 GB, free: 15.83 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.1297, allocations: 8.031 kB / 0.6807 GB, free: 15.82 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.96e-05/0.1298, allocations: 38.75 kB / 0.6808 GB, free: 15.78 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.187e-05/0.1298, allocations: 4.844 kB / 0.6808 GB, free: 15.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.199e-05/0.1299, allocations: 168.3 kB / 0.6809 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-06/0.1299, allocations: 384 / 0.6809 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.1299, allocations: 4.375 kB / 0.6809 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.13, allocations: 66.22 kB / 0.681 GB, free: 15.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.13, allocations: 7.922 kB / 0.681 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.727e-06/0.1301, allocations: 7.938 kB / 0.681 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1301, allocations: 4 kB / 0.681 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.1302, allocations: 103.9 kB / 0.6811 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.1303, allocations: 169.7 kB / 0.6813 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.557e-05/0.1304, allocations: 74.48 kB / 0.6813 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.833e-05/0.1305, allocations: 24.84 kB / 0.6814 GB, free: 15.05 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002562/0.1307, allocations: 405.5 kB / 0.6818 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.1308, allocations: 38.56 kB / 0.6818 GB, free: 14.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.1308, allocations: 4 kB / 0.6818 GB, free: 14.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002064/0.131, allocations: 117.9 kB / 0.6819 GB, free: 14.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.131, allocations: 51.41 kB / 0.682 GB, free: 14.33 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.511e-05/0.1311, allocations: 101.7 kB / 0.6821 GB, free: 14.22 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.1311, allocations: 33.7 kB / 0.6821 GB, free: 14.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.901e-05/0.1311, allocations: 80.14 kB / 0.6822 GB, free: 14.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.1311, allocations: 23.66 kB / 0.6822 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/0.1312, allocations: 25.7 kB / 0.6822 GB, free: 14.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.1313, allocations: 326.8 kB / 0.6825 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.315e-05/0.1313, allocations: 19.98 kB / 0.6825 GB, free: 13.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.93e-05/0.1313, allocations: 19.98 kB / 0.6826 GB, free: 13.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.627e-05/0.1314, allocations: 60.83 kB / 0.6826 GB, free: 13.61 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1314, allocations: 3.938 kB / 0.6826 GB, free: 13.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001177/0.1316, allocations: 86.33 kB / 0.6827 GB, free: 13.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.1316, allocations: 7.938 kB / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1316, allocations: 0 / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.586e-06/0.1316, allocations: 0 / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.495e-05/0.1317, allocations: 27.92 kB / 0.6827 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1317, allocations: 0 / 0.6827 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.1317, allocations: 7.938 kB / 0.6827 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.1317, allocations: 4 kB / 0.6828 GB, free: 13.47 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.239e-05/0.1318, allocations: 123.1 kB / 0.6829 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/0.1318, allocations: 11.84 kB / 0.6829 GB, free: 13.33 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001834/0.132, allocations: 129.5 kB / 0.683 GB, free: 13.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.132, allocations: 0 / 0.683 GB, free: 13.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1321, allocations: 3.984 kB / 0.683 GB, free: 13.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1321, allocations: 4 kB / 0.683 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.762e-05/0.1322, allocations: 173.6 kB / 0.6832 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1322, allocations: 0 / 0.6832 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.268e-05/0.1322, allocations: 19.98 kB / 0.6832 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1322, allocations: 3.938 kB / 0.6832 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.1323, allocations: 0 / 0.6832 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.093e-06/0.1323, allocations: 0 / 0.6832 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1323, allocations: 4 kB / 0.6832 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.1324, allocations: 129 kB / 0.6833 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.923e-05/0.1324, allocations: 88.89 kB / 0.6834 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.1325, allocations: 4 kB / 0.6834 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.326e-05/0.1325, allocations: 0 / 0.6834 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.873e-05/0.1325, allocations: 11.98 kB / 0.6834 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.1325, allocations: 4 kB / 0.6834 GB, free: 12.68 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.07e-05/0.1325, allocations: 75.28 kB / 0.6835 GB, free: 12.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1325, allocations: 4 kB / 0.6835 GB, free: 12.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001798/0.1327, allocations: 11.98 kB / 0.6835 GB, free: 12.59 MB / 494.1 MB 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 () * Number of clocked 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 (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.0003701/0.1331, allocations: 0.6709 MB / 0.6842 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001085/0.1332, allocations: 55.97 kB / 0.6842 GB, free: 11.83 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.1332, allocations: 4 kB / 0.6842 GB, free: 11.83 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.633e-05/0.1333, allocations: 39.91 kB / 0.6843 GB, free: 11.79 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.1334, allocations: 11.94 kB / 0.6843 GB, free: 11.78 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002989/0.1337, allocations: 180.3 kB / 0.6845 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.1339, allocations: 0.6809 MB / 0.6851 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.839e-05/0.134, allocations: 43.92 kB / 0.6852 GB, free: 10.81 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.065e-05/0.134, allocations: 19.44 kB / 0.6852 GB, free: 10.79 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.134, allocations: 0 / 0.6852 GB, free: 10.79 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4921/0.6261, allocations: 1.439 MB / 0.6866 GB, free: 9.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/0.6264, allocations: 223 kB / 0.6868 GB, free: 9.246 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.457/2.083, allocations: 0 / 0.6868 GB, free: 9.246 MB / 494.1 MB (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/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)