Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_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.0008809/0.0008809, allocations: 86.72 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.001354/0.001354, 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 3.2.3+maint.om/package.mo): time 1.816/1.816, allocations: 205.4 MB / 222.1 MB, free: 5.863 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.887/1.887, allocations: 292.7 MB / 0.5499 GB, free: 14.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007232/0.0007236, allocations: 21.88 kB / 0.6738 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.315, allocations: 116.3 MB / 0.7874 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001617/0.3167, allocations: 1.224 MB / 0.7886 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003236/0.317, allocations: 116.6 kB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.326e-05/0.3171, allocations: 0 / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.591e-05/0.3171, allocations: 3.938 kB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.829e-05/0.3172, allocations: 3.984 kB / 0.7887 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.3174, allocations: 23.97 kB / 0.7887 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.69e-05/0.3175, allocations: 19.94 kB / 0.7888 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.709e-05/0.3176, allocations: 11.98 kB / 0.7888 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.303e-05/0.3176, allocations: 7.938 kB / 0.7888 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.488e-05/0.3177, allocations: 15.92 kB / 0.7888 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.3177, allocations: 4 kB / 0.7888 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.155e-05/0.3178, allocations: 11.98 kB / 0.7888 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.3178, allocations: 3.984 kB / 0.7888 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.706e-05/0.3178, allocations: 29.7 kB / 0.7888 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.619e-05/0.3179, allocations: 23.95 kB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3179, allocations: 0 / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3179, allocations: 0 / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.3179, allocations: 0 / 0.7889 GB, free: 10.29 MB / 0.6075 GB 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.0004456/0.3184, allocations: 351.5 kB / 0.7892 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.3184, allocations: 8.031 kB / 0.7892 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.143e-05/0.3185, allocations: 30.56 kB / 0.7892 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.251e-05/0.3185, allocations: 4 kB / 0.7892 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.3186, allocations: 167 kB / 0.7894 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.3186, allocations: 4 kB / 0.7894 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.3187, allocations: 3.938 kB / 0.7894 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.3189, allocations: 70.72 kB / 0.7895 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.3189, allocations: 0 / 0.7895 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.3189, allocations: 0 / 0.7895 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.319, allocations: 0 / 0.7895 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.3191, allocations: 55.95 kB / 0.7895 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003599/0.3195, allocations: 268.8 kB / 0.7898 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.3198, allocations: 70.53 kB / 0.7899 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.49e-05/0.3199, allocations: 32.83 kB / 0.7899 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.32, allocations: 77.11 kB / 0.79 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.3201, allocations: 34.56 kB / 0.79 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.3201, allocations: 0 / 0.79 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003651/0.3205, allocations: 117.5 kB / 0.7901 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.3205, allocations: 51.41 kB / 0.7901 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.163e-05/0.3206, allocations: 97.86 kB / 0.7902 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.3206, allocations: 37.69 kB / 0.7903 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.881e-05/0.3207, allocations: 80.14 kB / 0.7904 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.3207, allocations: 15.83 kB / 0.7904 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.3207, allocations: 0 / 0.7904 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.3208, allocations: 318.8 kB / 0.7907 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.499e-05/0.3209, allocations: 23.97 kB / 0.7907 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.579e-05/0.321, allocations: 27.98 kB / 0.7907 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.074e-05/0.3211, allocations: 19.98 kB / 0.7907 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3211, allocations: 4 kB / 0.7907 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002094/0.3213, allocations: 97.48 kB / 0.7908 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.3213, allocations: 4 kB / 0.7908 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3213, allocations: 0 / 0.7908 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3213, allocations: 0 / 0.7908 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.246e-05/0.3214, allocations: 19.98 kB / 0.7909 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.3214, allocations: 0 / 0.7909 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.304e-05/0.3215, allocations: 8 kB / 0.7909 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.3215, allocations: 3.984 kB / 0.7909 GB, free: 7.98 MB / 0.6075 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.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.923e-05/0.3216, allocations: 114.5 kB / 0.791 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.661e-05/0.3216, allocations: 0 / 0.791 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002507/0.3219, allocations: 101.1 kB / 0.7911 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3219, allocations: 3.938 kB / 0.7911 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3219, allocations: 0 / 0.7911 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3219, allocations: 4 kB / 0.7911 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001504/0.3221, allocations: 161.6 kB / 0.7912 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3221, allocations: 0 / 0.7912 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.46e-05/0.3222, allocations: 15.98 kB / 0.7913 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3222, allocations: 0 / 0.7913 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.3222, allocations: 0 / 0.7913 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.3222, allocations: 3.984 kB / 0.7913 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3222, allocations: 4 kB / 0.7913 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.3225, allocations: 183.5 kB / 0.7914 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.3225, allocations: 85.62 kB / 0.7915 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.3225, allocations: 4 kB / 0.7915 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.861e-05/0.3226, allocations: 4 kB / 0.7915 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.668e-05/0.3227, allocations: 11.92 kB / 0.7915 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.3227, allocations: 0 / 0.7915 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.982e-05/0.3227, allocations: 95.19 kB / 0.7916 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3227, allocations: 0 / 0.7916 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000224/0.323, allocations: 8 kB / 0.7916 GB, free: 7.094 MB / 0.6075 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.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.000591/0.3236, allocations: 0.7202 MB / 0.7923 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002089/0.3238, allocations: 51.95 kB / 0.7924 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3238, allocations: 0 / 0.7924 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.151e-05/0.3239, allocations: 31.92 kB / 0.7924 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.3242, allocations: 14.95 kB / 0.7924 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004147/0.3246, allocations: 150.3 kB / 0.7926 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.3249, allocations: 0.6808 MB / 0.7932 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.259e-05/0.3249, allocations: 4 kB / 0.7932 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.346e-05/0.3249, allocations: 15.44 kB / 0.7933 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.3249, allocations: 0 / 0.7933 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.3434, allocations: 1.281 MB / 0.7945 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002733/0.3437, allocations: 182.5 kB / 0.7947 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.134, allocations: 0 / 0.7947 GB, free: 3.922 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: