Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_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.0009638/0.0009638, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.005459/0.005459, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.306/1.306, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001702/0.001702, allocations: 274.5 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9201/0.9201, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003857, allocations: 14.72 kB / 0.5988 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.143, allocations: 88.54 MB / 0.6852 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.001584/0.1446, allocations: 1.249 MB / 0.6864 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003537/0.145, allocations: 129.3 kB / 0.6866 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.697e-05/0.145, allocations: 0 / 0.6866 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.609e-05/0.1451, allocations: 0 / 0.6866 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.162e-05/0.1451, allocations: 12.67 kB / 0.6866 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.1454, allocations: 19.97 kB / 0.6866 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.028e-05/0.1455, allocations: 33.02 kB / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.948e-05/0.1456, allocations: 10.5 kB / 0.6866 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.199e-05/0.1456, allocations: 19.92 kB / 0.6867 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.225e-05/0.1456, allocations: 19.91 kB / 0.6867 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.1457, allocations: 0 / 0.6867 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.891e-05/0.1457, allocations: 15.98 kB / 0.6867 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.1458, allocations: 4.562 kB / 0.6867 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.536e-05/0.1458, allocations: 44.06 kB / 0.6867 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.1459, allocations: 43.81 kB / 0.6868 GB, free: 13.36 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1459, allocations: 0 / 0.6868 GB, free: 13.36 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1459, allocations: 3.938 kB / 0.6868 GB, free: 13.36 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.1459, allocations: 0 / 0.6868 GB, free: 13.36 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004083/0.1463, allocations: 351.2 kB / 0.6871 GB, free: 12.97 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1464, allocations: 12.03 kB / 0.6871 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.228e-05/0.1464, allocations: 34.75 kB / 0.6872 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.052e-05/0.1465, allocations: 5.469 kB / 0.6872 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.1466, allocations: 168.3 kB / 0.6873 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.1466, allocations: 0.9375 kB / 0.6873 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.1466, allocations: 4.906 kB / 0.6873 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.1468, allocations: 68 kB / 0.6874 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1468, allocations: 3.938 kB / 0.6874 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.1468, allocations: 8.859 kB / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1468, allocations: 0 / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.147, allocations: 54.08 kB / 0.6875 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003451/0.1474, allocations: 297.1 kB / 0.6878 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.1477, allocations: 58.55 kB / 0.6878 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.1478, allocations: 34.05 kB / 0.6878 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003116/0.1481, allocations: 397.5 kB / 0.6882 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.1482, allocations: 35.22 kB / 0.6883 GB, free: 11.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1482, allocations: 8.594 kB / 0.6883 GB, free: 11.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003754/0.1486, allocations: 112.8 kB / 0.6884 GB, free: 11.49 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.1486, allocations: 51.41 kB / 0.6884 GB, free: 11.43 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.671e-05/0.1487, allocations: 117.8 kB / 0.6885 GB, free: 11.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.1487, allocations: 25.7 kB / 0.6886 GB, free: 11.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.081e-05/0.1488, allocations: 80.66 kB / 0.6886 GB, free: 11.19 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.1488, allocations: 11.91 kB / 0.6886 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/0.1488, allocations: 9.719 kB / 0.6887 GB, free: 11.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1489, allocations: 322.8 kB / 0.689 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.524e-05/0.149, allocations: 23.98 kB / 0.689 GB, free: 10.81 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.792e-05/0.1491, allocations: 27.97 kB / 0.689 GB, free: 10.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.1493, allocations: 56.77 kB / 0.6891 GB, free: 10.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1493, allocations: 4 kB / 0.6891 GB, free: 10.72 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002403/0.1496, allocations: 85.64 kB / 0.6891 GB, free: 10.63 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.1496, allocations: 8 kB / 0.6892 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1496, allocations: 0 / 0.6892 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.965e-06/0.1496, allocations: 0 / 0.6892 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.831e-05/0.1497, allocations: 19.98 kB / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.1497, allocations: 320 / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.917e-05/0.1498, allocations: 11.89 kB / 0.6892 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.1498, allocations: 4 kB / 0.6892 GB, free: 10.59 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: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.297e-05/0.1499, allocations: 110.4 kB / 0.6893 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.59e-05/0.1499, allocations: 4 kB / 0.6893 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002626/0.1502, allocations: 109.4 kB / 0.6894 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1502, allocations: 0 / 0.6894 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1502, allocations: 0 / 0.6894 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.1502, allocations: 384 / 0.6894 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.1503, allocations: 173.5 kB / 0.6896 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1504, allocations: 0 / 0.6896 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-05/0.1504, allocations: 15.98 kB / 0.6896 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1504, allocations: 4 kB / 0.6896 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.1505, allocations: 0 / 0.6896 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1505, allocations: 0 / 0.6896 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1505, allocations: 3.984 kB / 0.6896 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.1507, allocations: 195.3 kB / 0.6898 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.532e-05/0.1508, allocations: 81.02 kB / 0.6899 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.1508, allocations: 0 / 0.6899 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.88e-05/0.1509, allocations: 11.98 kB / 0.6899 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.67e-05/0.1509, allocations: 7.984 kB / 0.6899 GB, free: 9.785 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.1509, allocations: 4 kB / 0.6899 GB, free: 9.781 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.605e-05/0.151, allocations: 87.28 kB / 0.69 GB, free: 9.695 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.151, allocations: 0 / 0.69 GB, free: 9.695 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002156/0.1512, allocations: 8 kB / 0.69 GB, free: 9.688 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: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005162/0.1517, allocations: 0.728 MB / 0.6907 GB, free: 8.934 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002169/0.152, allocations: 55.94 kB / 0.6907 GB, free: 8.879 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.152, allocations: 4 kB / 0.6907 GB, free: 8.875 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.1521, allocations: 27.98 kB / 0.6908 GB, free: 8.848 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.1523, allocations: 10.11 kB / 0.6908 GB, free: 8.84 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.1536, allocations: 1.31 MB / 0.6921 GB, free: 7.453 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.1539, allocations: 0.6888 MB / 0.6927 GB, free: 6.738 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.152e-05/0.1539, allocations: 7.984 kB / 0.6927 GB, free: 6.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.49e-05/0.1539, allocations: 11.44 kB / 0.6927 GB, free: 6.719 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1539, allocations: 0 / 0.6927 GB, free: 6.719 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009835/0.1638, allocations: 1.431 MB / 0.6941 GB, free: 5.426 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.164, allocations: 203.4 kB / 0.6943 GB, free: 5.176 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/1.784, allocations: 0 / 0.6943 GB, free: 5.176 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)