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.007791/0.00779, allocations: 100.5 kB / 15.73 MB, free: 6.051 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.001768/0.001768, allocations: 199.3 kB / 16.67 MB, free: 5.977 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7473/0.7473, allocations: 132.2 MB / 422.7 MB, free: 1.715 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 63.91 kB / 0.5809 GB, free: 8.039 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.399/0.401, allocations: 80.21 MB / 0.6592 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001452/0.4025, allocations: 0.5765 MB / 0.6598 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002319/0.4027, allocations: 57.34 kB / 0.6598 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.907e-05/0.4028, allocations: 0 / 0.6598 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.705e-05/0.4028, allocations: 0 / 0.6598 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.4028, allocations: 0 / 0.6598 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.4031, allocations: 23.11 kB / 0.6599 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.383e-05/0.4032, allocations: 33.02 kB / 0.6599 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.148e-05/0.4032, allocations: 7.5 kB / 0.6599 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.839e-05/0.4032, allocations: 10.95 kB / 0.6599 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.762e-05/0.4033, allocations: 11.59 kB / 0.6599 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.4033, allocations: 1.375 kB / 0.6599 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.786e-05/0.4034, allocations: 16.56 kB / 0.6599 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.4034, allocations: 11 kB / 0.6599 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.31e-05/0.4034, allocations: 26.77 kB / 0.66 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.392e-05/0.4035, allocations: 30.94 kB / 0.66 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4036, allocations: 2.125 kB / 0.66 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4036, allocations: 0 / 0.66 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.829e-06/0.4036, allocations: 0 / 0.66 GB, free: 9.461 MB / 0.4981 GB 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.0002495/0.4038, allocations: 334.9 kB / 0.6603 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.4039, allocations: 9.219 kB / 0.6603 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.968e-05/0.4039, allocations: 36.92 kB / 0.6604 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.819e-05/0.4039, allocations: 8.672 kB / 0.6604 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.347e-05/0.404, allocations: 163.3 kB / 0.6605 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.404, allocations: 3 kB / 0.6605 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.404, allocations: 8.531 kB / 0.6605 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.4042, allocations: 65.06 kB / 0.6606 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.4042, allocations: 3.938 kB / 0.6606 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.4042, allocations: 8.516 kB / 0.6606 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.4042, allocations: 5.25 kB / 0.6606 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.4044, allocations: 101.4 kB / 0.6607 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.4045, allocations: 176.8 kB / 0.6609 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.4046, allocations: 75.17 kB / 0.661 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.213e-05/0.4047, allocations: 31.39 kB / 0.661 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000216/0.4049, allocations: 401.1 kB / 0.6614 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/0.4049, allocations: 34.56 kB / 0.6614 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.4049, allocations: 0 / 0.6614 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.000219/0.4052, allocations: 120 kB / 0.6615 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.863e-05/0.4052, allocations: 56.56 kB / 0.6616 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.218e-05/0.4052, allocations: 96.39 kB / 0.6617 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.756e-06/0.4052, allocations: 29.7 kB / 0.6617 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.062e-05/0.4052, allocations: 84.77 kB / 0.6618 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.4053, allocations: 20.36 kB / 0.6618 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/0.4053, allocations: 35.8 kB / 0.6618 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.761e-05/0.4054, allocations: 313.5 kB / 0.6621 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.756e-05/0.4054, allocations: 23.98 kB / 0.6622 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.349e-05/0.4054, allocations: 20.92 kB / 0.6622 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.209e-05/0.4055, allocations: 58.75 kB / 0.6622 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.4055, allocations: 0 / 0.6622 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001191/0.4057, allocations: 94.92 kB / 0.6623 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.4057, allocations: 10.44 kB / 0.6623 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.289e-06/0.4057, allocations: 1.438 kB / 0.6623 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.4057, allocations: 4.656 kB / 0.6623 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.428e-05/0.4058, allocations: 22.34 kB / 0.6624 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4058, allocations: 0.6094 kB / 0.6624 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.025e-05/0.4058, allocations: 9.531 kB / 0.6624 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.4059, allocations: 3.188 kB / 0.6624 GB, free: 7.215 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.808e-05/0.406, allocations: 121 kB / 0.6625 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.335e-05/0.406, allocations: 9.891 kB / 0.6625 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000182/0.4062, allocations: 127.4 kB / 0.6626 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.4062, allocations: 1.344 kB / 0.6626 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.4062, allocations: 0 / 0.6626 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.4062, allocations: 2.531 kB / 0.6626 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.089e-05/0.4063, allocations: 177.3 kB / 0.6628 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.4063, allocations: 0 / 0.6628 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.497e-05/0.4063, allocations: 18.81 kB / 0.6628 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.4064, allocations: 3.938 kB / 0.6628 GB, free: 6.801 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.4064, allocations: 10.2 kB / 0.6628 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.4064, allocations: 5.953 kB / 0.6628 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4064, allocations: 0 / 0.6628 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.4065, allocations: 124.9 kB / 0.6629 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.303e-05/0.4065, allocations: 87.06 kB / 0.663 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.4066, allocations: 1.594 kB / 0.663 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.655e-05/0.4066, allocations: 5.188 kB / 0.663 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.4066, allocations: 10.97 kB / 0.663 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.4066, allocations: 3.188 kB / 0.663 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.604e-05/0.4067, allocations: 76.78 kB / 0.6631 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4067, allocations: 4 kB / 0.6631 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002045/0.4069, allocations: 19.72 kB / 0.6631 GB, free: 6.508 MB / 0.4981 GB 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 (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.0004199/0.4073, allocations: 0.6667 MB / 0.6638 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001642/0.4075, allocations: 60.3 kB / 0.6638 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4075, allocations: 4 kB / 0.6639 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.012e-05/0.4075, allocations: 36.86 kB / 0.6639 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.4077, allocations: 7.656 kB / 0.6639 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000333/0.408, allocations: 182 kB / 0.6641 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001002/0.4081, allocations: 0.6823 MB / 0.6647 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.835e-05/0.4082, allocations: 34.84 kB / 0.6648 GB, free: 5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.387e-05/0.4083, allocations: 27.14 kB / 0.6648 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.4083, allocations: 0 / 0.6648 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0157/0.424, allocations: 1.562 MB / 0.6663 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.43/7.854, allocations: 16.34 kB / 0.6663 GB, free: 4.23 MB / 0.4981 GB (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/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)