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.001416/0.001416, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7664/0.7664, allocations: 132.2 MB / 422.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 64.62 kB / 0.5019 GB, free: 3.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3586, allocations: 80.2 MB / 0.5802 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial): time 0.00169/0.3603, allocations: 0.5835 MB / 0.5808 GB, free: 4.211 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002411/0.3606, allocations: 55.12 kB / 0.5808 GB, free: 4.176 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.784e-05/0.3606, allocations: 0.8125 kB / 0.5808 GB, free: 4.176 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.515e-05/0.3606, allocations: 0.5625 kB / 0.5808 GB, free: 4.176 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.919e-06/0.3606, allocations: 0 / 0.5808 GB, free: 4.176 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.3609, allocations: 18 kB / 0.5808 GB, free: 4.168 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.155e-05/0.361, allocations: 33.95 kB / 0.5809 GB, free: 4.156 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.406e-05/0.361, allocations: 6.141 kB / 0.5809 GB, free: 4.152 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.915e-05/0.3611, allocations: 11.81 kB / 0.5809 GB, free: 4.148 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.867e-05/0.3611, allocations: 16.34 kB / 0.5809 GB, free: 4.141 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/0.3611, allocations: 1.375 kB / 0.5809 GB, free: 4.141 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.284e-05/0.3612, allocations: 23.02 kB / 0.5809 GB, free: 4.129 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.615e-05/0.3612, allocations: 11.59 kB / 0.5809 GB, free: 4.125 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.925e-05/0.3613, allocations: 12.73 kB / 0.5809 GB, free: 4.117 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.112e-05/0.3614, allocations: 28.97 kB / 0.581 GB, free: 4.109 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3614, allocations: 4 kB / 0.581 GB, free: 4.105 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.3614, allocations: 0 / 0.581 GB, free: 4.105 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.3614, allocations: 1.125 kB / 0.581 GB, free: 4.105 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.0002462/0.3616, allocations: 338.3 kB / 0.5813 GB, free: 3.742 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.3617, allocations: 9.281 kB / 0.5813 GB, free: 3.742 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.737e-05/0.3617, allocations: 37.97 kB / 0.5813 GB, free: 3.699 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.477e-05/0.3617, allocations: 3.125 kB / 0.5814 GB, free: 3.699 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.547e-05/0.3618, allocations: 165.1 kB / 0.5815 GB, free: 3.504 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-06/0.3618, allocations: 6.438 kB / 0.5815 GB, free: 3.5 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.3618, allocations: 7.938 kB / 0.5815 GB, free: 3.496 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.362, allocations: 72.31 kB / 0.5816 GB, free: 3.449 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.362, allocations: 3.938 kB / 0.5816 GB, free: 3.445 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-06/0.362, allocations: 0.8125 kB / 0.5816 GB, free: 3.445 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.362, allocations: 9.766 kB / 0.5816 GB, free: 3.438 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.3621, allocations: 101.3 kB / 0.5817 GB, free: 3.426 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001218/0.3623, allocations: 175.6 kB / 0.5819 GB, free: 3.223 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/0.3624, allocations: 71.8 kB / 0.5819 GB, free: 3.188 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.665e-05/0.3624, allocations: 32.02 kB / 0.582 GB, free: 3.172 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002115/0.3627, allocations: 407.3 kB / 0.5824 GB, free: 2.695 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.373e-05/0.3627, allocations: 32.53 kB / 0.5824 GB, free: 2.656 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.3627, allocations: 4 kB / 0.5824 GB, free: 2.652 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002392/0.3629, allocations: 118.9 kB / 0.5825 GB, free: 2.594 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.869e-05/0.363, allocations: 54.28 kB / 0.5826 GB, free: 2.531 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.781e-05/0.363, allocations: 90.66 kB / 0.5826 GB, free: 2.434 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.755e-06/0.363, allocations: 30.61 kB / 0.5827 GB, free: 2.398 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.536e-06/0.363, allocations: 81.08 kB / 0.5828 GB, free: 2.316 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.363, allocations: 20.78 kB / 0.5828 GB, free: 2.301 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.3631, allocations: 27.97 kB / 0.5828 GB, free: 2.281 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.349e-05/0.3631, allocations: 322.1 kB / 0.5831 GB, free: 1.961 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.183e-05/0.3632, allocations: 23.22 kB / 0.5831 GB, free: 1.953 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.321e-05/0.3632, allocations: 25.28 kB / 0.5832 GB, free: 1.945 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.962e-05/0.3633, allocations: 64.98 kB / 0.5832 GB, free: 1.918 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.3633, allocations: 0 / 0.5832 GB, free: 1.918 MB / 430.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001281/0.3635, allocations: 86.84 kB / 0.5833 GB, free: 1.875 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.3635, allocations: 8.812 kB / 0.5833 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3635, allocations: 0.7969 kB / 0.5833 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.3635, allocations: 0.9375 kB / 0.5833 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.569e-05/0.3636, allocations: 21.92 kB / 0.5833 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3636, allocations: 5.312 kB / 0.5833 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.205e-05/0.3637, allocations: 13.59 kB / 0.5833 GB, free: 1.852 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.3637, allocations: 7.453 kB / 0.5834 GB, free: 1.848 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 (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 0.0001122/0.3638, allocations: 120.5 kB / 0.5835 GB, free: 1.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.3638, allocations: 6.688 kB / 0.5835 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001988/0.364, allocations: 126.5 kB / 0.5836 GB, free: 1.656 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.364, allocations: 2.438 kB / 0.5836 GB, free: 1.656 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.364, allocations: 0 / 0.5836 GB, free: 1.656 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.3641, allocations: 0.6094 kB / 0.5836 GB, free: 1.656 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.843e-05/0.3641, allocations: 177.4 kB / 0.5838 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3641, allocations: 1.188 kB / 0.5838 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.887e-05/0.3642, allocations: 18.2 kB / 0.5838 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3642, allocations: 4.594 kB / 0.5838 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.3642, allocations: 3.156 kB / 0.5838 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3642, allocations: 0 / 0.5838 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3642, allocations: 1.469 kB / 0.5838 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001339/0.3644, allocations: 135.7 kB / 0.5839 GB, free: 1.352 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.391e-05/0.3644, allocations: 82.81 kB / 0.584 GB, free: 1.254 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.3644, allocations: 2.078 kB / 0.584 GB, free: 1.254 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.599e-05/0.3644, allocations: 1.281 kB / 0.584 GB, free: 1.254 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.507e-05/0.3645, allocations: 11.75 kB / 0.584 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.3645, allocations: 3.875 kB / 0.584 GB, free: 1.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.428e-06/0.3645, allocations: 75.28 kB / 0.5841 GB, free: 1.176 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3645, allocations: 4 kB / 0.5841 GB, free: 1.172 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002018/0.3647, allocations: 19.41 kB / 0.5841 GB, free: 1.164 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 (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.0003246/0.3651, allocations: 0.6718 MB / 0.5848 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.3652, allocations: 64 kB / 0.5848 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3652, allocations: 4 kB / 0.5848 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.191e-05/0.3653, allocations: 39.3 kB / 0.5849 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.3654, allocations: 3.109 kB / 0.5849 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003172/0.3657, allocations: 183.5 kB / 0.585 GB, free: 360 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001759/0.3659, allocations: 0.6864 MB / 0.5857 GB, free: 15.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.907e-05/0.366, allocations: 42.25 kB / 0.5858 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.166e-05/0.3661, allocations: 18.97 kB / 0.5858 GB, free: 15.63 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3661, allocations: 0 / 0.5858 GB, free: 15.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01559/0.3817, allocations: 1.517 MB / 0.5873 GB, free: 15.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.282/7.664, allocations: 3.812 kB / 0.5873 GB, free: 15.27 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 IDEAS_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)