Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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.00135/0.00135, allocations: 110.2 kB / 18.93 MB, free: 2.945 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.001703/0.001703, allocations: 192 kB / 22.23 MB, free: 5.16 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.423/1.423, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.112/3.112, allocations: 495.7 MB / 0.7831 GB, free: 33.55 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 71.48 kB / 1.137 GB, free: 33.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4161, allocations: 173.6 MB / 1.307 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003187/0.4193, allocations: 1.561 MB / 1.308 GB, free: 284 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0004316/0.4197, allocations: 131.6 kB / 1.309 GB, free: 152 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.4197, allocations: 0 / 1.309 GB, free: 152 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.818e-05/0.4198, allocations: 7.922 kB / 1.309 GB, free: 144 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.849e-05/0.4198, allocations: 3.938 kB / 1.309 GB, free: 140 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.4202, allocations: 39.89 kB / 1.309 GB, free: 100 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.726e-05/0.4203, allocations: 31.92 kB / 1.309 GB, free: 68 kB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.4204, allocations: 8 kB / 1.309 GB, free: 60 kB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.696e-05/0.4204, allocations: 23.91 kB / 1.309 GB, free: 36 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.684e-05/0.4205, allocations: 19.92 kB / 1.309 GB, free: 16 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.4205, allocations: 4 kB / 1.309 GB, free: 12 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.4206, allocations: 23.98 kB / 1.309 GB, free: 15.99 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.845e-05/0.4206, allocations: 7.984 kB / 1.309 GB, free: 15.98 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.324e-05/0.4206, allocations: 15.92 kB / 1.309 GB, free: 15.96 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.4208, allocations: 51.75 kB / 1.309 GB, free: 15.91 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.4208, allocations: 0 / 1.309 GB, free: 15.91 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.412e-06/0.4208, allocations: 0 / 1.309 GB, free: 15.91 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.4208, allocations: 0 / 1.309 GB, free: 15.91 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004945/0.4213, allocations: 274.3 kB / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.4213, allocations: 8.031 kB / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.4214, allocations: 8.875 kB / 1.309 GB, free: 15.6 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.4215, allocations: 110.4 kB / 1.309 GB, free: 15.46 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.4215, allocations: 12.36 kB / 1.309 GB, free: 15.45 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.4215, allocations: 384 / 1.309 GB, free: 15.45 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.4218, allocations: 66.22 kB / 1.309 GB, free: 15.38 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.4218, allocations: 192 / 1.309 GB, free: 15.38 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.4218, allocations: 3.938 kB / 1.309 GB, free: 15.38 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.4218, allocations: 7.938 kB / 1.309 GB, free: 15.37 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.422, allocations: 47.94 kB / 1.309 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004355/0.4224, allocations: 251.8 kB / 1.31 GB, free: 15.04 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.4228, allocations: 50.55 kB / 1.31 GB, free: 14.98 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.4229, allocations: 32.89 kB / 1.31 GB, free: 14.94 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.423, allocations: 19.98 kB / 1.31 GB, free: 14.92 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.423, allocations: 30.56 kB / 1.31 GB, free: 14.88 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.423, allocations: 3.938 kB / 1.31 GB, free: 14.88 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0004246/0.4235, allocations: 97.58 kB / 1.31 GB, free: 14.78 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.4235, allocations: 59.34 kB / 1.31 GB, free: 14.71 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.838e-05/0.4236, allocations: 113.8 kB / 1.31 GB, free: 14.59 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.4236, allocations: 29.7 kB / 1.31 GB, free: 14.55 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.089e-05/0.4237, allocations: 80.14 kB / 1.31 GB, free: 14.47 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.4237, allocations: 7.953 kB / 1.31 GB, free: 14.46 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.592e-05/0.4237, allocations: 13.72 kB / 1.31 GB, free: 14.44 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4239, allocations: 326.8 kB / 1.31 GB, free: 14.11 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.856e-05/0.424, allocations: 15.98 kB / 1.31 GB, free: 14.1 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.814e-05/0.4241, allocations: 23.97 kB / 1.31 GB, free: 14.07 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.4243, allocations: 48.77 kB / 1.311 GB, free: 14.02 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.4243, allocations: 0 / 1.311 GB, free: 14.02 MB / 1.014 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002349/0.4245, allocations: 81.59 kB / 1.311 GB, free: 13.94 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.4245, allocations: 4 kB / 1.311 GB, free: 13.93 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.4245, allocations: 4 kB / 1.311 GB, free: 13.93 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.4245, allocations: 0 / 1.311 GB, free: 13.93 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.452e-05/0.4246, allocations: 11.98 kB / 1.311 GB, free: 13.92 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.4246, allocations: 0 / 1.311 GB, free: 13.92 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.192e-05/0.4247, allocations: 7.938 kB / 1.311 GB, free: 13.91 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.852e-06/0.4247, allocations: 0 / 1.311 GB, free: 13.91 MB / 1.014 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 (falFac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.949e-05/0.4248, allocations: 122.5 kB / 1.311 GB, free: 13.78 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.4248, allocations: 4 kB / 1.311 GB, free: 13.78 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002826/0.4251, allocations: 89.58 kB / 1.311 GB, free: 13.68 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.4251, allocations: 0 / 1.311 GB, free: 13.68 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.4251, allocations: 0 / 1.311 GB, free: 13.68 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.4251, allocations: 0 / 1.311 GB, free: 13.68 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.4253, allocations: 152.7 kB / 1.311 GB, free: 13.48 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.4253, allocations: 4 kB / 1.311 GB, free: 13.48 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.632e-05/0.4254, allocations: 7.984 kB / 1.311 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.4254, allocations: 4.375 kB / 1.311 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.4254, allocations: 0 / 1.311 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.4254, allocations: 4 kB / 1.311 GB, free: 13.46 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.4254, allocations: 0 / 1.311 GB, free: 13.46 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003044/0.4257, allocations: 179.4 kB / 1.311 GB, free: 13.27 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.102e-05/0.4257, allocations: 7.938 kB / 1.311 GB, free: 13.27 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.4257, allocations: 3.938 kB / 1.311 GB, free: 13.26 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.038e-05/0.4258, allocations: 11.98 kB / 1.311 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.332e-05/0.4259, allocations: 7.984 kB / 1.311 GB, free: 13.24 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.4259, allocations: 4 kB / 1.311 GB, free: 13.24 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.904e-05/0.4259, allocations: 83.28 kB / 1.311 GB, free: 13.16 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4259, allocations: 0 / 1.311 GB, free: 13.16 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002315/0.4262, allocations: 11.95 kB / 1.311 GB, free: 13.14 MB / 1.014 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 (rea2Int.y,falFac.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.0001595/0.4263, allocations: 103.2 kB / 1.311 GB, free: 13.04 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002547/0.4266, allocations: 47.95 kB / 1.311 GB, free: 12.99 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4266, allocations: 3.938 kB / 1.311 GB, free: 12.98 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.4267, allocations: 23.98 kB / 1.311 GB, free: 12.96 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.427, allocations: 7.922 kB / 1.311 GB, free: 12.95 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003453/0.4273, allocations: 125.5 kB / 1.312 GB, free: 12.8 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.4277, allocations: 0.6768 MB / 1.312 GB, free: 12.1 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.577e-05/0.4277, allocations: 8 kB / 1.312 GB, free: 12.09 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.126e-05/0.4277, allocations: 11.44 kB / 1.312 GB, free: 12.08 MB / 1.014 GB Notification: Performance of SimCode: time 2.81e-07/0.4277, allocations: 0 / 1.312 GB, free: 12.08 MB / 1.014 GB Notification: Performance of Templates: time 0.003787/0.4315, allocations: 0.7903 MB / 1.313 GB, free: 11.3 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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.850794117897749]