Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.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.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",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.001488/0.001488, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7306/0.7306, allocations: 133.4 MB / 146.7 MB, free: 10.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.63/1.63, allocations: 221.3 MB / 400.4 MB, free: 5.867 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008788/0.0008789, allocations: 97.44 kB / 483.3 MB, free: 5.875 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.593e-05/3.605e-05, allocations: 5.156 kB / 0.5601 GB, free: 87.9 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1773, allocations: 82.3 MB / 0.6405 GB, free: 7.723 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7234/0.9007, allocations: 110.5 MB / 0.7485 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.901, allocations: 75.38 kB / 0.7485 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.001529/0.9025, allocations: 0.521 MB / 0.749 GB, free: 27.61 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9025, allocations: 0 / 0.749 GB, free: 27.61 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.9026, allocations: 5.062 kB / 0.7491 GB, free: 27.61 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002479/0.9028, allocations: 312.8 kB / 0.7494 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.9029, allocations: 7.688 kB / 0.7494 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.9029, allocations: 38.14 kB / 0.7494 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.252e-05/0.9029, allocations: 3.844 kB / 0.7494 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.791e-05/0.903, allocations: 163 kB / 0.7496 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.9031, allocations: 4 kB / 0.7496 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.9031, allocations: 0 / 0.7496 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.752e-05/0.9032, allocations: 40.19 kB / 0.7496 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-06/0.9032, allocations: 0 / 0.7496 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.9032, allocations: 3.562 kB / 0.7496 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.9032, allocations: 0 / 0.7496 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.981e-05/0.9032, allocations: 3.844 kB / 0.7496 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.9034, allocations: 153.1 kB / 0.7497 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 3.878e-05/0.9034, allocations: 26.2 kB / 0.7498 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.9034, allocations: 8.609 kB / 0.7498 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.9036, allocations: 79.78 kB / 0.7499 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.9036, allocations: 38.25 kB / 0.7499 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.9036, allocations: 0 / 0.7499 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2): time 0.0001184/0.9037, allocations: 40.03 kB / 0.7499 GB, free: 26.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.9038, allocations: 51.41 kB / 0.75 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.966e-05/0.9038, allocations: 89.03 kB / 0.7501 GB, free: 26.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.9039, allocations: 25.7 kB / 0.7501 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.957e-05/0.9039, allocations: 80.14 kB / 0.7502 GB, free: 26.33 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.9039, allocations: 3.906 kB / 0.7502 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-06/0.9039, allocations: 3.812 kB / 0.7502 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.904, allocations: 317 kB / 0.7505 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-06/0.9041, allocations: 3.938 kB / 0.7505 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.963e-06/0.9041, allocations: 3.625 kB / 0.7505 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.152e-05/0.9041, allocations: 4.062 kB / 0.7505 GB, free: 26 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.9041, allocations: 3.938 kB / 0.7505 GB, free: 26 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.176e-05/0.9042, allocations: 47.67 kB / 0.7505 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.9042, allocations: 7.625 kB / 0.7505 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.9042, allocations: 1.25 kB / 0.7505 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.9042, allocations: 0 / 0.7505 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.076e-05/0.9043, allocations: 6.266 kB / 0.7506 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.9043, allocations: 0 / 0.7506 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.206e-05/0.9043, allocations: 0 / 0.7506 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.608e-06/0.9043, allocations: 0 / 0.7506 GB, free: 25.96 MB / 0.5105 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 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.583e-05/0.9044, allocations: 108.9 kB / 0.7507 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.141e-06/0.9044, allocations: 3.953 kB / 0.7507 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.552e-05/0.9045, allocations: 47.3 kB / 0.7507 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.9045, allocations: 0 / 0.7507 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.9045, allocations: 1.312 kB / 0.7507 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.9045, allocations: 2.766 kB / 0.7507 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.813e-05/0.9046, allocations: 145.5 kB / 0.7508 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.9046, allocations: 0 / 0.7508 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.049e-05/0.9046, allocations: 6.391 kB / 0.7509 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.9046, allocations: 7.984 kB / 0.7509 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.9047, allocations: 0 / 0.7509 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.9047, allocations: 0 / 0.7509 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.9047, allocations: 3.125 kB / 0.7509 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.965e-05/0.9047, allocations: 63.61 kB / 0.7509 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.181e-05/0.9048, allocations: 84.8 kB / 0.751 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.9048, allocations: 7.828 kB / 0.751 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.9048, allocations: 7.125 kB / 0.751 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.578e-05/0.9048, allocations: 0 / 0.751 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.9048, allocations: 3.875 kB / 0.751 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 3.803e-05/0.9049, allocations: 75.28 kB / 0.7511 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9049, allocations: 0 / 0.7511 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000199/0.9051, allocations: 12.25 kB / 0.7511 GB, free: 25.36 MB / 0.5105 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 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003864/0.9055, allocations: 0.601 MB / 0.7517 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 5.801e-05/0.9056, allocations: 15.53 kB / 0.7517 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.9056, allocations: 0 / 0.7517 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.336e-05/0.9056, allocations: 6.797 kB / 0.7517 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.434e-05/0.9057, allocations: 3.953 kB / 0.7517 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002346/0.9059, allocations: 85.55 kB / 0.7518 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.9062, allocations: 0.6733 MB / 0.7525 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 1.472e-05/0.9062, allocations: 10.59 kB / 0.7525 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.9062, allocations: 7.438 kB / 0.7525 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of SimCode: time 4.51e-07/0.9062, allocations: 0 / 0.7525 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0123/0.9185, allocations: 0.8528 MB / 0.7533 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.9187, allocations: 143.6 kB / 0.7534 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.409/2.327, allocations: 3.5 kB / 0.7534 GB, free: 23.57 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)