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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001836/0.001837, allocations: 178.4 kB / 7.65 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.8374/0.8374, allocations: 133.6 MB / 141.6 MB, free: 2.902 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.554/1.554, allocations: 221.5 MB / 395.4 MB, free: 10.75 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.0008664/0.0008665, allocations: 99.28 kB / 478.2 MB, free: 1.301 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.584e-05/2.587e-05, allocations: 4 kB / 0.5535 GB, free: 8.938 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.502/0.5021, allocations: 82.3 MB / 0.6339 GB, free: 40.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1689/0.671, allocations: 111 MB / 0.7423 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.6714, allocations: 75.95 kB / 0.7424 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003434/0.6748, allocations: 1.052 MB / 0.7434 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.975e-06/0.6749, allocations: 0 / 0.7434 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.6749, allocations: 7.938 kB / 0.7434 GB, free: 10.55 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004217/0.6753, allocations: 354.4 kB / 0.7437 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.6754, allocations: 8.031 kB / 0.7438 GB, free: 10.15 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.6754, allocations: 4 kB / 0.7438 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.6756, allocations: 170.9 kB / 0.7439 GB, free: 9.938 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.6756, allocations: 4 kB / 0.7439 GB, free: 9.934 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.6756, allocations: 3.984 kB / 0.7439 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.744e-05/0.6757, allocations: 20 kB / 0.7439 GB, free: 9.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.6759, allocations: 49.67 kB / 0.744 GB, free: 9.855 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.6759, allocations: 0 / 0.744 GB, free: 9.855 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.6759, allocations: 4 kB / 0.744 GB, free: 9.852 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.6759, allocations: 0 / 0.744 GB, free: 9.852 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.6763, allocations: 261.2 kB / 0.7442 GB, free: 9.559 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.6766, allocations: 42.56 kB / 0.7443 GB, free: 9.508 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.494e-05/0.6766, allocations: 16.92 kB / 0.7443 GB, free: 9.488 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003342/0.677, allocations: 401.6 kB / 0.7447 GB, free: 9.004 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.677, allocations: 30.56 kB / 0.7447 GB, free: 8.965 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.677, allocations: 0 / 0.7447 GB, free: 8.965 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.000331/0.6774, allocations: 53.69 kB / 0.7448 GB, free: 8.906 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.6774, allocations: 55.34 kB / 0.7448 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.7e-05/0.6775, allocations: 93 kB / 0.7449 GB, free: 8.742 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.6775, allocations: 29.7 kB / 0.7449 GB, free: 8.707 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/0.6776, allocations: 88.05 kB / 0.745 GB, free: 8.617 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.6776, allocations: 11.83 kB / 0.745 GB, free: 8.605 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.359e-06/0.6776, allocations: 0 / 0.745 GB, free: 8.605 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.6777, allocations: 318.8 kB / 0.7453 GB, free: 8.285 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.072e-05/0.6778, allocations: 8 kB / 0.7453 GB, free: 8.277 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.6e-05/0.6778, allocations: 4 kB / 0.7453 GB, free: 8.273 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.204e-05/0.6778, allocations: 8 kB / 0.7454 GB, free: 8.266 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.6778, allocations: 4 kB / 0.7454 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.345e-05/0.6779, allocations: 49.69 kB / 0.7454 GB, free: 8.207 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.678, allocations: 4 kB / 0.7454 GB, free: 8.203 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.678, allocations: 3.984 kB / 0.7454 GB, free: 8.199 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.678, allocations: 0 / 0.7454 GB, free: 8.199 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.88e-05/0.6781, allocations: 12 kB / 0.7454 GB, free: 8.188 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.6781, allocations: 3.984 kB / 0.7454 GB, free: 8.184 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.436e-05/0.6782, allocations: 11.94 kB / 0.7454 GB, free: 8.172 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.6782, allocations: 0 / 0.7454 GB, free: 8.172 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: 2 (falFac.y,falFac.k) * Number of discrete 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 7.997e-05/0.6783, allocations: 108.9 kB / 0.7455 GB, free: 8.059 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001155/0.6784, allocations: 57.59 kB / 0.7456 GB, free: 7.996 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.107e-05/0.6784, allocations: 0 / 0.7456 GB, free: 7.996 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/0.6786, allocations: 57.8 kB / 0.7457 GB, free: 7.93 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.6786, allocations: 8.219 kB / 0.7457 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.6786, allocations: 0 / 0.7457 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.6786, allocations: 3.938 kB / 0.7457 GB, free: 7.918 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.6788, allocations: 146.2 kB / 0.7458 GB, free: 7.738 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.6788, allocations: 4 kB / 0.7458 GB, free: 7.734 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.35e-05/0.6789, allocations: 15.98 kB / 0.7458 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.6789, allocations: 0 / 0.7458 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.6789, allocations: 0 / 0.7458 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.6789, allocations: 0 / 0.7458 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.6789, allocations: 4 kB / 0.7458 GB, free: 7.715 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001439/0.6791, allocations: 147.5 kB / 0.746 GB, free: 7.555 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.6791, allocations: 88.95 kB / 0.7461 GB, free: 7.449 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.6792, allocations: 4 kB / 0.7461 GB, free: 7.445 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.619e-05/0.6793, allocations: 4 kB / 0.7461 GB, free: 7.441 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.6793, allocations: 8.234 kB / 0.7461 GB, free: 7.434 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.6793, allocations: 0 / 0.7461 GB, free: 7.434 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.35e-05/0.6794, allocations: 91.27 kB / 0.7462 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6794, allocations: 0 / 0.7462 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002236/0.6796, allocations: 19.94 kB / 0.7462 GB, free: 7.324 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: 2 (falFac.y,falFac.k) * Number of discrete 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.0005011/0.6801, allocations: 0.689 MB / 0.7468 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 9.874e-05/0.6802, allocations: 20 kB / 0.7469 GB, free: 6.59 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.6802, allocations: 0 / 0.7469 GB, free: 6.59 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.162e-05/0.6803, allocations: 15.94 kB / 0.7469 GB, free: 6.574 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.6805, allocations: 5.875 kB / 0.7469 GB, free: 6.57 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003827/0.6809, allocations: 113.5 kB / 0.747 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.6812, allocations: 0.6846 MB / 0.7477 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 3.677e-05/0.6812, allocations: 4 kB / 0.7477 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.528e-05/0.6813, allocations: 11.44 kB / 0.7477 GB, free: 5.699 MB / 0.5261 GB Notification: Performance of SimCode: time 2.6e-07/0.6813, allocations: 0 / 0.7477 GB, free: 5.699 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/0.7076, allocations: 1.016 MB / 0.7487 GB, free: 4.691 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000271/0.708, allocations: 129.6 kB / 0.7488 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.556/2.264, allocations: 0 / 0.7488 GB, free: 4.504 MB / 0.5261 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/linux/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)