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/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.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/BuildingSystems 2.0.0-master/package.mo): time 0.8385/0.8385, 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.001236/0.001237, allocations: 189.6 kB / 187.3 MB, free: 11.87 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.719/1.719, allocations: 221.3 MB / 441.4 MB, free: 4.617 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.0009766/0.0009766, allocations: 91.56 kB / 0.5124 GB, free: 24.12 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001935/0.001935, allocations: 268.3 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.445e-05/5.453e-05, allocations: 4 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5811/0.5812, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1408/0.722, allocations: 109 MB / 0.8708 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.7224, allocations: 67.97 kB / 0.8708 GB, free: 15.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.003228/0.7256, allocations: 1.063 MB / 0.8719 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.485e-06/0.7256, allocations: 0 / 0.8719 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.305e-06/0.7257, allocations: 0 / 0.8719 GB, free: 14.45 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000446/0.7261, allocations: 354.5 kB / 0.8722 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.7262, allocations: 8.031 kB / 0.8722 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.98e-05/0.7262, allocations: 30.56 kB / 0.8723 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.992e-05/0.7263, allocations: 7.906 kB / 0.8723 GB, free: 14 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.7264, allocations: 167 kB / 0.8724 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.69e-05/0.7265, allocations: 19.89 kB / 0.8724 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.7265, allocations: 0 / 0.8724 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.7266, allocations: 52.11 kB / 0.8725 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.7267, allocations: 0 / 0.8725 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.7267, allocations: 4 kB / 0.8725 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.7267, allocations: 4 kB / 0.8725 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.158e-05/0.7268, allocations: 16 kB / 0.8725 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004429/0.7272, allocations: 288.7 kB / 0.8728 GB, free: 13.37 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.7275, allocations: 42.56 kB / 0.8728 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.583e-05/0.7275, allocations: 16.92 kB / 0.8729 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003484/0.7279, allocations: 397.6 kB / 0.8732 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.7279, allocations: 38.55 kB / 0.8733 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.7279, allocations: 0 / 0.8733 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0001888/0.7281, allocations: 49.64 kB / 0.8733 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.7282, allocations: 55.39 kB / 0.8734 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.532e-05/0.7283, allocations: 97 kB / 0.8735 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.7283, allocations: 33.64 kB / 0.8735 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.692e-05/0.7283, allocations: 88.14 kB / 0.8736 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.7284, allocations: 3.906 kB / 0.8736 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-06/0.7284, allocations: 4 kB / 0.8736 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.7285, allocations: 322.8 kB / 0.8739 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.598e-05/0.7286, allocations: 8 kB / 0.8739 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.641e-05/0.7286, allocations: 7.938 kB / 0.8739 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.686e-05/0.7286, allocations: 8 kB / 0.8739 GB, free: 12.06 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7286, allocations: 0 / 0.8739 GB, free: 12.06 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001014/0.7287, allocations: 65.66 kB / 0.874 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.7287, allocations: 5.25 kB / 0.874 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.7288, allocations: 0 / 0.874 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.7288, allocations: 0 / 0.874 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.485e-05/0.7289, allocations: 19.98 kB / 0.874 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.7289, allocations: 0 / 0.874 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.332e-05/0.729, allocations: 14 kB / 0.874 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.729, allocations: 0 / 0.874 GB, free: 11.96 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 (falFac.y,falFac.k) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.436e-05/0.7291, allocations: 110.3 kB / 0.8741 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.371e-05/0.7291, allocations: 4 kB / 0.8741 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.7293, allocations: 57.7 kB / 0.8742 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.7293, allocations: 0 / 0.8742 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.7293, allocations: 7.938 kB / 0.8742 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.7293, allocations: 0 / 0.8742 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.7295, allocations: 173.5 kB / 0.8744 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.7295, allocations: 0 / 0.8744 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.353e-05/0.7296, allocations: 15.98 kB / 0.8744 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.7296, allocations: 0 / 0.8744 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.7296, allocations: 0 / 0.8744 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.7296, allocations: 7.984 kB / 0.8744 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7296, allocations: 0 / 0.8744 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.7298, allocations: 147.5 kB / 0.8745 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.313e-05/0.7298, allocations: 77.11 kB / 0.8746 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.7298, allocations: 0 / 0.8746 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.03e-05/0.7299, allocations: 15.98 kB / 0.8746 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.889e-05/0.73, allocations: 7.938 kB / 0.8746 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.73, allocations: 7.984 kB / 0.8746 GB, free: 11.24 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.281e-05/0.7301, allocations: 85.31 kB / 0.8747 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7301, allocations: 3.938 kB / 0.8747 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002069/0.7303, allocations: 15.94 kB / 0.8747 GB, free: 11.14 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 (falFac.y,falFac.k) * Number of discrete 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 (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.0005373/0.7308, allocations: 0.7007 MB / 0.8754 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.985e-05/0.731, allocations: 23.94 kB / 0.8754 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.731, allocations: 0 / 0.8754 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.632e-05/0.731, allocations: 23.92 kB / 0.8755 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.7312, allocations: 0 / 0.8755 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004045/0.7316, allocations: 110.8 kB / 0.8756 GB, free: 10.22 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.732, allocations: 0.6887 MB / 0.8762 GB, free: 9.504 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.465e-05/0.732, allocations: 4.375 kB / 0.8762 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.613e-05/0.732, allocations: 19.36 kB / 0.8763 GB, free: 9.48 MB / 0.5417 GB Notification: Performance of SimCode: time 2.2e-07/0.732, allocations: 0 / 0.8763 GB, free: 9.48 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.013/0.7451, allocations: 1.385 MB / 0.8776 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002249/0.7454, allocations: 160.2 kB / 0.8778 GB, free: 8.016 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/2.287, allocations: 0 / 0.8778 GB, free: 8.016 MB / 0.5417 GB (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/linux/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)