Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_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.001469/0.00147, allocations: 175.2 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.8532/0.8532, 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.688/1.688, allocations: 221.3 MB / 400.4 MB, free: 5.797 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.0008828/0.0008827, allocations: 92.83 kB / 483.3 MB, free: 5.805 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.64e-05/3.642e-05, allocations: 5.594 kB / 0.5601 GB, free: 87.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1607, allocations: 82.32 MB / 0.6405 GB, free: 7.699 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6706/0.8313, allocations: 110.5 MB / 0.7485 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.8316, allocations: 72.06 kB / 0.7485 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.001489/0.8331, allocations: 0.5229 MB / 0.7491 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8331, allocations: 0 / 0.7491 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.8332, allocations: 0 / 0.7491 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002596/0.8334, allocations: 312.6 kB / 0.7494 GB, free: 27.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.8335, allocations: 11.59 kB / 0.7494 GB, free: 27.39 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.787e-05/0.8335, allocations: 36.77 kB / 0.7494 GB, free: 27.35 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.053e-05/0.8336, allocations: 3.938 kB / 0.7494 GB, free: 27.35 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.773e-05/0.8336, allocations: 163 kB / 0.7496 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.8337, allocations: 0 / 0.7496 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.8337, allocations: 3.812 kB / 0.7496 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.622e-05/0.8338, allocations: 43.2 kB / 0.7496 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.8338, allocations: 0 / 0.7496 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.8338, allocations: 0 / 0.7496 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.8338, allocations: 0 / 0.7496 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.628e-05/0.8338, allocations: 3.875 kB / 0.7496 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.834, allocations: 156 kB / 0.7498 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 4.372e-05/0.834, allocations: 25.55 kB / 0.7498 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.523e-05/0.8341, allocations: 4.859 kB / 0.7498 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.8342, allocations: 88.05 kB / 0.7499 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.8342, allocations: 34.5 kB / 0.7499 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.8343, allocations: 0 / 0.7499 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2): time 0.0001216/0.8344, allocations: 39.36 kB / 0.7499 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.8344, allocations: 51.41 kB / 0.75 GB, free: 26.65 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.378e-05/0.8345, allocations: 85 kB / 0.7501 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.8345, allocations: 29.55 kB / 0.7501 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.935e-05/0.8345, allocations: 84.17 kB / 0.7502 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.8345, allocations: 3.906 kB / 0.7502 GB, free: 26.44 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.8346, allocations: 3 kB / 0.7502 GB, free: 26.44 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.8347, allocations: 310.8 kB / 0.7505 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.048e-05/0.8347, allocations: 6.891 kB / 0.7505 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.111e-06/0.8347, allocations: 0 / 0.7505 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.914e-05/0.8347, allocations: 3.875 kB / 0.7505 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.8347, allocations: 0 / 0.7505 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.931e-05/0.8348, allocations: 51.48 kB / 0.7505 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.8348, allocations: 8.594 kB / 0.7505 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.8348, allocations: 0 / 0.7505 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.8349, allocations: 3.969 kB / 0.7506 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.481e-05/0.8349, allocations: 0 / 0.7506 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.835, allocations: 3.938 kB / 0.7506 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.299e-05/0.835, allocations: 3.906 kB / 0.7506 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-06/0.835, allocations: 0 / 0.7506 GB, free: 26.08 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.459e-05/0.835, allocations: 101 kB / 0.7507 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-06/0.8351, allocations: 8.797 kB / 0.7507 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.664e-05/0.8352, allocations: 49.2 kB / 0.7507 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.8352, allocations: 0 / 0.7507 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.8352, allocations: 3.969 kB / 0.7507 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.8352, allocations: 0 / 0.7507 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.015e-05/0.8353, allocations: 149.4 kB / 0.7509 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.8353, allocations: 0 / 0.7509 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.03e-05/0.8353, allocations: 3.875 kB / 0.7509 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.8353, allocations: 3.953 kB / 0.7509 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.159e-06/0.8353, allocations: 0 / 0.7509 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.8353, allocations: 4.031 kB / 0.7509 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.8353, allocations: 3.812 kB / 0.7509 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.985e-05/0.8354, allocations: 58.91 kB / 0.7509 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.52e-05/0.8354, allocations: 83.31 kB / 0.751 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.8355, allocations: 11.52 kB / 0.751 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.093e-05/0.8355, allocations: 0 / 0.751 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.44e-05/0.8355, allocations: 3.844 kB / 0.751 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.8355, allocations: 32 / 0.751 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 3.927e-05/0.8356, allocations: 79.28 kB / 0.7511 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8356, allocations: 0 / 0.7511 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001942/0.8358, allocations: 18.53 kB / 0.7511 GB, free: 25.48 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.000389/0.8362, allocations: 0.5995 MB / 0.7517 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 6.445e-05/0.8362, allocations: 15.66 kB / 0.7517 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.8362, allocations: 0 / 0.7517 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.263e-05/0.8363, allocations: 3.844 kB / 0.7517 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.357e-05/0.8364, allocations: 3.953 kB / 0.7517 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002459/0.8366, allocations: 80.95 kB / 0.7518 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.8369, allocations: 0.6755 MB / 0.7525 GB, free: 24.08 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 1.741e-05/0.8369, allocations: 6.844 kB / 0.7525 GB, free: 24.08 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.939e-05/0.8369, allocations: 10.44 kB / 0.7525 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of SimCode: time 2.3e-07/0.8369, allocations: 4.125 kB / 0.7525 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01218/0.8491, allocations: 0.8613 MB / 0.7533 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001676/0.8493, allocations: 142.3 kB / 0.7535 GB, free: 23.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.517/2.366, allocations: 0 / 0.7535 GB, free: 23.7 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)