Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007989/0.0007989, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007755/0.0007755, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 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 0.8625/0.8625, allocations: 177.2 MB / 203.5 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.733/1.733, allocations: 389 MB / 0.6338 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.086e-05/2.245e-05, allocations: 2.281 kB / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001773/0.001795, allocations: 1.534 MB / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002826/0.002078, allocations: 135.4 kB / 1.003 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.124e-05/0.002109, allocations: 0 / 1.003 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.826e-05/0.002137, allocations: 7.922 kB / 1.003 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 3.692e-05/0.002174, allocations: 4 kB / 1.003 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.002401, allocations: 23.91 kB / 1.003 GB, free: 11.31 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 6.426e-05/0.002465, allocations: 27.92 kB / 1.003 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.326e-05/0.002559, allocations: 8 kB / 1.003 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 5.297e-05/0.002612, allocations: 19.92 kB / 1.003 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.387e-05/0.002655, allocations: 15.97 kB / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.002669, allocations: 0 / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.719e-05/0.002727, allocations: 19.92 kB / 1.003 GB, free: 11.22 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.248e-05/0.002739, allocations: 8 kB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.833e-05/0.002757, allocations: 7.984 kB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001082/0.002866, allocations: 39.89 kB / 1.003 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.002867, allocations: 0 / 1.003 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.62e-07/0.002868, allocations: 0 / 1.003 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.002872, allocations: 0 / 1.003 GB, free: 11.17 MB / 0.9636 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.000342/0.003214, allocations: 270.3 kB / 1.003 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.003249, allocations: 8.75 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.003279, allocations: 4.938 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.146e-05/0.003351, allocations: 105.8 kB / 1.003 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.00337, allocations: 8.375 kB / 1.003 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-06/0.003379, allocations: 384 / 1.003 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.00351, allocations: 62.94 kB / 1.003 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.003516, allocations: 192 / 1.003 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.003526, allocations: 4.375 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.003531, allocations: 384 / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.003631, allocations: 43.89 kB / 1.003 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002688/0.0039, allocations: 204.6 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.0041, allocations: 66.53 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.712e-05/0.004147, allocations: 20.84 kB / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 6.884e-05/0.004216, allocations: 7.938 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.004235, allocations: 38.55 kB / 1.004 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 9.41e-07/0.004236, allocations: 0 / 1.004 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0002281/0.004464, allocations: 93.75 kB / 1.004 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.004491, allocations: 55.41 kB / 1.004 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.842e-05/0.00455, allocations: 105.8 kB / 1.004 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.00456, allocations: 25.7 kB / 1.004 GB, free: 9.918 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.362e-05/0.004594, allocations: 88.14 kB / 1.004 GB, free: 9.828 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.41e-05/0.004608, allocations: 7.891 kB / 1.004 GB, free: 9.82 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.637e-05/0.004634, allocations: 21.7 kB / 1.004 GB, free: 9.793 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.983e-05/0.004704, allocations: 310.8 kB / 1.004 GB, free: 9.48 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.356e-05/0.004747, allocations: 23.92 kB / 1.004 GB, free: 9.457 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.907e-05/0.004787, allocations: 19.97 kB / 1.004 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.005122, allocations: 48.81 kB / 1.004 GB, free: 9.387 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.005124, allocations: 0 / 1.004 GB, free: 9.387 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001104/0.005234, allocations: 77.61 kB / 1.004 GB, free: 9.305 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.005245, allocations: 9.5 kB / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.00525, allocations: 0 / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.005261, allocations: 4 kB / 1.004 GB, free: 9.293 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.031e-05/0.005301, allocations: 11.92 kB / 1.004 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.005307, allocations: 8 kB / 1.004 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.382e-05/0.005331, allocations: 7.984 kB / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-06/0.005335, allocations: 0 / 1.004 GB, free: 9.266 MB / 0.9636 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.223e-05/0.005387, allocations: 109.8 kB / 1.004 GB, free: 9.148 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.0054, allocations: 4 kB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002392/0.005639, allocations: 81.27 kB / 1.005 GB, free: 9.051 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.005641, allocations: 0 / 1.005 GB, free: 9.051 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.005645, allocations: 4 kB / 1.005 GB, free: 9.047 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.005647, allocations: 4 kB / 1.005 GB, free: 9.043 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.466e-05/0.005732, allocations: 113.3 kB / 1.005 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.005733, allocations: 0 / 1.005 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.172e-05/0.005765, allocations: 11.98 kB / 1.005 GB, free: 8.891 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.005766, allocations: 3.938 kB / 1.005 GB, free: 8.887 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-06/0.005771, allocations: 0 / 1.005 GB, free: 8.887 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.005773, allocations: 7.875 kB / 1.005 GB, free: 8.879 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.005774, allocations: 4 kB / 1.005 GB, free: 8.875 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/0.005907, allocations: 175.5 kB / 1.005 GB, free: 8.688 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-06/0.005911, allocations: 0 / 1.005 GB, free: 8.688 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.548e-06/0.005921, allocations: 0 / 1.005 GB, free: 8.688 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.978e-05/0.00596, allocations: 15.92 kB / 1.005 GB, free: 8.672 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.006001, allocations: 4.422 kB / 1.005 GB, free: 8.668 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.006006, allocations: 3.984 kB / 1.005 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.568e-05/0.006031, allocations: 87.27 kB / 1.005 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.006031, allocations: 0 / 1.005 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001536/0.006185, allocations: 8 kB / 1.005 GB, free: 8.57 MB / 0.9636 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.0001015/0.006286, allocations: 99.25 kB / 1.005 GB, free: 8.465 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001262/0.006413, allocations: 47.89 kB / 1.005 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.006414, allocations: 0 / 1.005 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.854e-05/0.006462, allocations: 23.97 kB / 1.005 GB, free: 8.395 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.006636, allocations: 4 kB / 1.005 GB, free: 8.391 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002281/0.006864, allocations: 138.6 kB / 1.005 GB, free: 8.223 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.999e-05/0.006904, allocations: 71.28 kB / 1.005 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.616e-05/0.00693, allocations: 8.5 kB / 1.005 GB, free: 8.125 MB / 0.9636 GB Notification: Performance of SimCode: time 4.51e-07/0.00693, allocations: 3.938 kB / 1.005 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of Templates: time 0.00151/0.00844, allocations: 0.7523 MB / 1.006 GB, free: 7.371 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.396656210534275]