Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 114.1 kB / 17.13 MB, free: 5.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002143/0.002143, allocations: 205.5 kB / 20.09 MB, free: 2.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.96/2.96, allocations: 0.49 GB / 0.7923 GB, free: 1.328 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 63.91 kB / 1.15 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9976/0.9996, allocations: 176.1 MB / 1.322 GB, free: 25.15 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002998/1.003, allocations: 1.53 MB / 1.323 GB, free: 24.08 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003744/1.003, allocations: 122.2 kB / 1.324 GB, free: 24 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.336e-05/1.003, allocations: 0 / 1.324 GB, free: 24 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.796e-05/1.003, allocations: 11.31 kB / 1.324 GB, free: 23.99 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.409e-05/1.003, allocations: 2.969 kB / 1.324 GB, free: 23.99 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/1.003, allocations: 28.7 kB / 1.324 GB, free: 23.97 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.361e-05/1.003, allocations: 33 kB / 1.324 GB, free: 23.96 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/1.004, allocations: 9.094 kB / 1.324 GB, free: 23.95 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.919e-05/1.004, allocations: 16.41 kB / 1.324 GB, free: 23.95 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.918e-05/1.004, allocations: 14.22 kB / 1.324 GB, free: 23.94 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/1.004, allocations: 2.406 kB / 1.324 GB, free: 23.94 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.279e-05/1.004, allocations: 15.34 kB / 1.324 GB, free: 23.93 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.555e-05/1.004, allocations: 7.984 kB / 1.324 GB, free: 23.93 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.843e-05/1.004, allocations: 18.02 kB / 1.324 GB, free: 23.91 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001256/1.004, allocations: 35.97 kB / 1.324 GB, free: 23.9 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/1.004, allocations: 0 / 1.324 GB, free: 23.9 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.324e-06/1.004, allocations: 0 / 1.324 GB, free: 23.9 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.25e-06/1.004, allocations: 0 / 1.324 GB, free: 23.9 MB / 1.061 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.0004344/1.004, allocations: 340.8 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/1.004, allocations: 17.97 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/1.004, allocations: 0.9375 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.639e-05/1.004, allocations: 170.8 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/1.005, allocations: 4.375 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/1.005, allocations: 2.938 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/1.005, allocations: 64.09 kB / 1.324 GB, free: 23.29 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/1.005, allocations: 192 / 1.324 GB, free: 23.29 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/1.005, allocations: 3.938 kB / 1.324 GB, free: 23.29 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/1.005, allocations: 3.984 kB / 1.324 GB, free: 23.28 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/1.005, allocations: 44.41 kB / 1.324 GB, free: 23.27 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003146/1.005, allocations: 263.4 kB / 1.325 GB, free: 22.99 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/1.006, allocations: 61.58 kB / 1.325 GB, free: 22.95 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.632e-05/1.006, allocations: 26.59 kB / 1.325 GB, free: 22.94 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/1.006, allocations: 83.17 kB / 1.325 GB, free: 22.85 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/1.006, allocations: 37.25 kB / 1.325 GB, free: 22.8 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/1.006, allocations: 0 / 1.325 GB, free: 22.8 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003812/1.006, allocations: 86.05 kB / 1.325 GB, free: 22.77 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/1.006, allocations: 58.62 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.354e-05/1.006, allocations: 103.4 kB / 1.325 GB, free: 22.59 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.909e-06/1.006, allocations: 25.7 kB / 1.325 GB, free: 22.56 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.323e-05/1.006, allocations: 91.47 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/1.006, allocations: 10.77 kB / 1.325 GB, free: 22.46 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/1.006, allocations: 16.47 kB / 1.325 GB, free: 22.45 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.251e-05/1.006, allocations: 316.8 kB / 1.326 GB, free: 22.13 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.733e-05/1.006, allocations: 15.78 kB / 1.326 GB, free: 22.13 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.542e-05/1.007, allocations: 17.92 kB / 1.326 GB, free: 22.13 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/1.007, allocations: 52.2 kB / 1.326 GB, free: 22.11 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/1.007, allocations: 3.938 kB / 1.326 GB, free: 22.1 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002002/1.007, allocations: 78.41 kB / 1.326 GB, free: 22.06 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/1.007, allocations: 9.094 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/1.007, allocations: 0 / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/1.007, allocations: 0 / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.836e-05/1.007, allocations: 14.06 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/1.007, allocations: 2.5 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.5e-05/1.007, allocations: 6.625 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/1.007, allocations: 2.719 kB / 1.326 GB, free: 22.05 MB / 1.061 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 5.769e-05/1.007, allocations: 116.4 kB / 1.326 GB, free: 21.93 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/1.007, allocations: 6.516 kB / 1.326 GB, free: 21.93 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002442/1.007, allocations: 79.53 kB / 1.326 GB, free: 21.88 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/1.007, allocations: 0 / 1.326 GB, free: 21.88 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/1.007, allocations: 4 kB / 1.326 GB, free: 21.88 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/1.007, allocations: 3.938 kB / 1.326 GB, free: 21.88 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001259/1.008, allocations: 164.1 kB / 1.326 GB, free: 21.68 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/1.008, allocations: 2.906 kB / 1.326 GB, free: 21.68 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.295e-05/1.008, allocations: 15 kB / 1.326 GB, free: 21.68 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/1.008, allocations: 4.031 kB / 1.326 GB, free: 21.67 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/1.008, allocations: 4 kB / 1.326 GB, free: 21.67 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/1.008, allocations: 0 / 1.326 GB, free: 21.67 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/1.008, allocations: 2.562 kB / 1.326 GB, free: 21.67 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002299/1.008, allocations: 171.3 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.134e-05/1.008, allocations: 77.11 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/1.008, allocations: 6.281 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.281e-05/1.008, allocations: 3.156 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/1.008, allocations: 10.41 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/1.008, allocations: 0 / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.085e-05/1.008, allocations: 81.78 kB / 1.326 GB, free: 21.35 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.008, allocations: 4 kB / 1.326 GB, free: 21.35 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000227/1.008, allocations: 12.34 kB / 1.326 GB, free: 21.34 MB / 1.061 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.0001343/1.008, allocations: 104 kB / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002368/1.009, allocations: 41.41 kB / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/1.009, allocations: 0 / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.406e-05/1.009, allocations: 29.67 kB / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/1.009, allocations: 3.938 kB / 1.327 GB, free: 21.23 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002964/1.009, allocations: 155.6 kB / 1.327 GB, free: 21.08 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/1.009, allocations: 0.6775 MB / 1.327 GB, free: 20.38 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.116e-05/1.01, allocations: 13.86 kB / 1.327 GB, free: 20.38 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/1.01, allocations: 0 / 1.327 GB, free: 20.38 MB / 1.061 GB Notification: Performance of Templates: time 0.002248/1.012, allocations: 0.7373 MB / 1.328 GB, free: 20.32 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.50450209499104]