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.0009244/0.0009245, allocations: 90.67 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.006166/0.006166, allocations: 172.4 kB / 16.26 MB, free: 6.676 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.207/1.207, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6774/0.6774, allocations: 132.3 MB / 423.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003119/0.0003119, allocations: 12 kB / 0.5041 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3398, allocations: 81.57 MB / 0.5837 GB, free: 4.027 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001328/0.3412, allocations: 1.24 MB / 0.585 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003154/0.3415, allocations: 115.8 kB / 0.5851 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.964e-05/0.3415, allocations: 0.9375 kB / 0.5851 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.572e-05/0.3416, allocations: 4.734 kB / 0.5851 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.457e-05/0.3416, allocations: 1.094 kB / 0.5851 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001569/0.3418, allocations: 20.73 kB / 0.5851 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.273e-05/0.3418, allocations: 32.14 kB / 0.5851 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.452e-05/0.3419, allocations: 6.094 kB / 0.5851 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.435e-05/0.342, allocations: 15.14 kB / 0.5851 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.306e-05/0.342, allocations: 15.77 kB / 0.5852 GB, free: 3 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.342, allocations: 5.594 kB / 0.5852 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.784e-05/0.3421, allocations: 6.375 kB / 0.5852 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.174e-05/0.3421, allocations: 7.484 kB / 0.5852 GB, free: 2.992 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.612e-05/0.3421, allocations: 33.34 kB / 0.5852 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 8.703e-05/0.3422, allocations: 31 kB / 0.5852 GB, free: 2.945 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.3422, allocations: 5.188 kB / 0.5852 GB, free: 2.941 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3422, allocations: 0 / 0.5852 GB, free: 2.941 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.3422, allocations: 0 / 0.5852 GB, free: 2.941 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.0003268/0.3426, allocations: 349.7 kB / 0.5856 GB, free: 2.578 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.3426, allocations: 9.531 kB / 0.5856 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.306e-05/0.3426, allocations: 34.75 kB / 0.5856 GB, free: 2.535 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.061e-05/0.3427, allocations: 3.344 kB / 0.5856 GB, free: 2.535 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.028e-05/0.3427, allocations: 174.7 kB / 0.5858 GB, free: 2.328 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3428, allocations: 2.25 kB / 0.5858 GB, free: 2.328 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.3428, allocations: 1.938 kB / 0.5858 GB, free: 2.328 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001657/0.3429, allocations: 67.83 kB / 0.5859 GB, free: 2.285 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.343, allocations: 3.938 kB / 0.5859 GB, free: 2.281 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.343, allocations: 1.188 kB / 0.5859 GB, free: 2.281 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.343, allocations: 3.938 kB / 0.5859 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.3432, allocations: 48.41 kB / 0.5859 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002607/0.3434, allocations: 272.6 kB / 0.5862 GB, free: 1.984 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.3437, allocations: 57.8 kB / 0.5862 GB, free: 1.957 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3438, allocations: 35.2 kB / 0.5863 GB, free: 1.941 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.672e-05/0.3439, allocations: 81.64 kB / 0.5863 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.344, allocations: 35.95 kB / 0.5864 GB, free: 1.805 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.344, allocations: 0 / 0.5864 GB, free: 1.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003553/0.3443, allocations: 111.2 kB / 0.5865 GB, free: 1.758 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.688e-05/0.3444, allocations: 52.09 kB / 0.5865 GB, free: 1.695 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.122e-05/0.3444, allocations: 102.2 kB / 0.5866 GB, free: 1.594 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.003e-06/0.3444, allocations: 25.7 kB / 0.5867 GB, free: 1.562 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.356e-05/0.3444, allocations: 90.3 kB / 0.5867 GB, free: 1.473 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.215e-05/0.3445, allocations: 9.359 kB / 0.5867 GB, free: 1.465 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/0.3445, allocations: 12.11 kB / 0.5868 GB, free: 1.449 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.426e-05/0.3445, allocations: 312.8 kB / 0.5871 GB, free: 1.137 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.292e-05/0.3446, allocations: 26.41 kB / 0.5871 GB, free: 1.133 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.305e-05/0.3447, allocations: 25.27 kB / 0.5871 GB, free: 1.129 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.3449, allocations: 63.66 kB / 0.5872 GB, free: 1.105 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3449, allocations: 0 / 0.5872 GB, free: 1.105 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002091/0.3451, allocations: 90.31 kB / 0.5873 GB, free: 1.059 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.3451, allocations: 4.938 kB / 0.5873 GB, free: 1.059 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3451, allocations: 5.672 kB / 0.5873 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.3452, allocations: 0 / 0.5873 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.637e-05/0.3452, allocations: 14.05 kB / 0.5873 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.3452, allocations: 0.7812 kB / 0.5873 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.766e-05/0.3453, allocations: 12.08 kB / 0.5873 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.3453, allocations: 5.812 kB / 0.5873 GB, free: 1.047 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 (rea2Int.y,fac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.24e-05/0.3454, allocations: 114.2 kB / 0.5874 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.3454, allocations: 5.375 kB / 0.5874 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000243/0.3457, allocations: 96.97 kB / 0.5875 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3457, allocations: 1.031 kB / 0.5875 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3457, allocations: 0 / 0.5875 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3457, allocations: 5.719 kB / 0.5875 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.3458, allocations: 174.7 kB / 0.5877 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3458, allocations: 0 / 0.5877 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.364e-05/0.3459, allocations: 13.5 kB / 0.5877 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.3459, allocations: 1.406 kB / 0.5877 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.3459, allocations: 1.156 kB / 0.5877 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3459, allocations: 4.75 kB / 0.5877 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3459, allocations: 0 / 0.5877 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002195/0.3461, allocations: 187.1 kB / 0.5879 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.3462, allocations: 86.41 kB / 0.588 GB, free: 412 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.02e-05/0.3462, allocations: 0.9688 kB / 0.588 GB, free: 412 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.344e-05/0.3463, allocations: 13.23 kB / 0.588 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-05/0.3463, allocations: 5.547 kB / 0.588 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-06/0.3463, allocations: 1.844 kB / 0.588 GB, free: 408 kB / 430.1 MB Notification: Performance of sorting global known variables: time 1.864e-05/0.3463, allocations: 79.7 kB / 0.5881 GB, free: 332 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3463, allocations: 0 / 0.5881 GB, free: 332 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002056/0.3466, allocations: 11.12 kB / 0.5881 GB, free: 328 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 (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.0004515/0.347, allocations: 0.7132 MB / 0.5888 GB, free: 15.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002225/0.3472, allocations: 63.81 kB / 0.5888 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.3473, allocations: 0 / 0.5888 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.946e-05/0.3474, allocations: 29.91 kB / 0.5888 GB, free: 15.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.3476, allocations: 13.41 kB / 0.5889 GB, free: 15.63 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003556/0.348, allocations: 156.5 kB / 0.589 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001807/0.3482, allocations: 0.6783 MB / 0.5897 GB, free: 14.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.726e-05/0.3482, allocations: 3.453 kB / 0.5897 GB, free: 14.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.975e-05/0.3482, allocations: 13.78 kB / 0.5897 GB, free: 14.75 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3482, allocations: 0.5 kB / 0.5897 GB, free: 14.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1971/0.5453, allocations: 1.279 MB / 0.5909 GB, free: 14.59 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003161/0.5457, allocations: 173.4 kB / 0.5911 GB, free: 14.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/2.149, allocations: 0 / 0.5911 GB, free: 14.34 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/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)