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: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 252 MB / 267.6 MB, free: 10.95 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.0009356/0.0009355, allocations: 166.6 kB / 327.3 MB, free: 2.215 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.602/1.602, allocations: 205.4 MB / 0.5783 GB, free: 20.24 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.0008254/0.0008254, allocations: 91.75 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.000372, allocations: 9.156 kB / 0.797 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2127, allocations: 106.3 MB / 0.9008 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001632/0.2144, allocations: 1.229 MB / 0.902 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003347/0.2148, allocations: 124.6 kB / 0.9021 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.445e-05/0.2148, allocations: 0 / 0.9021 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.2149, allocations: 0 / 0.9021 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.671e-05/0.2149, allocations: 3.938 kB / 0.9022 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.2151, allocations: 15.98 kB / 0.9022 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.092e-05/0.2152, allocations: 27.92 kB / 0.9022 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.2153, allocations: 4 kB / 0.9022 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.841e-05/0.2154, allocations: 23.91 kB / 0.9022 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.98e-05/0.2155, allocations: 7.984 kB / 0.9022 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.2155, allocations: 0 / 0.9022 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.647e-05/0.2155, allocations: 8 kB / 0.9022 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.066e-05/0.2156, allocations: 7.938 kB / 0.9022 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.984e-05/0.2156, allocations: 25.7 kB / 0.9023 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.245e-05/0.2157, allocations: 27.95 kB / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2157, allocations: 0 / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2157, allocations: 0 / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.2157, allocations: 0 / 0.9023 GB, free: 62.38 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.0004541/0.2162, allocations: 343.3 kB / 0.9026 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.2162, allocations: 12.03 kB / 0.9026 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.2162, allocations: 3.984 kB / 0.9026 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.867e-05/0.2164, allocations: 183.1 kB / 0.9028 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.2164, allocations: 0 / 0.9028 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.2164, allocations: 0 / 0.9028 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.2166, allocations: 65.67 kB / 0.9029 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.2166, allocations: 7.875 kB / 0.9029 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.2167, allocations: 3.938 kB / 0.9029 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.2167, allocations: 0 / 0.9029 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.2169, allocations: 55.95 kB / 0.9029 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003319/0.2172, allocations: 264.9 kB / 0.9032 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/0.2176, allocations: 58.55 kB / 0.9032 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.2177, allocations: 40.83 kB / 0.9033 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.2178, allocations: 81.11 kB / 0.9034 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.2178, allocations: 30.56 kB / 0.9034 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.2178, allocations: 0 / 0.9034 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0004504/0.2183, allocations: 109.6 kB / 0.9035 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.2183, allocations: 51.41 kB / 0.9035 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.045e-05/0.2184, allocations: 105.8 kB / 0.9036 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.668e-06/0.2184, allocations: 25.7 kB / 0.9037 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.573e-05/0.2185, allocations: 92.05 kB / 0.9038 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.2185, allocations: 7.906 kB / 0.9038 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.2185, allocations: 0 / 0.9038 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.684e-05/0.2186, allocations: 314.8 kB / 0.9041 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.751e-05/0.2187, allocations: 27.97 kB / 0.9041 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.669e-05/0.2188, allocations: 27.98 kB / 0.9041 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.599e-05/0.2189, allocations: 27.97 kB / 0.9041 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2189, allocations: 0 / 0.9041 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002339/0.2191, allocations: 81.66 kB / 0.9042 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2191, allocations: 4 kB / 0.9042 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2192, allocations: 0 / 0.9042 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2192, allocations: 0.5156 kB / 0.9042 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.496e-05/0.2193, allocations: 15.98 kB / 0.9042 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.2193, allocations: 0 / 0.9042 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.314e-05/0.2194, allocations: 11.98 kB / 0.9043 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.2194, allocations: 7.953 kB / 0.9043 GB, free: 60.12 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 7.176e-05/0.2194, allocations: 113.8 kB / 0.9044 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.2195, allocations: 4 kB / 0.9044 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002744/0.2198, allocations: 93.12 kB / 0.9045 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.2198, allocations: 8 kB / 0.9045 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.2198, allocations: 0 / 0.9045 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2198, allocations: 3.938 kB / 0.9045 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.22, allocations: 165.5 kB / 0.9046 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.22, allocations: 4 kB / 0.9046 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.805e-05/0.2201, allocations: 11.98 kB / 0.9046 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2201, allocations: 0 / 0.9046 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2201, allocations: 4 kB / 0.9047 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2201, allocations: 3.984 kB / 0.9047 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2201, allocations: 7.938 kB / 0.9047 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.2204, allocations: 191.3 kB / 0.9048 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.209e-05/0.2204, allocations: 77.11 kB / 0.9049 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.2204, allocations: 4 kB / 0.9049 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.583e-05/0.2205, allocations: 15.98 kB / 0.9049 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/0.2206, allocations: 0 / 0.9049 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.2206, allocations: 7.984 kB / 0.9049 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.162e-05/0.2206, allocations: 83.28 kB / 0.905 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2206, allocations: 0 / 0.905 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002175/0.2208, allocations: 4 kB / 0.905 GB, free: 59.23 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.0001548/0.221, allocations: 99.25 kB / 0.9051 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.2212, allocations: 63.89 kB / 0.9052 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2212, allocations: 0 / 0.9052 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.729e-05/0.2214, allocations: 31.97 kB / 0.9052 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.2217, allocations: 7.953 kB / 0.9052 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003362/0.222, allocations: 138.4 kB / 0.9054 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001233/0.2221, allocations: 0.6809 MB / 0.906 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.941e-05/0.2222, allocations: 11.44 kB / 0.906 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2222, allocations: 0 / 0.906 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of Templates: time 0.002245/0.2244, allocations: 0.7408 MB / 0.9068 GB, free: 57.4 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)