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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006493/0.0006493, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004154/0.004154, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.301/1.301, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7107/0.7107, allocations: 132.3 MB / 423.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003383, allocations: 12.91 kB / 0.5041 GB, free: 3.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4172/0.4176, allocations: 81.58 MB / 0.5838 GB, free: 4.027 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0006216/0.4183, allocations: 329 kB / 0.5841 GB, free: 3.805 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002439/0.4185, allocations: 42.64 kB / 0.5841 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.967e-06/0.4185, allocations: 0.8438 kB / 0.5841 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.339e-05/0.4186, allocations: 0 / 0.5841 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.11e-06/0.4186, allocations: 0 / 0.5841 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.4187, allocations: 9.781 kB / 0.5841 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 3.322e-05/0.4188, allocations: 2.344 kB / 0.5841 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.4188, allocations: 1.688 kB / 0.5841 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.235e-05/0.4189, allocations: 1.688 kB / 0.5841 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.161e-05/0.4189, allocations: 4.734 kB / 0.5841 GB, free: 3.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.4189, allocations: 5.375 kB / 0.5841 GB, free: 3.766 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.771e-05/0.419, allocations: 9.203 kB / 0.5841 GB, free: 3.762 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.648e-06/0.419, allocations: 4.781 kB / 0.5842 GB, free: 3.758 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.419, allocations: 27.61 kB / 0.5842 GB, free: 3.727 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 6.867e-05/0.4191, allocations: 9.781 kB / 0.5842 GB, free: 3.723 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4191, allocations: 0 / 0.5842 GB, free: 3.723 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4191, allocations: 1.062 kB / 0.5842 GB, free: 3.723 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.4191, allocations: 0 / 0.5842 GB, free: 3.723 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001893/0.4193, allocations: 314.9 kB / 0.5845 GB, free: 3.371 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.4193, allocations: 9.531 kB / 0.5845 GB, free: 3.371 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.311e-05/0.4194, allocations: 40 kB / 0.5845 GB, free: 3.324 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.897e-05/0.4194, allocations: 5.547 kB / 0.5845 GB, free: 3.32 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.821e-05/0.4194, allocations: 161.7 kB / 0.5847 GB, free: 3.125 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.264e-06/0.4195, allocations: 1.281 kB / 0.5847 GB, free: 3.125 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.4195, allocations: 5.5 kB / 0.5847 GB, free: 3.121 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.177e-05/0.4196, allocations: 35.81 kB / 0.5847 GB, free: 3.086 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.4196, allocations: 3.938 kB / 0.5847 GB, free: 3.082 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-06/0.4196, allocations: 0 / 0.5847 GB, free: 3.082 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.4196, allocations: 0.9062 kB / 0.5847 GB, free: 3.082 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.78e-05/0.4196, allocations: 7.578 kB / 0.5847 GB, free: 3.078 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.227e-05/0.4197, allocations: 150.4 kB / 0.5849 GB, free: 2.887 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.875e-05/0.4198, allocations: 28.62 kB / 0.5849 GB, free: 2.855 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.571e-05/0.4198, allocations: 7.781 kB / 0.5849 GB, free: 2.848 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.4199, allocations: 86.19 kB / 0.585 GB, free: 2.75 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.4199, allocations: 31.31 kB / 0.585 GB, free: 2.711 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 1.041e-06/0.42, allocations: 1.062 kB / 0.585 GB, free: 2.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001178/0.4201, allocations: 52.2 kB / 0.5851 GB, free: 2.664 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.846e-05/0.4201, allocations: 57.16 kB / 0.5851 GB, free: 2.598 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.693e-05/0.4201, allocations: 89.86 kB / 0.5852 GB, free: 2.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.791e-06/0.4201, allocations: 25.7 kB / 0.5853 GB, free: 2.469 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.688e-06/0.4202, allocations: 85.78 kB / 0.5853 GB, free: 2.383 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.4202, allocations: 0.6562 kB / 0.5853 GB, free: 2.383 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.4202, allocations: 10.31 kB / 0.5853 GB, free: 2.367 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.637e-05/0.4202, allocations: 313.1 kB / 0.5856 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.4203, allocations: 5.75 kB / 0.5856 GB, free: 2.051 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.605e-06/0.4203, allocations: 3.203 kB / 0.5857 GB, free: 2.051 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.821e-05/0.4203, allocations: 14 kB / 0.5857 GB, free: 2.039 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4203, allocations: 1.469 kB / 0.5857 GB, free: 2.039 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.196e-05/0.4204, allocations: 43.36 kB / 0.5857 GB, free: 2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.4204, allocations: 5.203 kB / 0.5857 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.4204, allocations: 5.156 kB / 0.5857 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.4204, allocations: 0 / 0.5857 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.943e-05/0.4205, allocations: 8.5 kB / 0.5857 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.4205, allocations: 0.6562 kB / 0.5857 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.333e-05/0.4205, allocations: 2.25 kB / 0.5857 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-06/0.4205, allocations: 1 kB / 0.5857 GB, free: 1.992 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 (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 4.114e-05/0.4205, allocations: 109.4 kB / 0.5858 GB, free: 1.879 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.613e-06/0.4206, allocations: 1.469 kB / 0.5858 GB, free: 1.879 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.28e-05/0.4206, allocations: 47.52 kB / 0.5859 GB, free: 1.836 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.4206, allocations: 0.5625 kB / 0.5859 GB, free: 1.836 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4207, allocations: 4.812 kB / 0.5859 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.4207, allocations: 0.6562 kB / 0.5859 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.808e-05/0.4207, allocations: 145.8 kB / 0.586 GB, free: 1.645 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.4207, allocations: 0.6094 kB / 0.586 GB, free: 1.645 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.319e-05/0.4207, allocations: 8.531 kB / 0.586 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.4208, allocations: 3.938 kB / 0.586 GB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.4208, allocations: 8.625 kB / 0.586 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4208, allocations: 1.219 kB / 0.586 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4208, allocations: 0 / 0.586 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.739e-05/0.4208, allocations: 73 kB / 0.5861 GB, free: 1.551 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.48e-05/0.4209, allocations: 79.45 kB / 0.5862 GB, free: 1.457 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.066e-05/0.4209, allocations: 7.938 kB / 0.5862 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.141e-05/0.4209, allocations: 1.609 kB / 0.5862 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.643e-05/0.4209, allocations: 6.062 kB / 0.5862 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.4209, allocations: 0.6875 kB / 0.5862 GB, free: 1.445 MB / 430.1 MB Notification: Performance of sorting global known variables: time 1.036e-05/0.4209, allocations: 76.69 kB / 0.5863 GB, free: 1.371 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.421, allocations: 0 / 0.5863 GB, free: 1.371 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0001849/0.4211, allocations: 8.031 kB / 0.5863 GB, free: 1.367 MB / 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,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.000247/0.4214, allocations: 0.6028 MB / 0.5869 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 6.333e-05/0.4215, allocations: 11.39 kB / 0.5869 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4215, allocations: 0.5312 kB / 0.5869 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.631e-05/0.4215, allocations: 12.66 kB / 0.5869 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.4216, allocations: 2.625 kB / 0.5869 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000243/0.4219, allocations: 114.3 kB / 0.587 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.422, allocations: 0.6718 MB / 0.5877 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.34e-05/0.422, allocations: 2.766 kB / 0.5877 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.807e-05/0.4221, allocations: 14.23 kB / 0.5877 GB, free: 15.91 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4221, allocations: 0 / 0.5877 GB, free: 15.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1842/0.6063, allocations: 0.8552 MB / 0.5885 GB, free: 15.78 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.6065, allocations: 183.2 kB / 0.5887 GB, free: 15.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/2.175, allocations: 0 / 0.5887 GB, free: 15.53 MB / 446.1 MB (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/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)