Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_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.004531/0.004531, allocations: 96.62 kB / 15.73 MB, free: 6.043 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.001294/0.001294, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9463/0.9463, allocations: 135.6 MB / 426.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 67.89 kB / 0.5858 GB, free: 3.168 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.3944, allocations: 81.02 MB / 0.6649 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002057/0.3965, allocations: 1.523 MB / 0.6664 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003039/0.3968, allocations: 134.3 kB / 0.6665 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.754e-05/0.3969, allocations: 1.625 kB / 0.6665 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.456e-05/0.3969, allocations: 7.938 kB / 0.6665 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.868e-05/0.3969, allocations: 11.86 kB / 0.6665 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.3972, allocations: 24.38 kB / 0.6665 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.763e-05/0.3973, allocations: 34.36 kB / 0.6666 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.317e-05/0.3974, allocations: 15.02 kB / 0.6666 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.703e-05/0.3974, allocations: 20.81 kB / 0.6666 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.059e-05/0.3974, allocations: 21.17 kB / 0.6666 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.3975, allocations: 7 kB / 0.6666 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.21e-05/0.3975, allocations: 22.7 kB / 0.6667 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.333e-05/0.3976, allocations: 5.469 kB / 0.6667 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.501e-05/0.3976, allocations: 20.02 kB / 0.6667 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.3977, allocations: 46.11 kB / 0.6667 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3977, allocations: 1.438 kB / 0.6667 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3977, allocations: 0 / 0.6667 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.3977, allocations: 0 / 0.6667 GB, free: 5.562 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003588/0.3981, allocations: 354.1 kB / 0.6671 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.3981, allocations: 13.22 kB / 0.6671 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.191e-05/0.3982, allocations: 31.97 kB / 0.6671 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.488e-05/0.3982, allocations: 7.547 kB / 0.6671 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.603e-05/0.3983, allocations: 162.9 kB / 0.6673 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.3983, allocations: 5.688 kB / 0.6673 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.3983, allocations: 5.719 kB / 0.6673 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.3985, allocations: 72.39 kB / 0.6673 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.3985, allocations: 3.938 kB / 0.6674 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.3985, allocations: 0 / 0.6674 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3985, allocations: 5.344 kB / 0.6674 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.3987, allocations: 44.86 kB / 0.6674 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003024/0.399, allocations: 285.5 kB / 0.6677 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.3994, allocations: 59.02 kB / 0.6677 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.575e-05/0.3995, allocations: 32.14 kB / 0.6678 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001631/0.3996, allocations: 396.2 kB / 0.6681 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.036e-05/0.3996, allocations: 31.97 kB / 0.6682 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.3997, allocations: 0 / 0.6682 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003575/0.4, allocations: 94.44 kB / 0.6683 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.612e-05/0.4, allocations: 56.62 kB / 0.6683 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.325e-05/0.4001, allocations: 111.9 kB / 0.6684 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/0.4001, allocations: 25.7 kB / 0.6684 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.343e-05/0.4001, allocations: 89.53 kB / 0.6685 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.073e-05/0.4002, allocations: 5.266 kB / 0.6685 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.4002, allocations: 21.83 kB / 0.6686 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.626e-05/0.4002, allocations: 316.3 kB / 0.6689 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.252e-05/0.4003, allocations: 18.02 kB / 0.6689 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.327e-05/0.4004, allocations: 26.72 kB / 0.6689 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.4006, allocations: 51.47 kB / 0.6689 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4006, allocations: 4 kB / 0.669 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002057/0.4008, allocations: 68.97 kB / 0.669 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.4008, allocations: 4.906 kB / 0.669 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.4008, allocations: 1.281 kB / 0.669 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.4009, allocations: 7.938 kB / 0.669 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.001e-05/0.4009, allocations: 15.92 kB / 0.669 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.401, allocations: 0 / 0.669 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.819e-05/0.401, allocations: 8.391 kB / 0.6691 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.401, allocations: 1.344 kB / 0.6691 GB, free: 3.129 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: 2 (falFac.y,rea2Int.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.551e-05/0.4011, allocations: 112.4 kB / 0.6692 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.4011, allocations: 5.234 kB / 0.6692 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.4014, allocations: 92.5 kB / 0.6693 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.4014, allocations: 0 / 0.6693 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4014, allocations: 1.562 kB / 0.6693 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.4014, allocations: 4.031 kB / 0.6693 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.4015, allocations: 168.7 kB / 0.6694 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.4015, allocations: 0 / 0.6694 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.57e-05/0.4016, allocations: 15.77 kB / 0.6694 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4016, allocations: 1.25 kB / 0.6694 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.4016, allocations: 3.984 kB / 0.6694 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.4016, allocations: 5.062 kB / 0.6694 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4016, allocations: 0 / 0.6694 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002231/0.4018, allocations: 168.3 kB / 0.6696 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.689e-05/0.4019, allocations: 85 kB / 0.6697 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.4019, allocations: 6.016 kB / 0.6697 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.699e-05/0.402, allocations: 6.844 kB / 0.6697 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.855e-05/0.402, allocations: 10.67 kB / 0.6697 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.4021, allocations: 1.188 kB / 0.6697 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.493e-05/0.4021, allocations: 85.5 kB / 0.6698 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4021, allocations: 0 / 0.6698 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002287/0.4023, allocations: 9.75 kB / 0.6698 GB, free: 2.359 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: 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 (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.0004005/0.4027, allocations: 0.7213 MB / 0.6705 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002233/0.403, allocations: 41.95 kB / 0.6705 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.403, allocations: 0 / 0.6705 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.887e-05/0.4031, allocations: 26.14 kB / 0.6706 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.4033, allocations: 9.281 kB / 0.6706 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.4045, allocations: 1.29 MB / 0.6718 GB, free: 384 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.4047, allocations: 0.6801 MB / 0.6725 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.182e-05/0.4047, allocations: 6.562 kB / 0.6725 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.4048, allocations: 23.58 kB / 0.6725 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of SimCode: time 2.7e-07/0.4048, allocations: 0 / 0.6725 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1796/0.5844, allocations: 1.687 MB / 0.6742 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.304/9.888, allocations: 3.406 kB / 0.6742 GB, free: 14.71 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)