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.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.00115/0.00115, allocations: 76.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.0008423/0.0008423, allocations: 174.3 kB / 23.21 MB, free: 1.355 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.872/0.872, allocations: 177.1 MB / 203.5 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.641/1.641, allocations: 359 MB / 0.6044 GB, free: 11.1 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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 2.776e-06/2.776e-06, allocations: 3.984 kB / 0.9517 GB, free: 3.008 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.582e-05/1.86e-05, allocations: 2.281 kB / 0.9517 GB, free: 3.004 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001708/0.001727, allocations: 1.531 MB / 0.9532 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0002741/0.002001, allocations: 127.7 kB / 0.9533 GB, free: 1.332 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.122e-05/0.002032, allocations: 3.938 kB / 0.9534 GB, free: 1.328 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.515e-05/0.002057, allocations: 0 / 0.9534 GB, free: 1.328 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 3.707e-05/0.002094, allocations: 7.875 kB / 0.9534 GB, free: 1.32 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.002324, allocations: 19.92 kB / 0.9534 GB, free: 1.301 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 6.866e-05/0.002393, allocations: 35.91 kB / 0.9534 GB, free: 1.266 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 8.812e-05/0.002481, allocations: 11.98 kB / 0.9534 GB, free: 1.254 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 4.901e-05/0.00253, allocations: 15.98 kB / 0.9534 GB, free: 1.238 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.233e-05/0.002572, allocations: 7.938 kB / 0.9534 GB, free: 1.23 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.002592, allocations: 7.938 kB / 0.9535 GB, free: 1.223 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.3e-05/0.002645, allocations: 15.98 kB / 0.9535 GB, free: 1.207 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.25e-05/0.002657, allocations: 7.984 kB / 0.9535 GB, free: 1.199 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.269e-05/0.00268, allocations: 11.98 kB / 0.9535 GB, free: 1.188 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.002785, allocations: 35.88 kB / 0.9535 GB, free: 1.152 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.002787, allocations: 3.938 kB / 0.9535 GB, free: 1.148 MB / 0.9011 GB Notification: Performance of FrontEnd: time 9.12e-07/0.002788, allocations: 0 / 0.9535 GB, free: 1.148 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.002792, allocations: 0 / 0.9535 GB, free: 1.148 MB / 0.9011 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.0003322/0.003124, allocations: 278.3 kB / 0.9538 GB, free: 0.8438 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.003157, allocations: 8.031 kB / 0.9538 GB, free: 0.8359 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.003184, allocations: 4.891 kB / 0.9538 GB, free: 0.832 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.992e-05/0.003254, allocations: 105.8 kB / 0.9539 GB, free: 0.7031 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.003275, allocations: 384 / 0.9539 GB, free: 0.7031 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.003286, allocations: 4.375 kB / 0.9539 GB, free: 0.6992 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001291/0.003416, allocations: 58.22 kB / 0.954 GB, free: 0.6367 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.003423, allocations: 192 / 0.954 GB, free: 0.6367 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.003433, allocations: 4.375 kB / 0.954 GB, free: 0.6328 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.003437, allocations: 4.375 kB / 0.954 GB, free: 0.6289 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.003541, allocations: 43.83 kB / 0.954 GB, free: 0.5859 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002645/0.003805, allocations: 212.6 kB / 0.9542 GB, free: 356 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001998/0.004005, allocations: 58.52 kB / 0.9543 GB, free: 288 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.898e-05/0.004054, allocations: 24.91 kB / 0.9543 GB, free: 260 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 7.21e-05/0.004126, allocations: 7.984 kB / 0.9543 GB, free: 252 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.004147, allocations: 30.56 kB / 0.9543 GB, free: 212 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=3): time 1.333e-06/0.004148, allocations: 4 kB / 0.9543 GB, free: 208 kB / 0.9011 GB Notification: Performance of matching and sorting (n=3): time 0.0002273/0.004375, allocations: 101.5 kB / 0.9544 GB, free: 100 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.004403, allocations: 59.39 kB / 0.9545 GB, free: 28 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.891e-05/0.004462, allocations: 97.86 kB / 0.9546 GB, free: 15.92 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.004472, allocations: 25.7 kB / 0.9546 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.795e-05/0.00451, allocations: 80.14 kB / 0.9547 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.004524, allocations: 11.89 kB / 0.9547 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.004552, allocations: 21.7 kB / 0.9547 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.575e-05/0.004618, allocations: 314.8 kB / 0.955 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.592e-05/0.004664, allocations: 23.97 kB / 0.955 GB, free: 15.43 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.796e-05/0.004702, allocations: 15.98 kB / 0.9551 GB, free: 15.41 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.16e-05/0.004783, allocations: 48.75 kB / 0.9551 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.004785, allocations: 0 / 0.9551 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001072/0.004892, allocations: 77.66 kB / 0.9552 GB, free: 15.28 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.004904, allocations: 10.44 kB / 0.9552 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.004908, allocations: 0 / 0.9552 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.004919, allocations: 0 / 0.9552 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.218e-05/0.004961, allocations: 11.98 kB / 0.9552 GB, free: 15.26 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.004965, allocations: 3.938 kB / 0.9552 GB, free: 15.26 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.597e-05/0.004991, allocations: 11.94 kB / 0.9552 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-06/0.004996, allocations: 0 / 0.9552 GB, free: 15.25 MB / 0.9167 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.271e-05/0.005049, allocations: 113.8 kB / 0.9553 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.00506, allocations: 0 / 0.9553 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.005203, allocations: 93.2 kB / 0.9554 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.005205, allocations: 0 / 0.9554 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.005209, allocations: 0 / 0.9554 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.005211, allocations: 0 / 0.9554 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.271e-05/0.005294, allocations: 109.3 kB / 0.9555 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.31e-07/0.005294, allocations: 0 / 0.9555 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.903e-05/0.005323, allocations: 12.55 kB / 0.9555 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.005324, allocations: 0 / 0.9555 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.00533, allocations: 4 kB / 0.9555 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.005332, allocations: 3.938 kB / 0.9555 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.005333, allocations: 0 / 0.9555 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.005467, allocations: 176 kB / 0.9557 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.745e-06/0.005475, allocations: 11.95 kB / 0.9557 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.728e-06/0.005485, allocations: 0 / 0.9557 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.075e-05/0.005526, allocations: 15.92 kB / 0.9557 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.005565, allocations: 3.984 kB / 0.9557 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.005569, allocations: 4 kB / 0.9557 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.321e-05/0.005592, allocations: 87.28 kB / 0.9558 GB, free: 14.56 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.005592, allocations: 0 / 0.9558 GB, free: 14.56 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001399/0.005732, allocations: 7.938 kB / 0.9558 GB, free: 14.55 MB / 0.9167 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.0001006/0.005832, allocations: 103.2 kB / 0.9559 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001222/0.005955, allocations: 47.94 kB / 0.956 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.005956, allocations: 0 / 0.956 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 4.724e-05/0.006003, allocations: 27.92 kB / 0.956 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.006169, allocations: 4 kB / 0.956 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002331/0.006402, allocations: 146.5 kB / 0.9561 GB, free: 14.18 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.86e-05/0.006441, allocations: 59.34 kB / 0.9562 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.26e-05/0.006463, allocations: 16.48 kB / 0.9562 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of SimCode: time 6.92e-07/0.006464, allocations: 0 / 0.9562 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of Templates: time 0.001478/0.007942, allocations: 0.7422 MB / 0.9569 GB, free: 13.35 MB / 0.9167 GB " [Timeout remaining time 300] 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 6.418892769142985]