Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.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.392/1.392, allocations: 252 MB / 268 MB, free: 10.86 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.001172/0.001172, allocations: 166.7 kB / 327.6 MB, free: 2.09 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.854/1.854, allocations: 205.4 MB / 0.5786 GB, free: 20.19 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.0008428/0.0008431, allocations: 92.44 kB / 0.6832 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003605, allocations: 12.16 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2295, allocations: 106.3 MB / 0.9015 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007815/0.2303, allocations: 326.3 kB / 0.9018 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003102/0.2307, allocations: 49.14 kB / 0.9018 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.316e-05/0.2307, allocations: 0 / 0.9018 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.331e-05/0.2307, allocations: 3.938 kB / 0.9018 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.2307, allocations: 0 / 0.9018 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.231, allocations: 15.88 kB / 0.9018 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 3.989e-05/0.231, allocations: 0 / 0.9018 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.895e-05/0.2311, allocations: 8 kB / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.543e-05/0.2311, allocations: 0 / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.729e-05/0.2311, allocations: 0 / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.2312, allocations: 0 / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.194e-05/0.2312, allocations: 11.98 kB / 0.9019 GB, free: 63.08 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.103e-05/0.2313, allocations: 7.984 kB / 0.9019 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.892e-05/0.2313, allocations: 25.7 kB / 0.9019 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.758e-05/0.2314, allocations: 0 / 0.9019 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.2314, allocations: 7.984 kB / 0.9019 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.496e-06/0.2314, allocations: 0 / 0.9019 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.2314, allocations: 3.938 kB / 0.9019 GB, free: 63.03 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002335/0.2316, allocations: 319.5 kB / 0.9022 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2317, allocations: 12.09 kB / 0.9022 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.027e-05/0.2317, allocations: 0.9375 kB / 0.9022 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.727e-05/0.2318, allocations: 160.4 kB / 0.9024 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.2318, allocations: 384 / 0.9024 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.2318, allocations: 384 / 0.9024 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.2319, allocations: 34.25 kB / 0.9024 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.232, allocations: 192 / 0.9024 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.232, allocations: 7.938 kB / 0.9024 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.232, allocations: 3.938 kB / 0.9024 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.382e-05/0.232, allocations: 8 kB / 0.9024 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001238/0.2322, allocations: 149.7 kB / 0.9026 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 4.523e-05/0.2322, allocations: 22.61 kB / 0.9026 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.91e-05/0.2322, allocations: 8.922 kB / 0.9026 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001682/0.2324, allocations: 81.09 kB / 0.9027 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.2324, allocations: 38.56 kB / 0.9027 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.2324, allocations: 0 / 0.9027 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001431/0.2326, allocations: 45.58 kB / 0.9028 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.2326, allocations: 51.41 kB / 0.9028 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.971e-05/0.2327, allocations: 93.84 kB / 0.9029 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.793e-06/0.2327, allocations: 25.7 kB / 0.9029 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.052e-05/0.2327, allocations: 80.14 kB / 0.903 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.2327, allocations: 8 kB / 0.903 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-06/0.2327, allocations: 4.125 kB / 0.903 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.192e-05/0.2328, allocations: 310.8 kB / 0.9033 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.2328, allocations: 0 / 0.9033 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.155e-06/0.2328, allocations: 4 kB / 0.9033 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.163e-05/0.2329, allocations: 20.73 kB / 0.9033 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2329, allocations: 0 / 0.9033 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.609e-05/0.2329, allocations: 37.69 kB / 0.9034 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2329, allocations: 6.5 kB / 0.9034 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.233, allocations: 4.094 kB / 0.9034 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.233, allocations: 7.938 kB / 0.9034 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.068e-05/0.233, allocations: 3.938 kB / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.2331, allocations: 0 / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.395e-05/0.2331, allocations: 4 kB / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-06/0.2331, allocations: 0 / 0.9034 GB, free: 61.27 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,n) * 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 5.773e-05/0.2331, allocations: 113.8 kB / 0.9035 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.135e-06/0.2332, allocations: 3.906 kB / 0.9035 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.998e-05/0.2333, allocations: 56.7 kB / 0.9036 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.2333, allocations: 3.984 kB / 0.9036 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2333, allocations: 3.984 kB / 0.9036 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2333, allocations: 4 kB / 0.9036 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.347e-05/0.2334, allocations: 141.7 kB / 0.9037 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2334, allocations: 0 / 0.9037 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.679e-05/0.2334, allocations: 4 kB / 0.9037 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2334, allocations: 0 / 0.9037 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.2334, allocations: 7.922 kB / 0.9037 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2334, allocations: 0 / 0.9037 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2334, allocations: 0 / 0.9037 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.421e-05/0.2335, allocations: 69.11 kB / 0.9038 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.943e-05/0.2335, allocations: 81.09 kB / 0.9039 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.2335, allocations: 3.938 kB / 0.9039 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.136e-05/0.2336, allocations: 0 / 0.9039 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.2336, allocations: 4 kB / 0.9039 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.2336, allocations: 4 kB / 0.9039 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.58e-05/0.2336, allocations: 75.28 kB / 0.9039 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9e-08/0.2336, allocations: 4.031 kB / 0.9039 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001906/0.2338, allocations: 4 kB / 0.9039 GB, free: 60.59 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,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.0001509/0.234, allocations: 103.2 kB / 0.904 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 6.943e-05/0.2341, allocations: 8 kB / 0.9041 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2341, allocations: 0 / 0.9041 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.025e-05/0.2341, allocations: 4 kB / 0.9041 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.2342, allocations: 10.34 kB / 0.9041 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001913/0.2344, allocations: 112.5 kB / 0.9042 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.2345, allocations: 0.6731 MB / 0.9048 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.616e-05/0.2346, allocations: 7.438 kB / 0.9048 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of SimCode: time 1.9e-07/0.2346, allocations: 0 / 0.9048 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of Templates: time 0.001647/0.2362, allocations: 447.6 kB / 0.9053 GB, free: 59.18 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)