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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8314/0.8314, allocations: 133.6 MB / 141.6 MB, free: 2.871 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.722/1.722, allocations: 221.5 MB / 395.5 MB, free: 10.78 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 106.5 kB / 478.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 4.195e-05/4.21e-05, allocations: 8 kB / 0.5536 GB, free: 8.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4639/0.464, allocations: 82.31 MB / 0.6339 GB, free: 40.8 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1401/0.6042, allocations: 109.9 MB / 0.7413 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.6045, allocations: 79.94 kB / 0.7413 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001829/0.6063, allocations: 0.8183 MB / 0.7421 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.323e-06/0.6063, allocations: 0 / 0.7421 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.6064, allocations: 0 / 0.7421 GB, free: 11.89 MB / 0.5261 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.0002733/0.6066, allocations: 340.1 kB / 0.7425 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.6067, allocations: 8.031 kB / 0.7425 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.961e-05/0.6067, allocations: 4 kB / 0.7425 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.6068, allocations: 175 kB / 0.7426 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.6068, allocations: 0 / 0.7426 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.6069, allocations: 4 kB / 0.7426 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001643/0.607, allocations: 95.88 kB / 0.7427 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.412e-05/0.6071, allocations: 57.61 kB / 0.7428 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.6072, allocations: 0 / 0.7428 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.6072, allocations: 0 / 0.7428 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.6072, allocations: 4 kB / 0.7428 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.6073, allocations: 138.2 kB / 0.7429 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 9.247e-05/0.6074, allocations: 82.44 kB / 0.743 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.665e-05/0.6075, allocations: 20.86 kB / 0.743 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003011/0.6078, allocations: 405.5 kB / 0.7434 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.6078, allocations: 34.89 kB / 0.7434 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=11): time 1.012e-06/0.6078, allocations: 0 / 0.7434 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11): time 0.0003098/0.6082, allocations: 97.44 kB / 0.7435 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.6082, allocations: 59.39 kB / 0.7436 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.102e-05/0.6082, allocations: 89 kB / 0.7437 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.6083, allocations: 25.7 kB / 0.7437 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.175e-05/0.6083, allocations: 80.33 kB / 0.7438 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.099e-05/0.6083, allocations: 23.66 kB / 0.7438 GB, free: 9.906 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-06/0.6084, allocations: 0 / 0.7438 GB, free: 9.906 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.6085, allocations: 318.8 kB / 0.7441 GB, free: 9.586 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.223e-05/0.6085, allocations: 16 kB / 0.7441 GB, free: 9.57 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.863e-05/0.6085, allocations: 23.92 kB / 0.7441 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.6087, allocations: 19.98 kB / 0.7442 GB, free: 9.527 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.6087, allocations: 4 kB / 0.7442 GB, free: 9.523 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002166/0.6089, allocations: 93.59 kB / 0.7443 GB, free: 9.426 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.6089, allocations: 7.953 kB / 0.7443 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.609, allocations: 4 kB / 0.7443 GB, free: 9.414 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.609, allocations: 0 / 0.7443 GB, free: 9.414 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.774e-05/0.6091, allocations: 19.98 kB / 0.7443 GB, free: 9.395 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.6091, allocations: 3.938 kB / 0.7443 GB, free: 9.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.924e-05/0.6091, allocations: 3.906 kB / 0.7443 GB, free: 9.387 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.6091, allocations: 4 kB / 0.7443 GB, free: 9.383 MB / 0.5261 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 (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 () * 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 8.444e-05/0.6092, allocations: 112.9 kB / 0.7444 GB, free: 9.266 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002162/0.6094, allocations: 93.59 kB / 0.7445 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.415e-05/0.6095, allocations: 11.86 kB / 0.7445 GB, free: 9.156 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002982/0.6098, allocations: 118.2 kB / 0.7446 GB, free: 9.035 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.6098, allocations: 3.938 kB / 0.7446 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.6098, allocations: 0 / 0.7446 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.6098, allocations: 0 / 0.7446 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.6099, allocations: 158.1 kB / 0.7448 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6099, allocations: 0 / 0.7448 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.887e-05/0.61, allocations: 19.98 kB / 0.7448 GB, free: 8.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.61, allocations: 3.953 kB / 0.7448 GB, free: 8.816 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.61, allocations: 0 / 0.7448 GB, free: 8.816 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.61, allocations: 0 / 0.7448 GB, free: 8.816 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.61, allocations: 4 kB / 0.7448 GB, free: 8.812 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002392/0.6103, allocations: 114.1 kB / 0.7449 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.754e-05/0.6103, allocations: 89 kB / 0.745 GB, free: 8.578 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.6104, allocations: 7.953 kB / 0.745 GB, free: 8.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.538e-05/0.6104, allocations: 0 / 0.745 GB, free: 8.57 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.993e-05/0.6104, allocations: 11.92 kB / 0.745 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.6104, allocations: 4 kB / 0.745 GB, free: 8.555 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 2.92e-05/0.6105, allocations: 79.28 kB / 0.7451 GB, free: 8.477 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6105, allocations: 0 / 0.7451 GB, free: 8.477 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001839/0.6107, allocations: 19.94 kB / 0.7451 GB, free: 8.457 MB / 0.5261 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 () * 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.0006018/0.6113, allocations: 0.6632 MB / 0.7458 GB, free: 7.762 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001167/0.6114, allocations: 55.92 kB / 0.7458 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.6114, allocations: 0 / 0.7458 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 5.057e-05/0.6115, allocations: 31.92 kB / 0.7458 GB, free: 7.676 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.385e-05/0.6116, allocations: 3.953 kB / 0.7458 GB, free: 7.672 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003128/0.6119, allocations: 141.5 kB / 0.746 GB, free: 7.496 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.6121, allocations: 0.6846 MB / 0.7467 GB, free: 6.785 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.74e-05/0.6122, allocations: 35.94 kB / 0.7467 GB, free: 6.75 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.6123, allocations: 15.44 kB / 0.7467 GB, free: 6.738 MB / 0.5261 GB Notification: Performance of SimCode: time 2.51e-07/0.6123, allocations: 0 / 0.7467 GB, free: 6.738 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.6328, allocations: 1.032 MB / 0.7477 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002117/0.633, allocations: 135.4 kB / 0.7478 GB, free: 5.523 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.492/2.125, allocations: 0 / 0.7478 GB, free: 5.523 MB / 0.5261 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/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)