Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/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.Functions.Examples.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_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.0008098/0.0008098, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001085/0.001085, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.737/0.737, allocations: 132.3 MB / 423.4 MB, free: 2.066 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002914, allocations: 9.094 kB / 0.5035 GB, free: 4.137 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3705, allocations: 81.58 MB / 0.5832 GB, free: 3.984 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0006169/0.3711, allocations: 317.7 kB / 0.5835 GB, free: 3.77 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002243/0.3714, allocations: 50.83 kB / 0.5835 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.463e-05/0.3714, allocations: 0 / 0.5835 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.161e-05/0.3714, allocations: 1.719 kB / 0.5835 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.3715, allocations: 1.188 kB / 0.5835 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.3717, allocations: 15.7 kB / 0.5835 GB, free: 3.73 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.431e-05/0.3718, allocations: 27.48 kB / 0.5836 GB, free: 3.723 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.125e-05/0.3718, allocations: 2.312 kB / 0.5836 GB, free: 3.723 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.486e-05/0.3718, allocations: 11.3 kB / 0.5836 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.589e-05/0.3719, allocations: 12.58 kB / 0.5836 GB, free: 3.715 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.3719, allocations: 1.062 kB / 0.5836 GB, free: 3.715 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.225e-05/0.372, allocations: 16.09 kB / 0.5836 GB, free: 3.711 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.46e-05/0.372, allocations: 10.42 kB / 0.5836 GB, free: 3.707 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.784e-05/0.3721, allocations: 42.59 kB / 0.5836 GB, free: 3.664 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 7.463e-05/0.3721, allocations: 22.56 kB / 0.5837 GB, free: 3.656 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.83e-06/0.3721, allocations: 1.297 kB / 0.5837 GB, free: 3.656 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3722, allocations: 0 / 0.5837 GB, free: 3.656 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.299e-06/0.3722, allocations: 0 / 0.5837 GB, free: 3.656 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002328/0.3724, allocations: 328.7 kB / 0.584 GB, free: 3.301 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3724, allocations: 10.11 kB / 0.584 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.168e-05/0.3725, allocations: 41.86 kB / 0.584 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.637e-05/0.3725, allocations: 2.469 kB / 0.584 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.358e-05/0.3726, allocations: 168 kB / 0.5842 GB, free: 3.055 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.3726, allocations: 1.75 kB / 0.5842 GB, free: 3.055 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.3726, allocations: 7.094 kB / 0.5842 GB, free: 3.051 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.3728, allocations: 60.42 kB / 0.5843 GB, free: 3.012 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.3728, allocations: 3.938 kB / 0.5843 GB, free: 3.008 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.3728, allocations: 1.141 kB / 0.5843 GB, free: 3.008 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3728, allocations: 1.344 kB / 0.5843 GB, free: 3.008 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.373, allocations: 100.6 kB / 0.5844 GB, free: 2.996 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.3731, allocations: 188 kB / 0.5845 GB, free: 2.781 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.3732, allocations: 70.59 kB / 0.5846 GB, free: 2.746 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.841e-05/0.3733, allocations: 27.8 kB / 0.5846 GB, free: 2.734 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002392/0.3735, allocations: 403.6 kB / 0.585 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.3736, allocations: 39.92 kB / 0.5851 GB, free: 2.215 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.3736, allocations: 0 / 0.5851 GB, free: 2.215 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002466/0.3738, allocations: 114 kB / 0.5852 GB, free: 2.164 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.179e-05/0.3739, allocations: 61.09 kB / 0.5852 GB, free: 2.094 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.315e-05/0.3739, allocations: 92.41 kB / 0.5853 GB, free: 1.996 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.886e-06/0.3739, allocations: 30.83 kB / 0.5853 GB, free: 1.961 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.116e-05/0.3739, allocations: 80.33 kB / 0.5854 GB, free: 1.875 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.374, allocations: 24.59 kB / 0.5854 GB, free: 1.855 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.374, allocations: 1.125 kB / 0.5854 GB, free: 1.855 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.337e-05/0.374, allocations: 317.3 kB / 0.5857 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.985e-05/0.3741, allocations: 19.88 kB / 0.5858 GB, free: 1.535 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.658e-05/0.3741, allocations: 24.3 kB / 0.5858 GB, free: 1.527 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.638e-05/0.3742, allocations: 27.48 kB / 0.5858 GB, free: 1.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3742, allocations: 3.938 kB / 0.5858 GB, free: 1.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001378/0.3743, allocations: 92.78 kB / 0.5859 GB, free: 1.465 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.3743, allocations: 5.656 kB / 0.5859 GB, free: 1.465 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.3743, allocations: 0 / 0.5859 GB, free: 1.465 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.3744, allocations: 1.469 kB / 0.5859 GB, free: 1.465 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.3745, allocations: 21.84 kB / 0.5859 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.3745, allocations: 0.8125 kB / 0.5859 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.455e-05/0.3746, allocations: 9.734 kB / 0.5859 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.3746, allocations: 7.188 kB / 0.586 GB, free: 1.449 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: 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 initialization (11): * Single equations (assignments): 11 * 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 0.0001212/0.3747, allocations: 128.8 kB / 0.5861 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.818e-05/0.3747, allocations: 2.672 kB / 0.5861 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002784/0.375, allocations: 122.8 kB / 0.5862 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.375, allocations: 1.188 kB / 0.5862 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3751, allocations: 1.125 kB / 0.5862 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3751, allocations: 4.703 kB / 0.5862 GB, free: 1.254 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.3752, allocations: 182 kB / 0.5864 GB, free: 1.047 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3752, allocations: 0 / 0.5864 GB, free: 1.047 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.3753, allocations: 25.7 kB / 0.5864 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.3753, allocations: 1.25 kB / 0.5864 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.3753, allocations: 1.672 kB / 0.5864 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.3754, allocations: 1.297 kB / 0.5864 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3754, allocations: 0.625 kB / 0.5864 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.3755, allocations: 124.5 kB / 0.5865 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/0.3756, allocations: 83.53 kB / 0.5866 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.3756, allocations: 5.641 kB / 0.5866 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.581e-05/0.3756, allocations: 0.6875 kB / 0.5866 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.3757, allocations: 8 kB / 0.5866 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.3757, allocations: 2.891 kB / 0.5866 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of sorting global known variables: time 1.307e-05/0.3757, allocations: 76.41 kB / 0.5867 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.3757, allocations: 0 / 0.5867 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000215/0.3759, allocations: 19.56 kB / 0.5867 GB, free: 0.7695 MB / 430.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 (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.0003689/0.3763, allocations: 0.6698 MB / 0.5874 GB, free: 148 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000144/0.3764, allocations: 62.78 kB / 0.5874 GB, free: 132 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3765, allocations: 0 / 0.5874 GB, free: 132 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.89e-05/0.3765, allocations: 36.8 kB / 0.5875 GB, free: 124 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.3767, allocations: 6.156 kB / 0.5875 GB, free: 120 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003784/0.377, allocations: 189.1 kB / 0.5876 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.3773, allocations: 0.683 MB / 0.5883 GB, free: 15.25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.628e-05/0.3774, allocations: 33.95 kB / 0.5883 GB, free: 15.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.01e-05/0.3774, allocations: 18.36 kB / 0.5884 GB, free: 15.23 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3774, allocations: 4 kB / 0.5884 GB, free: 15.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.3888, allocations: 1.325 MB / 0.5897 GB, free: 15.08 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002497/0.3891, allocations: 186 kB / 0.5898 GB, free: 14.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/1.953, allocations: 7.938 kB / 0.5898 GB, free: 14.84 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: