Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.326/2.326, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001584/0.001584, allocations: 179.9 kB / 325.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.431/2.431, allocations: 205.4 MB / 0.5766 GB, free: 20.77 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001614/0.001613, allocations: 102.3 kB / 0.6811 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000467/0.0004669, allocations: 12.69 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2157, allocations: 106.3 MB / 0.8989 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002644/0.2184, allocations: 1.223 MB / 0.9001 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005022/0.219, allocations: 117.7 kB / 0.9002 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.108e-05/0.219, allocations: 0 / 0.9002 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.206e-05/0.2191, allocations: 3.938 kB / 0.9002 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.64e-05/0.2192, allocations: 3.984 kB / 0.9002 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.2194, allocations: 23.92 kB / 0.9002 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.67e-05/0.2195, allocations: 15.97 kB / 0.9002 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.2197, allocations: 7.984 kB / 0.9002 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.123e-05/0.2197, allocations: 11.94 kB / 0.9002 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.493e-05/0.2198, allocations: 19.92 kB / 0.9003 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.2198, allocations: 0 / 0.9003 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.06e-05/0.2199, allocations: 8 kB / 0.9003 GB, free: 64 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.592e-05/0.22, allocations: 3.984 kB / 0.9003 GB, free: 64 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.813e-05/0.22, allocations: 29.7 kB / 0.9003 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.2201, allocations: 23.95 kB / 0.9003 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2202, allocations: 0 / 0.9003 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.484e-06/0.2202, allocations: 0 / 0.9003 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.2202, allocations: 3.938 kB / 0.9003 GB, free: 63.93 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.0005903/0.2208, allocations: 347.3 kB / 0.9007 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.2209, allocations: 8.031 kB / 0.9007 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.335e-05/0.2209, allocations: 0 / 0.9007 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.2211, allocations: 183.1 kB / 0.9008 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.086e-05/0.2211, allocations: 3.938 kB / 0.9009 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.2212, allocations: 0 / 0.9009 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003524/0.2215, allocations: 69.67 kB / 0.9009 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2216, allocations: 0 / 0.9009 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.2216, allocations: 0 / 0.9009 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.2216, allocations: 4 kB / 0.9009 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000496/0.2221, allocations: 51.95 kB / 0.901 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005226/0.2227, allocations: 264.9 kB / 0.9012 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007123/0.2234, allocations: 66.47 kB / 0.9013 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001564/0.2236, allocations: 81.17 kB / 0.9014 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.2237, allocations: 34.56 kB / 0.9014 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 4.879e-06/0.2237, allocations: 0 / 0.9014 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0008637/0.2246, allocations: 117.6 kB / 0.9015 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.2246, allocations: 55.41 kB / 0.9016 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.294e-05/0.2247, allocations: 105.8 kB / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.2248, allocations: 25.7 kB / 0.9017 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.535e-05/0.2248, allocations: 84.05 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.2249, allocations: 4 kB / 0.9018 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.096e-06/0.2249, allocations: 0 / 0.9018 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.261e-05/0.225, allocations: 314.8 kB / 0.9021 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002436/0.2252, allocations: 27.97 kB / 0.9021 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.2255, allocations: 23.98 kB / 0.9021 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.2258, allocations: 23.98 kB / 0.9021 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2258, allocations: 0 / 0.9021 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005522/0.2264, allocations: 93.55 kB / 0.9022 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.2264, allocations: 4 kB / 0.9022 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2264, allocations: 0 / 0.9022 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.2265, allocations: 0 / 0.9022 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.2267, allocations: 23.92 kB / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2267, allocations: 0 / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.2269, allocations: 7.953 kB / 0.9023 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.2269, allocations: 11.98 kB / 0.9023 GB, free: 61.71 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 9.893e-05/0.2271, allocations: 110.4 kB / 0.9024 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/0.2271, allocations: 4 kB / 0.9024 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005766/0.2277, allocations: 93.12 kB / 0.9025 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.2277, allocations: 4 kB / 0.9025 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2278, allocations: 0 / 0.9025 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2278, allocations: 3.938 kB / 0.9025 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.2281, allocations: 165.6 kB / 0.9026 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2281, allocations: 0 / 0.9026 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.2283, allocations: 23.92 kB / 0.9027 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.2283, allocations: 0 / 0.9027 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.2283, allocations: 4 kB / 0.9027 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2284, allocations: 0 / 0.9027 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.2284, allocations: 4 kB / 0.9027 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005873/0.229, allocations: 187.4 kB / 0.9029 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.655e-05/0.229, allocations: 84.98 kB / 0.9029 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.2291, allocations: 0 / 0.9029 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.2293, allocations: 11.98 kB / 0.9029 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/0.2294, allocations: 0 / 0.9029 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2294, allocations: 8 kB / 0.903 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.357e-05/0.2295, allocations: 83.27 kB / 0.903 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.21e-07/0.2295, allocations: 4 kB / 0.903 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004854/0.23, allocations: 4 kB / 0.903 GB, free: 60.82 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.0002027/0.2302, allocations: 103.2 kB / 0.9031 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005889/0.2308, allocations: 59.95 kB / 0.9032 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2308, allocations: 0 / 0.9032 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.2311, allocations: 31.97 kB / 0.9032 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.2315, allocations: 3.953 kB / 0.9032 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000436/0.2319, allocations: 116.7 kB / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.2321, allocations: 0.677 MB / 0.904 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.328e-05/0.2322, allocations: 4 kB / 0.904 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.985e-05/0.2323, allocations: 15.36 kB / 0.904 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of SimCode: time 1.392e-06/0.2323, allocations: 4 kB / 0.904 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of Templates: time 0.004722/0.237, allocations: 0.5977 MB / 0.9046 GB, free: 59.16 MB / 0.6042 GB