Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_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.002208/0.002209, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.002039/0.002039, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.294/2.294, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.093/1.093, allocations: 132.3 MB / 423.2 MB, free: 2.211 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00068/0.0006807, allocations: 12 kB / 0.5033 GB, free: 4.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7299/0.7306, allocations: 81.58 MB / 0.583 GB, free: 4.02 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.00311/0.7338, allocations: 1.233 MB / 0.5842 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005025/0.7343, allocations: 126.2 kB / 0.5843 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.175e-05/0.7344, allocations: 1.312 kB / 0.5843 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.507e-05/0.7344, allocations: 1.312 kB / 0.5843 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.733e-05/0.7345, allocations: 0.625 kB / 0.5843 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.7348, allocations: 28.17 kB / 0.5843 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.281e-05/0.7349, allocations: 24.42 kB / 0.5843 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.7351, allocations: 11.72 kB / 0.5844 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.993e-05/0.7351, allocations: 6.688 kB / 0.5844 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.211e-05/0.7352, allocations: 17.16 kB / 0.5844 GB, free: 3 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.7352, allocations: 5.344 kB / 0.5844 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.7353, allocations: 18.38 kB / 0.5844 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.719e-05/0.7354, allocations: 6.172 kB / 0.5844 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.706e-05/0.7354, allocations: 33.09 kB / 0.5844 GB, free: 2.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.7355, allocations: 24.06 kB / 0.5845 GB, free: 2.945 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.7356, allocations: 5.125 kB / 0.5845 GB, free: 2.941 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.7356, allocations: 0 / 0.5845 GB, free: 2.941 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.7356, allocations: 0 / 0.5845 GB, free: 2.941 MB / 430.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.0005478/0.7361, allocations: 351 kB / 0.5848 GB, free: 2.582 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.493e-05/0.7362, allocations: 9.891 kB / 0.5848 GB, free: 2.582 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.759e-05/0.7363, allocations: 36.22 kB / 0.5848 GB, free: 2.539 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.584e-05/0.7363, allocations: 5.906 kB / 0.5849 GB, free: 2.535 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.7364, allocations: 170.4 kB / 0.585 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.911e-05/0.7365, allocations: 1.969 kB / 0.585 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.7365, allocations: 10.88 kB / 0.585 GB, free: 2.324 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/0.7368, allocations: 77.34 kB / 0.5851 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.7368, allocations: 0 / 0.5851 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.7368, allocations: 5.688 kB / 0.5851 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.7369, allocations: 1.031 kB / 0.5851 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003035/0.7372, allocations: 49.34 kB / 0.5852 GB, free: 2.266 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005184/0.7377, allocations: 280.8 kB / 0.5854 GB, free: 1.977 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004391/0.7382, allocations: 65.09 kB / 0.5855 GB, free: 1.941 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002809/0.7385, allocations: 402.4 kB / 0.5859 GB, free: 1.469 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.7385, allocations: 36.77 kB / 0.5859 GB, free: 1.426 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.273e-06/0.7385, allocations: 0 / 0.5859 GB, free: 1.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005632/0.7391, allocations: 115.1 kB / 0.586 GB, free: 1.375 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.7391, allocations: 57.08 kB / 0.5861 GB, free: 1.309 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.639e-05/0.7392, allocations: 110.1 kB / 0.5862 GB, free: 1.203 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.7393, allocations: 27.77 kB / 0.5862 GB, free: 1.172 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.004e-05/0.7393, allocations: 85.62 kB / 0.5863 GB, free: 1.086 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.7393, allocations: 5.969 kB / 0.5863 GB, free: 1.082 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.67e-06/0.7393, allocations: 0.9062 kB / 0.5863 GB, free: 1.082 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.923e-05/0.7394, allocations: 317 kB / 0.5866 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.7396, allocations: 29.52 kB / 0.5866 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.7397, allocations: 25.48 kB / 0.5866 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.7399, allocations: 24.69 kB / 0.5867 GB, free: 0.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.7399, allocations: 4.797 kB / 0.5867 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003588/0.7403, allocations: 87.22 kB / 0.5868 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.7403, allocations: 9.766 kB / 0.5868 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.7403, allocations: 0 / 0.5868 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.7403, allocations: 5.188 kB / 0.5868 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.7405, allocations: 17.58 kB / 0.5868 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.7405, allocations: 3.953 kB / 0.5868 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.054e-05/0.7406, allocations: 12.95 kB / 0.5868 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.7406, allocations: 1.953 kB / 0.5868 GB, free: 0.6836 MB / 430.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 (rea2Int.y,falFac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.274e-05/0.7407, allocations: 109.7 kB / 0.5869 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.7408, allocations: 1.031 kB / 0.5869 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004173/0.7412, allocations: 98.03 kB / 0.587 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.7412, allocations: 0.8438 kB / 0.587 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.7412, allocations: 0.875 kB / 0.587 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.7412, allocations: 3.953 kB / 0.587 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.7415, allocations: 166.7 kB / 0.5872 GB, free: 320 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.7415, allocations: 3.938 kB / 0.5872 GB, free: 316 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.7416, allocations: 18.12 kB / 0.5872 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.7416, allocations: 0 / 0.5872 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.7416, allocations: 1.828 kB / 0.5872 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.7417, allocations: 0 / 0.5872 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.7417, allocations: 4.719 kB / 0.5872 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.7421, allocations: 187 kB / 0.5874 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.183e-05/0.7421, allocations: 80.12 kB / 0.5874 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.7422, allocations: 1.094 kB / 0.5875 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.7423, allocations: 8.047 kB / 0.5875 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.633e-05/0.7424, allocations: 9.75 kB / 0.5875 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.7424, allocations: 5.531 kB / 0.5875 GB, free: 52 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.7425, allocations: 96.66 kB / 0.5876 GB, free: 15.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7425, allocations: 0 / 0.5876 GB, free: 15.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003752/0.7429, allocations: 12.69 kB / 0.5876 GB, free: 15.96 MB / 446.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 (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.001181/0.7441, allocations: 0.726 MB / 0.5883 GB, free: 15.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003883/0.7445, allocations: 56.2 kB / 0.5883 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.7445, allocations: 4 kB / 0.5883 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.7447, allocations: 33.23 kB / 0.5884 GB, free: 15.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.745, allocations: 12.31 kB / 0.5884 GB, free: 15.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.7465, allocations: 454.2 kB / 0.5888 GB, free: 14.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.747, allocations: 0.6866 MB / 0.5895 GB, free: 14.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.25e-05/0.747, allocations: 4.062 kB / 0.5895 GB, free: 14.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.459e-05/0.7471, allocations: 15.7 kB / 0.5895 GB, free: 14.19 MB / 446.1 MB Notification: Performance of SimCode: time 5.11e-07/0.7471, allocations: 0 / 0.5895 GB, free: 14.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/0.7691, allocations: 1.362 MB / 0.5908 GB, free: 14.04 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003075/0.7695, allocations: 173.6 kB / 0.591 GB, free: 13.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.679/3.449, allocations: 3.938 kB / 0.591 GB, free: 13.8 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: