Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.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.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_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.001288/0.001288, allocations: 174.5 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.7057/0.7057, 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.549/1.549, allocations: 221.3 MB / 400.4 MB, free: 5.816 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.0008785/0.0008787, allocations: 97.84 kB / 483.3 MB, free: 5.852 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.825e-05/3.834e-05, allocations: 4.375 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1393, allocations: 82.31 MB / 0.6405 GB, free: 7.73 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5639/0.7032, allocations: 111.5 MB / 0.7494 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.7035, allocations: 70.61 kB / 0.7495 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.002978/0.7065, allocations: 0.9494 MB / 0.7504 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7065, allocations: 0 / 0.7504 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.7065, allocations: 0 / 0.7504 GB, free: 27.73 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003724/0.7069, allocations: 348.5 kB / 0.7507 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.7069, allocations: 11.62 kB / 0.7507 GB, free: 27.37 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.786e-05/0.707, allocations: 37.78 kB / 0.7508 GB, free: 27.33 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.503e-05/0.707, allocations: 11.53 kB / 0.7508 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.915e-05/0.7071, allocations: 166.8 kB / 0.751 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.7072, allocations: 0 / 0.751 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.7072, allocations: 0 / 0.751 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.7073, allocations: 47.62 kB / 0.751 GB, free: 27.09 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.7073, allocations: 0 / 0.751 GB, free: 27.09 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.7073, allocations: 3.188 kB / 0.751 GB, free: 27.09 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.7073, allocations: 0 / 0.751 GB, free: 27.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.461e-05/0.7074, allocations: 15.62 kB / 0.751 GB, free: 27.09 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004245/0.7078, allocations: 283.2 kB / 0.7513 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000221/0.708, allocations: 47.7 kB / 0.7513 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.988e-05/0.7081, allocations: 12.23 kB / 0.7513 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.7082, allocations: 88.78 kB / 0.7514 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.7082, allocations: 33.7 kB / 0.7515 GB, free: 26.65 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 2.104e-06/0.7082, allocations: 0 / 0.7515 GB, free: 26.65 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001623/0.7084, allocations: 59.2 kB / 0.7515 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.7085, allocations: 51.41 kB / 0.7516 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.259e-05/0.7085, allocations: 92.41 kB / 0.7517 GB, free: 26.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.7086, allocations: 25.7 kB / 0.7517 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.626e-05/0.7086, allocations: 87.27 kB / 0.7518 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.7086, allocations: 15.66 kB / 0.7518 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-06/0.7086, allocations: 0 / 0.7518 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.7087, allocations: 314.8 kB / 0.7521 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.097e-05/0.7088, allocations: 7.312 kB / 0.7521 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.73e-05/0.7088, allocations: 11.03 kB / 0.7521 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.468e-05/0.7088, allocations: 11.34 kB / 0.7521 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.7088, allocations: 0 / 0.7521 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.473e-05/0.7089, allocations: 58.73 kB / 0.7522 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.7089, allocations: 3.75 kB / 0.7522 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.709, allocations: 0 / 0.7522 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.709, allocations: 4 kB / 0.7522 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-05/0.7091, allocations: 14.17 kB / 0.7522 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.7091, allocations: 0 / 0.7522 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.901e-05/0.7091, allocations: 10.88 kB / 0.7522 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.7092, allocations: 0 / 0.7522 GB, free: 25.97 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.y,fac.u) * 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.212e-05/0.7092, allocations: 108.3 kB / 0.7523 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.902e-05/0.7093, allocations: 17.33 kB / 0.7523 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.7094, allocations: 58.11 kB / 0.7524 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.7094, allocations: 0 / 0.7524 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.7094, allocations: 0 / 0.7524 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.7094, allocations: 3.875 kB / 0.7524 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.7096, allocations: 163.2 kB / 0.7525 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.7096, allocations: 0 / 0.7525 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.782e-05/0.7097, allocations: 14.66 kB / 0.7525 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.634e-06/0.7097, allocations: 0 / 0.7525 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.7097, allocations: 7.281 kB / 0.7525 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.7097, allocations: 0 / 0.7525 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.7097, allocations: 0 / 0.7525 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001305/0.7099, allocations: 149 kB / 0.7527 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.285e-05/0.7099, allocations: 80.95 kB / 0.7528 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.7099, allocations: 3.938 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.721e-05/0.71, allocations: 7.531 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.7101, allocations: 14.36 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.7101, allocations: 2.766 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 3.732e-05/0.7101, allocations: 79.16 kB / 0.7529 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7101, allocations: 0 / 0.7529 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002136/0.7103, allocations: 23.25 kB / 0.7529 GB, free: 25.3 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.y,fac.u) * 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.0004415/0.7108, allocations: 0.6869 MB / 0.7536 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 8.555e-05/0.7109, allocations: 25.84 kB / 0.7536 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.7109, allocations: 0 / 0.7536 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 3.021e-05/0.7109, allocations: 14.05 kB / 0.7536 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001489/0.7111, allocations: 1.094 kB / 0.7536 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000311/0.7114, allocations: 107.4 kB / 0.7537 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.7117, allocations: 0.6784 MB / 0.7544 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 3.441e-05/0.7117, allocations: 8.312 kB / 0.7544 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.702e-05/0.7117, allocations: 21.56 kB / 0.7544 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/0.7118, allocations: 0 / 0.7544 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0112/0.723, allocations: 1.263 MB / 0.7556 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.7232, allocations: 144.5 kB / 0.7558 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.427/2.15, allocations: 0 / 0.7558 GB, free: 23.41 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)