Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_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.0008847/0.0008849, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009446/0.0009447, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.752/0.752, allocations: 132.3 MB / 423.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003152/0.0003155, allocations: 8 kB / 0.5035 GB, free: 4.148 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.3981, allocations: 81.57 MB / 0.5831 GB, free: 3.867 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002076/0.4002, allocations: 1.227 MB / 0.5843 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004642/0.4007, allocations: 118.1 kB / 0.5845 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.745e-05/0.4008, allocations: 0.6562 kB / 0.5845 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.848e-05/0.4008, allocations: 3.203 kB / 0.5845 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.834e-05/0.4009, allocations: 8.578 kB / 0.5845 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.4011, allocations: 12.88 kB / 0.5845 GB, free: 2.879 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.571e-05/0.4012, allocations: 25.73 kB / 0.5845 GB, free: 2.867 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.4013, allocations: 11.56 kB / 0.5845 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.939e-05/0.4014, allocations: 6.031 kB / 0.5845 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.014e-05/0.4015, allocations: 20.58 kB / 0.5845 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.4015, allocations: 1.281 kB / 0.5845 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.721e-05/0.4016, allocations: 6.453 kB / 0.5846 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.4016, allocations: 6.391 kB / 0.5846 GB, free: 2.848 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.668e-05/0.4017, allocations: 27.83 kB / 0.5846 GB, free: 2.816 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.4018, allocations: 27.05 kB / 0.5846 GB, free: 2.809 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4018, allocations: 0.6562 kB / 0.5846 GB, free: 2.809 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.4018, allocations: 0 / 0.5846 GB, free: 2.809 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.4018, allocations: 3.938 kB / 0.5846 GB, free: 2.805 MB / 430.1 MB 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.0004635/0.4023, allocations: 348.4 kB / 0.5849 GB, free: 2.445 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.4024, allocations: 9 kB / 0.585 GB, free: 2.445 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.4024, allocations: 32.42 kB / 0.585 GB, free: 2.406 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.135e-05/0.4025, allocations: 6.969 kB / 0.585 GB, free: 2.402 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.648e-05/0.4026, allocations: 165.3 kB / 0.5852 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.4026, allocations: 1.969 kB / 0.5852 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.4026, allocations: 1.031 kB / 0.5852 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.4029, allocations: 71.69 kB / 0.5852 GB, free: 2.156 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.4029, allocations: 0 / 0.5852 GB, free: 2.156 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.4029, allocations: 0.8438 kB / 0.5852 GB, free: 2.156 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.4029, allocations: 1.344 kB / 0.5852 GB, free: 2.156 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.4032, allocations: 54.09 kB / 0.5853 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003853/0.4036, allocations: 273.4 kB / 0.5855 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.4041, allocations: 61.25 kB / 0.5856 GB, free: 1.824 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.4043, allocations: 38.78 kB / 0.5856 GB, free: 1.805 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.4044, allocations: 81.97 kB / 0.5857 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.4044, allocations: 35.91 kB / 0.5857 GB, free: 1.668 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.4044, allocations: 0 / 0.5857 GB, free: 1.668 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005658/0.405, allocations: 111.1 kB / 0.5859 GB, free: 1.621 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.405, allocations: 51.92 kB / 0.5859 GB, free: 1.559 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.126e-05/0.4051, allocations: 101.9 kB / 0.586 GB, free: 1.457 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.819e-06/0.4051, allocations: 26.7 kB / 0.586 GB, free: 1.426 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.118e-05/0.4052, allocations: 89.75 kB / 0.5861 GB, free: 1.336 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.4052, allocations: 6.312 kB / 0.5861 GB, free: 1.332 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.4052, allocations: 4 kB / 0.5861 GB, free: 1.328 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.641e-05/0.4053, allocations: 321 kB / 0.5864 GB, free: 1.008 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.4054, allocations: 20.53 kB / 0.5864 GB, free: 1.008 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.4056, allocations: 25.45 kB / 0.5865 GB, free: 1.004 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.4057, allocations: 33.27 kB / 0.5865 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4058, allocations: 0 / 0.5865 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003599/0.4061, allocations: 82.48 kB / 0.5866 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.4062, allocations: 10.77 kB / 0.5866 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4062, allocations: 0 / 0.5866 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.4062, allocations: 0 / 0.5866 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.4064, allocations: 17.66 kB / 0.5866 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.4064, allocations: 4.609 kB / 0.5866 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.896e-05/0.4065, allocations: 8.891 kB / 0.5866 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.4065, allocations: 1.297 kB / 0.5866 GB, free: 0.9414 MB / 430.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 (fac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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.521e-05/0.4066, allocations: 114.5 kB / 0.5867 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.4066, allocations: 1.953 kB / 0.5867 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003865/0.407, allocations: 100.8 kB / 0.5868 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.4071, allocations: 3.938 kB / 0.5868 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.4071, allocations: 0.6562 kB / 0.5868 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4071, allocations: 9.422 kB / 0.5868 GB, free: 0.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.4073, allocations: 159 kB / 0.587 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4073, allocations: 0.7969 kB / 0.587 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.733e-05/0.4074, allocations: 13.06 kB / 0.587 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.4074, allocations: 1.062 kB / 0.587 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.4074, allocations: 0.5625 kB / 0.587 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.4074, allocations: 1.156 kB / 0.587 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.4074, allocations: 0.7031 kB / 0.587 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002943/0.4077, allocations: 190.5 kB / 0.5872 GB, free: 416 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.85e-05/0.4078, allocations: 86.64 kB / 0.5873 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.4078, allocations: 2.172 kB / 0.5873 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.302e-05/0.4079, allocations: 16.42 kB / 0.5873 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.4079, allocations: 5.203 kB / 0.5873 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.4079, allocations: 1.641 kB / 0.5873 GB, free: 304 kB / 430.1 MB Notification: Performance of sorting global known variables: time 2.295e-05/0.408, allocations: 84.16 kB / 0.5874 GB, free: 224 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.408, allocations: 0 / 0.5874 GB, free: 224 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.4082, allocations: 6.969 kB / 0.5874 GB, free: 224 kB / 430.1 MB 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,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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.0005295/0.4087, allocations: 0.7174 MB / 0.5881 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.409, allocations: 58.3 kB / 0.5881 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.409, allocations: 3.938 kB / 0.5881 GB, free: 15.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.4091, allocations: 30.66 kB / 0.5882 GB, free: 15.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.4093, allocations: 8.234 kB / 0.5882 GB, free: 15.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004081/0.4098, allocations: 157.3 kB / 0.5883 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.41, allocations: 0.6817 MB / 0.589 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.261e-05/0.4101, allocations: 2.984 kB / 0.589 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.4101, allocations: 11.33 kB / 0.589 GB, free: 14.65 MB / 446.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4101, allocations: 0.875 kB / 0.589 GB, free: 14.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01018/0.4203, allocations: 1.272 MB / 0.5903 GB, free: 14.49 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/0.4205, allocations: 164.7 kB / 0.5904 GB, free: 14.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.118, allocations: 0 / 0.5904 GB, free: 14.25 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: