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.0007803/0.0007804, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.0008607/0.0008606, allocations: 168.7 kB / 15.95 MB, free: 204 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.303/1.303, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7157/0.7157, allocations: 132.3 MB / 423.4 MB, free: 2.047 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002985, allocations: 8 kB / 0.5035 GB, free: 4.172 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3824, allocations: 81.57 MB / 0.5832 GB, free: 4 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002007/0.3845, allocations: 1.245 MB / 0.5844 GB, free: 3.094 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005245/0.385, allocations: 126 kB / 0.5845 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.606e-05/0.3851, allocations: 0.6562 kB / 0.5845 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.21e-05/0.3851, allocations: 1.406 kB / 0.5845 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.559e-05/0.3852, allocations: 6.016 kB / 0.5845 GB, free: 3.004 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.3855, allocations: 19.11 kB / 0.5845 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.338e-05/0.3856, allocations: 40.81 kB / 0.5846 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.3857, allocations: 7 kB / 0.5846 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.595e-05/0.3857, allocations: 15.2 kB / 0.5846 GB, free: 2.965 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.232e-05/0.3858, allocations: 13.09 kB / 0.5846 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.3858, allocations: 1.281 kB / 0.5846 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.834e-05/0.3859, allocations: 19.66 kB / 0.5846 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.42e-05/0.3859, allocations: 10.56 kB / 0.5846 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.471e-05/0.3859, allocations: 28.12 kB / 0.5846 GB, free: 2.914 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.386, allocations: 24.14 kB / 0.5847 GB, free: 2.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.386, allocations: 5 kB / 0.5847 GB, free: 2.906 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.3861, allocations: 0 / 0.5847 GB, free: 2.906 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.3861, allocations: 3.938 kB / 0.5847 GB, free: 2.902 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.0004208/0.3865, allocations: 350.5 kB / 0.585 GB, free: 2.543 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.3865, allocations: 10.69 kB / 0.585 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.69e-05/0.3866, allocations: 32.28 kB / 0.5851 GB, free: 2.504 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.3866, allocations: 6.688 kB / 0.5851 GB, free: 2.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.9e-05/0.3867, allocations: 177.6 kB / 0.5852 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.3868, allocations: 5.438 kB / 0.5852 GB, free: 2.285 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.3868, allocations: 2.875 kB / 0.5852 GB, free: 2.285 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.387, allocations: 65.86 kB / 0.5853 GB, free: 2.246 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.387, allocations: 0 / 0.5853 GB, free: 2.246 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.387, allocations: 1.906 kB / 0.5853 GB, free: 2.246 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.387, allocations: 4.594 kB / 0.5853 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.3872, allocations: 65.05 kB / 0.5854 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003685/0.3876, allocations: 281.6 kB / 0.5856 GB, free: 1.934 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.3879, allocations: 69.16 kB / 0.5857 GB, free: 1.895 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.854e-05/0.388, allocations: 31.47 kB / 0.5857 GB, free: 1.883 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001979/0.3882, allocations: 402.2 kB / 0.5861 GB, free: 1.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.3883, allocations: 35.22 kB / 0.5861 GB, free: 1.367 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.3883, allocations: 0.7812 kB / 0.5861 GB, free: 1.367 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003793/0.3887, allocations: 111.5 kB / 0.5863 GB, free: 1.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.3887, allocations: 56.67 kB / 0.5863 GB, free: 1.254 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.766e-05/0.3888, allocations: 111.3 kB / 0.5864 GB, free: 1.148 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.713e-06/0.3888, allocations: 25.7 kB / 0.5864 GB, free: 1.117 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.441e-05/0.3888, allocations: 86.48 kB / 0.5865 GB, free: 1.031 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.306e-05/0.3888, allocations: 6.906 kB / 0.5865 GB, free: 1.027 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.3888, allocations: 0 / 0.5865 GB, free: 1.027 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.093e-05/0.3889, allocations: 317.1 kB / 0.5868 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.836e-05/0.389, allocations: 32.59 kB / 0.5869 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.571e-05/0.3891, allocations: 22.61 kB / 0.5869 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.36e-05/0.3892, allocations: 25.42 kB / 0.5869 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.3892, allocations: 0.7969 kB / 0.5869 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002039/0.3894, allocations: 94.23 kB / 0.587 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.3894, allocations: 6.047 kB / 0.587 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3894, allocations: 0 / 0.587 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.3894, allocations: 0.7812 kB / 0.587 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.112e-05/0.3895, allocations: 18 kB / 0.587 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.3895, allocations: 4.516 kB / 0.587 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.941e-05/0.3896, allocations: 13.44 kB / 0.587 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.3896, allocations: 1.406 kB / 0.587 GB, free: 0.6328 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 5.31e-05/0.3897, allocations: 118.5 kB / 0.5872 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.3897, allocations: 1.625 kB / 0.5872 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.39, allocations: 98.34 kB / 0.5872 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.39, allocations: 0 / 0.5872 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.39, allocations: 0.9844 kB / 0.5872 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.39, allocations: 4.797 kB / 0.5873 GB, free: 460 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.3901, allocations: 165.8 kB / 0.5874 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3901, allocations: 0 / 0.5874 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.617e-05/0.3902, allocations: 18.16 kB / 0.5874 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3902, allocations: 0 / 0.5874 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.3902, allocations: 1.75 kB / 0.5874 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3902, allocations: 1.344 kB / 0.5874 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3902, allocations: 0 / 0.5874 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.3905, allocations: 190.9 kB / 0.5876 GB, free: 100 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.647e-05/0.3906, allocations: 87.11 kB / 0.5877 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.3906, allocations: 1.922 kB / 0.5877 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.653e-05/0.3907, allocations: 8.562 kB / 0.5877 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.8e-05/0.3907, allocations: 5.406 kB / 0.5877 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.3907, allocations: 2.234 kB / 0.5877 GB, free: 15.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.717e-05/0.3908, allocations: 91.11 kB / 0.5878 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3908, allocations: 0 / 0.5878 GB, free: 15.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.391, allocations: 9.484 kB / 0.5878 GB, free: 15.91 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.000675/0.3917, allocations: 0.7254 MB / 0.5885 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002757/0.392, allocations: 55.34 kB / 0.5886 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.392, allocations: 0 / 0.5886 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.3922, allocations: 34.53 kB / 0.5886 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.3925, allocations: 2.359 kB / 0.5886 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009066/0.3934, allocations: 467.4 kB / 0.5891 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.3938, allocations: 0.6799 MB / 0.5897 GB, free: 14.15 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.295e-05/0.3938, allocations: 7.344 kB / 0.5897 GB, free: 14.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.208e-05/0.3939, allocations: 15.88 kB / 0.5897 GB, free: 14.14 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3939, allocations: 0 / 0.5897 GB, free: 14.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01466/0.4085, allocations: 1.393 MB / 0.5911 GB, free: 13.98 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/0.4088, allocations: 173.5 kB / 0.5913 GB, free: 13.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.065, allocations: 0 / 0.5913 GB, free: 13.74 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: