Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 115.7 kB / 18.89 MB, free: 2.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 202.9 kB / 22.17 MB, free: 5.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.791/2.791, allocations: 476.7 MB / 0.7645 GB, free: 10.12 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 67.89 kB / 1.109 GB, free: 6.566 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8405/0.8425, allocations: 168.7 MB / 1.274 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002804/0.8453, allocations: 1.521 MB / 1.276 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003898/0.8457, allocations: 131.6 kB / 1.276 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-05/0.8457, allocations: 0 / 1.276 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.214e-05/0.8457, allocations: 0 / 1.276 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.929e-05/0.8458, allocations: 3.938 kB / 1.276 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.846, allocations: 27.89 kB / 1.276 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.644e-05/0.8461, allocations: 27.98 kB / 1.276 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.297e-05/0.8462, allocations: 8 kB / 1.276 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.147e-05/0.8462, allocations: 15.92 kB / 1.276 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.271e-05/0.8463, allocations: 11.98 kB / 1.276 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.8463, allocations: 8 kB / 1.276 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.894e-05/0.8464, allocations: 8 kB / 1.276 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.948e-05/0.8464, allocations: 19.86 kB / 1.276 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.686e-05/0.8464, allocations: 15.86 kB / 1.276 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001207/0.8465, allocations: 34.58 kB / 1.276 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.8465, allocations: 0 / 1.276 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8465, allocations: 0 / 1.276 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.8465, allocations: 0 / 1.276 GB, free: 2.73 MB / 0.9669 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.0005417/0.8471, allocations: 347.4 kB / 1.276 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.8471, allocations: 12.03 kB / 1.276 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.8472, allocations: 8.891 kB / 1.276 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.8473, allocations: 164.4 kB / 1.276 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.8473, allocations: 4.359 kB / 1.276 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.8473, allocations: 4.375 kB / 1.276 GB, free: 2.113 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.8476, allocations: 62.22 kB / 1.276 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.8476, allocations: 192 / 1.276 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.8476, allocations: 7.938 kB / 1.276 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.8476, allocations: 0 / 1.276 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.8478, allocations: 47.89 kB / 1.276 GB, free: 1.992 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003947/0.8482, allocations: 260.9 kB / 1.277 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003439/0.8485, allocations: 58.47 kB / 1.277 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.8486, allocations: 28.91 kB / 1.277 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001185/0.8488, allocations: 89.03 kB / 1.277 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.8488, allocations: 30.56 kB / 1.277 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.8488, allocations: 0 / 1.277 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004025/0.8492, allocations: 89.62 kB / 1.277 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.8492, allocations: 55.41 kB / 1.277 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.999e-05/0.8493, allocations: 101.9 kB / 1.277 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.8493, allocations: 25.7 kB / 1.277 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/0.8494, allocations: 92.06 kB / 1.277 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.8494, allocations: 7.891 kB / 1.277 GB, free: 1.043 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.8495, allocations: 17.72 kB / 1.277 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.8496, allocations: 314.8 kB / 1.278 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.734e-05/0.8497, allocations: 19.97 kB / 1.278 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.006e-05/0.8498, allocations: 23.92 kB / 1.278 GB, free: 0.6602 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.85, allocations: 44.81 kB / 1.278 GB, free: 0.6133 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.85, allocations: 3.938 kB / 1.278 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002293/0.8502, allocations: 77.61 kB / 1.278 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.8502, allocations: 4 kB / 1.278 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.8502, allocations: 0 / 1.278 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.8502, allocations: 7.984 kB / 1.278 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.797e-05/0.8503, allocations: 8 kB / 1.278 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.8503, allocations: 4 kB / 1.278 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.811e-05/0.8504, allocations: 3.984 kB / 1.278 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.8504, allocations: 4 kB / 1.278 GB, free: 0.4961 MB / 0.9669 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 (rea2Int.y,fac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.8505, allocations: 122.2 kB / 1.278 GB, free: 376 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.842e-05/0.8505, allocations: 4 kB / 1.278 GB, free: 372 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.8508, allocations: 85.12 kB / 1.278 GB, free: 280 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.8508, allocations: 3.984 kB / 1.278 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.8508, allocations: 0 / 1.278 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.8508, allocations: 0 / 1.278 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.851, allocations: 165.6 kB / 1.278 GB, free: 60 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.851, allocations: 0 / 1.278 GB, free: 60 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.158e-05/0.8511, allocations: 11.98 kB / 1.278 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.8511, allocations: 0 / 1.278 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.8511, allocations: 7.984 kB / 1.278 GB, free: 40 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.8511, allocations: 0 / 1.278 GB, free: 40 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.8511, allocations: 8 kB / 1.278 GB, free: 32 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/0.8514, allocations: 167.4 kB / 1.278 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.116e-05/0.8515, allocations: 85.06 kB / 1.278 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.8515, allocations: 0 / 1.278 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.995e-05/0.8516, allocations: 7.984 kB / 1.278 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.8516, allocations: 11.98 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.8516, allocations: 4 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.094e-05/0.8517, allocations: 83.22 kB / 1.279 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.8517, allocations: 0 / 1.279 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002294/0.8519, allocations: 4 kB / 1.279 GB, free: 15.64 MB / 0.9825 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 (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.0001622/0.8521, allocations: 107.8 kB / 1.279 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002544/0.8523, allocations: 47.89 kB / 1.279 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.8523, allocations: 4 kB / 1.279 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.8524, allocations: 19.98 kB / 1.279 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.8527, allocations: 13.64 kB / 1.279 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003031/0.853, allocations: 121.4 kB / 1.279 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.8533, allocations: 0.6807 MB / 1.279 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.904e-05/0.8534, allocations: 4 kB / 1.279 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.022e-05/0.8534, allocations: 11.44 kB / 1.28 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.8534, allocations: 0 / 1.28 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of Templates: time 0.003332/0.8567, allocations: 0.7261 MB / 1.28 GB, free: 13.86 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.631096349097788]