Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.352/1.352, allocations: 251.9 MB / 266.9 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 184.3 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.862/1.862, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 99.3 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003522, allocations: 9.062 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2204, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001589/0.222, allocations: 1.236 MB / 0.9014 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003266/0.2224, allocations: 116.5 kB / 0.9015 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.697e-05/0.2224, allocations: 0 / 0.9015 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.611e-05/0.2225, allocations: 3.938 kB / 0.9015 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.149e-05/0.2225, allocations: 3.984 kB / 0.9015 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.2227, allocations: 19.92 kB / 0.9015 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.962e-05/0.2228, allocations: 23.97 kB / 0.9015 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.926e-05/0.2229, allocations: 8 kB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.535e-05/0.223, allocations: 15.92 kB / 0.9015 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.1e-05/0.223, allocations: 4 kB / 0.9015 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.223, allocations: 0 / 0.9015 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.587e-05/0.2231, allocations: 15.98 kB / 0.9016 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.2231, allocations: 7.922 kB / 0.9016 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.233e-05/0.2231, allocations: 25.7 kB / 0.9016 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.683e-05/0.2232, allocations: 23.95 kB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.2232, allocations: 4 kB / 0.9016 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2232, allocations: 0 / 0.9016 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.2233, allocations: 0 / 0.9016 GB, free: 62.33 MB / 0.6042 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.0003894/0.2236, allocations: 335.7 kB / 0.9019 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.2237, allocations: 12.03 kB / 0.9019 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.083e-05/0.2237, allocations: 30.56 kB / 0.902 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.391e-05/0.2238, allocations: 3.906 kB / 0.902 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.893e-05/0.2238, allocations: 175 kB / 0.9021 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.2239, allocations: 0 / 0.9021 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.2239, allocations: 8 kB / 0.9022 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.2241, allocations: 61.59 kB / 0.9022 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.2241, allocations: 0 / 0.9022 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.639e-06/0.2241, allocations: 4 kB / 0.9022 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.2241, allocations: 0 / 0.9022 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.2243, allocations: 55.95 kB / 0.9023 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003148/0.2246, allocations: 260.9 kB / 0.9025 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.2249, allocations: 66.48 kB / 0.9026 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000105/0.2251, allocations: 85.25 kB / 0.9027 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.532e-05/0.2251, allocations: 30.56 kB / 0.9027 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.863e-06/0.2251, allocations: 0 / 0.9027 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003893/0.2255, allocations: 113.6 kB / 0.9028 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.2255, allocations: 59.33 kB / 0.9029 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.248e-05/0.2256, allocations: 102 kB / 0.903 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.388e-06/0.2256, allocations: 25.7 kB / 0.903 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.661e-05/0.2257, allocations: 96.03 kB / 0.9031 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.2257, allocations: 7.891 kB / 0.9031 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.2257, allocations: 0 / 0.9031 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.063e-05/0.2257, allocations: 314.8 kB / 0.9034 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.834e-05/0.2258, allocations: 23.92 kB / 0.9034 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.947e-05/0.2259, allocations: 32.16 kB / 0.9034 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.647e-05/0.226, allocations: 28.06 kB / 0.9035 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.226, allocations: 0 / 0.9035 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002005/0.2262, allocations: 85.66 kB / 0.9035 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2263, allocations: 4 kB / 0.9035 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2263, allocations: 3.984 kB / 0.9035 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.2263, allocations: 0 / 0.9035 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.109e-05/0.2264, allocations: 15.94 kB / 0.9036 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.2264, allocations: 3.984 kB / 0.9036 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.863e-05/0.2265, allocations: 12 kB / 0.9036 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.2265, allocations: 7.953 kB / 0.9036 GB, free: 60.07 MB / 0.6042 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 6.347e-05/0.2265, allocations: 109.8 kB / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.284e-05/0.2266, allocations: 4 kB / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002463/0.2268, allocations: 97.12 kB / 0.9038 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2268, allocations: 0 / 0.9038 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2268, allocations: 0 / 0.9038 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2269, allocations: 0 / 0.9038 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.227, allocations: 169.5 kB / 0.9039 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.227, allocations: 3.984 kB / 0.904 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.138e-05/0.2271, allocations: 8 kB / 0.904 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2271, allocations: 0 / 0.904 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.2271, allocations: 11.92 kB / 0.904 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2271, allocations: 4 kB / 0.904 GB, free: 59.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2271, allocations: 4 kB / 0.904 GB, free: 59.6 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.2273, allocations: 175.5 kB / 0.9041 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.789e-05/0.2274, allocations: 81.05 kB / 0.9042 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.2274, allocations: 7.984 kB / 0.9042 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.914e-05/0.2275, allocations: 8 kB / 0.9042 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.747e-05/0.2275, allocations: 7.984 kB / 0.9042 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.2275, allocations: 4 kB / 0.9043 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.072e-05/0.2276, allocations: 79.28 kB / 0.9043 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2276, allocations: 0 / 0.9043 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002299/0.2278, allocations: 8 kB / 0.9043 GB, free: 59.2 MB / 0.6042 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.0004375/0.2283, allocations: 0.7205 MB / 0.905 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002138/0.2285, allocations: 55.95 kB / 0.9051 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2285, allocations: 0 / 0.9051 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.175e-05/0.2286, allocations: 39.98 kB / 0.9051 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.2288, allocations: 11.94 kB / 0.9051 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004259/0.2292, allocations: 146.2 kB / 0.9053 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.2293, allocations: 0.6809 MB / 0.9059 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.765e-05/0.2294, allocations: 4 kB / 0.9059 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.956e-05/0.2295, allocations: 11.44 kB / 0.906 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.2295, allocations: 4 kB / 0.906 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.2409, allocations: 1.276 MB / 0.9072 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/0.2411, allocations: 193.3 kB / 0.9074 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.473/1.714, allocations: 0 / 0.9074 GB, free: 56.04 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)