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.0009657/0.0009657, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009498/0.0009498, allocations: 190.4 kB / 16.25 MB, free: 6.625 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.2/1.2, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001983/0.001983, allocations: 282.7 kB / 290.3 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8464/0.8464, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 98.17 kB / 0.5948 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.123, allocations: 86.97 MB / 0.6797 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.00137/0.1244, allocations: 0.6358 MB / 0.6804 GB, free: 344 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001979/0.1246, allocations: 63.72 kB / 0.6804 GB, free: 280 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.262e-05/0.1246, allocations: 1.188 kB / 0.6804 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.329e-05/0.1247, allocations: 0 / 0.6804 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.1247, allocations: 0 / 0.6804 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.1249, allocations: 21.64 kB / 0.6804 GB, free: 260 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.25e-05/0.125, allocations: 27.97 kB / 0.6805 GB, free: 232 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.151e-05/0.125, allocations: 8 kB / 0.6805 GB, free: 224 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.576e-05/0.125, allocations: 11.98 kB / 0.6805 GB, free: 212 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.171e-05/0.1251, allocations: 12.52 kB / 0.6805 GB, free: 200 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-06/0.1251, allocations: 0 / 0.6805 GB, free: 200 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.473e-05/0.1251, allocations: 16.64 kB / 0.6805 GB, free: 184 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 2.098e-05/0.1252, allocations: 19.92 kB / 0.6805 GB, free: 164 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.426e-05/0.1252, allocations: 17.72 kB / 0.6806 GB, free: 148 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 7.303e-05/0.1253, allocations: 39.88 kB / 0.6806 GB, free: 108 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.1253, allocations: 0 / 0.6806 GB, free: 108 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1253, allocations: 0 / 0.6806 GB, free: 108 kB / 478.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.1253, allocations: 0 / 0.6806 GB, free: 108 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.0002477/0.1255, allocations: 334.6 kB / 0.6809 GB, free: 15.73 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.1256, allocations: 12.03 kB / 0.6809 GB, free: 15.72 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.79e-05/0.1256, allocations: 34.75 kB / 0.681 GB, free: 15.68 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.337e-05/0.1256, allocations: 8.844 kB / 0.681 GB, free: 15.67 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.454e-05/0.1257, allocations: 164.4 kB / 0.6811 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.146e-06/0.1257, allocations: 384 / 0.6811 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.1257, allocations: 9.156 kB / 0.6811 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.1258, allocations: 62.17 kB / 0.6812 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1259, allocations: 4.531 kB / 0.6812 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.1259, allocations: 4.875 kB / 0.6812 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1259, allocations: 4 kB / 0.6812 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.126, allocations: 103.9 kB / 0.6813 GB, free: 15.28 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001267/0.1261, allocations: 175.2 kB / 0.6815 GB, free: 15.06 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.807e-05/0.1262, allocations: 70.55 kB / 0.6815 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.817e-05/0.1263, allocations: 29.84 kB / 0.6816 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002434/0.1265, allocations: 401.5 kB / 0.6819 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.1265, allocations: 46.48 kB / 0.682 GB, free: 14.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/0.1265, allocations: 0 / 0.682 GB, free: 14.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.000185/0.1267, allocations: 113.9 kB / 0.6821 GB, free: 14.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.1268, allocations: 55.34 kB / 0.6822 GB, free: 14.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.923e-05/0.1268, allocations: 97.77 kB / 0.6822 GB, free: 14.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.1268, allocations: 29.7 kB / 0.6823 GB, free: 14.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.781e-05/0.1268, allocations: 84.08 kB / 0.6824 GB, free: 14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.1269, allocations: 23.66 kB / 0.6824 GB, free: 13.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.1269, allocations: 33.7 kB / 0.6824 GB, free: 13.94 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.647e-05/0.127, allocations: 318.8 kB / 0.6827 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.241e-05/0.127, allocations: 19.98 kB / 0.6827 GB, free: 13.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.898e-05/0.1271, allocations: 19.98 kB / 0.6828 GB, free: 13.58 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.346e-05/0.1272, allocations: 65.38 kB / 0.6828 GB, free: 13.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1272, allocations: 0 / 0.6828 GB, free: 13.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001101/0.1273, allocations: 93.59 kB / 0.6829 GB, free: 13.42 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.1273, allocations: 7.938 kB / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.175e-06/0.1273, allocations: 4 kB / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.734e-06/0.1273, allocations: 0 / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-05/0.1274, allocations: 19.98 kB / 0.6829 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.1274, allocations: 0 / 0.6829 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.905e-05/0.1274, allocations: 15.88 kB / 0.6829 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.1274, allocations: 0 / 0.6829 GB, free: 13.37 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 8.9e-05/0.1275, allocations: 123.1 kB / 0.6831 GB, free: 13.24 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.1276, allocations: 11.84 kB / 0.6831 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001692/0.1277, allocations: 121.5 kB / 0.6832 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1277, allocations: 0 / 0.6832 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1277, allocations: 4 kB / 0.6832 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1278, allocations: 0 / 0.6832 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.574e-05/0.1278, allocations: 177.5 kB / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1279, allocations: 0 / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.105e-05/0.1279, allocations: 23.92 kB / 0.6834 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.1279, allocations: 3.938 kB / 0.6834 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.1279, allocations: 4 kB / 0.6834 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1279, allocations: 8 kB / 0.6834 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.128, allocations: 0 / 0.6834 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001287/0.1281, allocations: 113.1 kB / 0.6835 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/0.1281, allocations: 88.89 kB / 0.6836 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.1281, allocations: 4 kB / 0.6836 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.567e-05/0.1282, allocations: 4 kB / 0.6836 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.1282, allocations: 15.92 kB / 0.6836 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-06/0.1282, allocations: 7.938 kB / 0.6836 GB, free: 12.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 1.832e-05/0.1282, allocations: 79.28 kB / 0.6837 GB, free: 12.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1282, allocations: 0 / 0.6837 GB, free: 12.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001715/0.1284, allocations: 16 kB / 0.6837 GB, free: 12.48 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.0003493/0.1288, allocations: 0.6632 MB / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001191/0.1289, allocations: 75.83 kB / 0.6844 GB, free: 11.71 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1289, allocations: 7.938 kB / 0.6844 GB, free: 11.71 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.541e-05/0.1289, allocations: 36.58 kB / 0.6845 GB, free: 11.67 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001139/0.1291, allocations: 11.98 kB / 0.6845 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000283/0.1293, allocations: 174.9 kB / 0.6847 GB, free: 11.45 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.1295, allocations: 0.6846 MB / 0.6853 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.365e-05/0.1296, allocations: 39.92 kB / 0.6854 GB, free: 10.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.208e-05/0.1296, allocations: 23.42 kB / 0.6854 GB, free: 10.68 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1296, allocations: 0 / 0.6854 GB, free: 10.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6904/0.8201, allocations: 1.464 MB / 0.6868 GB, free: 9.375 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003327/0.8204, allocations: 228.4 kB / 0.687 GB, free: 9.121 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.53/2.35, allocations: 0 / 0.687 GB, free: 9.121 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)