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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001196, allocations: 91.45 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008311/0.008311, allocations: 172.4 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8657/0.8657, allocations: 135.3 MB / 426.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003117, allocations: 16.62 kB / 0.5077 GB, free: 4.648 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.127, allocations: 82.31 MB / 0.5881 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0005807/0.1276, allocations: 311.1 kB / 0.5884 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002938/0.128, allocations: 47.84 kB / 0.5884 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.979e-06/0.128, allocations: 4 kB / 0.5884 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.299e-05/0.128, allocations: 0 / 0.5884 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.328e-06/0.128, allocations: 0 / 0.5884 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.1282, allocations: 11.98 kB / 0.5884 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.119e-05/0.1282, allocations: 0 / 0.5884 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.603e-05/0.1283, allocations: 0 / 0.5884 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.265e-05/0.1283, allocations: 7.938 kB / 0.5885 GB, free: 2.133 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.264e-05/0.1283, allocations: 7.922 kB / 0.5885 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.036e-06/0.1283, allocations: 0 / 0.5885 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.709e-05/0.1284, allocations: 12 kB / 0.5885 GB, free: 2.113 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.1284, allocations: 3.984 kB / 0.5885 GB, free: 2.109 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.484e-05/0.1284, allocations: 29.7 kB / 0.5885 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.05e-05/0.1285, allocations: 4 kB / 0.5885 GB, free: 2.07 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1285, allocations: 0 / 0.5885 GB, free: 2.07 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1285, allocations: 4 kB / 0.5885 GB, free: 2.066 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.1285, allocations: 0 / 0.5885 GB, free: 2.066 MB / 494.1 MB 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.0002365/0.1288, allocations: 311.5 kB / 0.5888 GB, free: 1.711 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.1288, allocations: 12.09 kB / 0.5888 GB, free: 1.699 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.657e-05/0.1288, allocations: 30.75 kB / 0.5888 GB, free: 1.66 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.804e-05/0.1289, allocations: 0.9375 kB / 0.5888 GB, free: 1.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.445e-05/0.1289, allocations: 164.4 kB / 0.589 GB, free: 1.461 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-06/0.129, allocations: 384 / 0.589 GB, free: 1.461 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.129, allocations: 4.375 kB / 0.589 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.664e-05/0.1291, allocations: 38.19 kB / 0.589 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-06/0.1291, allocations: 3.938 kB / 0.589 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.1291, allocations: 0 / 0.589 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.902e-06/0.1291, allocations: 4 kB / 0.5891 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.489e-05/0.1291, allocations: 3.938 kB / 0.5891 GB, free: 1.402 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001215/0.1292, allocations: 149.7 kB / 0.5892 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.899e-05/0.1293, allocations: 26.61 kB / 0.5892 GB, free: 1.172 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.593e-05/0.1293, allocations: 8.922 kB / 0.5892 GB, free: 1.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000142/0.1295, allocations: 85.08 kB / 0.5893 GB, free: 1.059 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.1295, allocations: 34.56 kB / 0.5893 GB, free: 1.016 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.1295, allocations: 3.938 kB / 0.5894 GB, free: 1.012 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001125/0.1296, allocations: 45.58 kB / 0.5894 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.1297, allocations: 59.53 kB / 0.5895 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.839e-05/0.1297, allocations: 93.77 kB / 0.5895 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.1297, allocations: 25.7 kB / 0.5896 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.445e-05/0.1297, allocations: 88.12 kB / 0.5897 GB, free: 0.668 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.1298, allocations: 4 kB / 0.5897 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.905e-05/0.1298, allocations: 9.719 kB / 0.5897 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.209e-05/0.1299, allocations: 310.8 kB / 0.59 GB, free: 344 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.878e-06/0.1299, allocations: 4 kB / 0.59 GB, free: 340 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-06/0.1299, allocations: 0 / 0.59 GB, free: 340 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.999e-05/0.1299, allocations: 16.92 kB / 0.59 GB, free: 320 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1299, allocations: 3.938 kB / 0.59 GB, free: 316 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.316e-05/0.13, allocations: 37.69 kB / 0.59 GB, free: 272 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.13, allocations: 8 kB / 0.59 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.13, allocations: 3.938 kB / 0.59 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.587e-06/0.13, allocations: 0 / 0.59 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.052e-05/0.1301, allocations: 8 kB / 0.59 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.1301, allocations: 0 / 0.59 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.438e-05/0.1301, allocations: 4.312 kB / 0.59 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-06/0.1301, allocations: 0 / 0.59 GB, free: 248 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (n,fac) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.223e-05/0.1302, allocations: 113.8 kB / 0.5902 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-06/0.1302, allocations: 4 kB / 0.5902 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.787e-05/0.1303, allocations: 52.64 kB / 0.5902 GB, free: 60 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.1303, allocations: 0 / 0.5902 GB, free: 60 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1303, allocations: 0 / 0.5902 GB, free: 60 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1303, allocations: 7.922 kB / 0.5902 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.331e-05/0.1304, allocations: 141.7 kB / 0.5903 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1304, allocations: 4.031 kB / 0.5904 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.894e-05/0.1305, allocations: 4 kB / 0.5904 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1305, allocations: 0 / 0.5904 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.1305, allocations: 7.938 kB / 0.5904 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1305, allocations: 3.984 kB / 0.5904 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1305, allocations: 0 / 0.5904 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.423e-05/0.1306, allocations: 61.08 kB / 0.5904 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.917e-05/0.1306, allocations: 89.03 kB / 0.5905 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.1306, allocations: 7.938 kB / 0.5905 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.1306, allocations: 0 / 0.5905 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.166e-05/0.1307, allocations: 4 kB / 0.5905 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.1307, allocations: 0 / 0.5905 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.087e-05/0.1307, allocations: 75.28 kB / 0.5906 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1307, allocations: 0 / 0.5906 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001825/0.1309, allocations: 7.938 kB / 0.5906 GB, free: 15.57 MB / 0.4981 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003352/0.1312, allocations: 0.6046 MB / 0.5912 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.56e-05/0.1313, allocations: 15.92 kB / 0.5912 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1313, allocations: 0 / 0.5912 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.395e-05/0.1313, allocations: 4 kB / 0.5912 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.1314, allocations: 4 kB / 0.5912 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002432/0.1317, allocations: 120.5 kB / 0.5913 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.1319, allocations: 0.6692 MB / 0.592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.066e-05/0.1319, allocations: 4 kB / 0.592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.772e-05/0.1319, allocations: 7.438 kB / 0.592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1319, allocations: 0 / 0.592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2285/0.3604, allocations: 0.879 MB / 0.5929 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003038/0.3608, allocations: 188.8 kB / 0.593 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/2.065, allocations: 0 / 0.593 GB, free: 13.05 MB / 0.4981 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/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)