Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.00186/0.00186, allocations: 109.3 kB / 16.46 MB, free: 6.035 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.002161/0.002161, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.515/1.515, allocations: 225.6 MB / 247.8 MB, free: 13.91 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.307/3.307, allocations: 497.2 MB / 0.7811 GB, free: 33.68 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 67.98 kB / 1.134 GB, free: 33.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.3629, allocations: 173.9 MB / 1.304 GB, free: 1.426 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001797/0.3647, allocations: 0.5719 MB / 1.305 GB, free: 0.8555 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002968/0.365, allocations: 51.78 kB / 1.305 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.153e-05/0.365, allocations: 4 kB / 1.305 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.339e-05/0.365, allocations: 0 / 1.305 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.971e-06/0.365, allocations: 0 / 1.305 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.3652, allocations: 23.92 kB / 1.305 GB, free: 0.7773 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.288e-05/0.3653, allocations: 0 / 1.305 GB, free: 0.7773 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.126e-05/0.3653, allocations: 3.984 kB / 1.305 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.3653, allocations: 4 kB / 1.305 GB, free: 0.7695 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.256e-05/0.3654, allocations: 3.938 kB / 1.305 GB, free: 0.7656 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.3654, allocations: 0 / 1.305 GB, free: 0.7656 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.457e-05/0.3654, allocations: 8 kB / 1.305 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.308e-06/0.3655, allocations: 0 / 1.305 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.3655, allocations: 15.92 kB / 1.305 GB, free: 0.7422 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.985e-05/0.3656, allocations: 11.98 kB / 1.305 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3656, allocations: 0 / 1.305 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3656, allocations: 0 / 1.305 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.237e-06/0.3656, allocations: 0 / 1.305 GB, free: 0.7305 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003556/0.3659, allocations: 315.8 kB / 1.305 GB, free: 380 kB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.366, allocations: 8.625 kB / 1.305 GB, free: 372 kB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.36e-05/0.366, allocations: 30.75 kB / 1.305 GB, free: 332 kB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.366, allocations: 8.938 kB / 1.305 GB, free: 324 kB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.3662, allocations: 164.4 kB / 1.305 GB, free: 120 kB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.3662, allocations: 4.375 kB / 1.305 GB, free: 116 kB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.3662, allocations: 384 / 1.305 GB, free: 116 kB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.3663, allocations: 42.19 kB / 1.305 GB, free: 68 kB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3663, allocations: 3.938 kB / 1.305 GB, free: 64 kB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.3663, allocations: 0 / 1.305 GB, free: 64 kB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3663, allocations: 0 / 1.305 GB, free: 64 kB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.514e-05/0.3664, allocations: 7.938 kB / 1.305 GB, free: 56 kB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001832/0.3665, allocations: 149.7 kB / 1.305 GB, free: 15.86 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.718e-05/0.3666, allocations: 26.58 kB / 1.305 GB, free: 15.82 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.289e-05/0.3666, allocations: 8.859 kB / 1.305 GB, free: 15.81 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001869/0.3668, allocations: 85.16 kB / 1.306 GB, free: 15.71 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.3668, allocations: 30.97 kB / 1.306 GB, free: 15.67 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3668, allocations: 0 / 1.306 GB, free: 15.67 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0001471/0.367, allocations: 45.58 kB / 1.306 GB, free: 15.62 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.367, allocations: 55.41 kB / 1.306 GB, free: 15.55 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.64e-05/0.3671, allocations: 93.98 kB / 1.306 GB, free: 15.45 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.3671, allocations: 29.69 kB / 1.306 GB, free: 15.42 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.205e-05/0.3671, allocations: 80.14 kB / 1.306 GB, free: 15.34 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.3671, allocations: 3.953 kB / 1.306 GB, free: 15.33 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/0.3672, allocations: 17.72 kB / 1.306 GB, free: 15.31 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.3673, allocations: 310.8 kB / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.3673, allocations: 0 / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.708e-06/0.3673, allocations: 4 kB / 1.306 GB, free: 14.99 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.266e-05/0.3674, allocations: 16.92 kB / 1.306 GB, free: 14.97 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.3674, allocations: 7.922 kB / 1.306 GB, free: 14.96 MB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.465e-05/0.3674, allocations: 37.64 kB / 1.306 GB, free: 14.92 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3674, allocations: 8 kB / 1.306 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3675, allocations: 3.938 kB / 1.306 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.3675, allocations: 0 / 1.306 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.435e-05/0.3675, allocations: 4 kB / 1.306 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.3675, allocations: 0 / 1.306 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.299e-05/0.3675, allocations: 0 / 1.306 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.3675, allocations: 8.016 kB / 1.306 GB, free: 14.9 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.658e-05/0.3676, allocations: 113.8 kB / 1.306 GB, free: 14.78 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-06/0.3676, allocations: 4 kB / 1.306 GB, free: 14.77 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.898e-05/0.3677, allocations: 48.69 kB / 1.306 GB, free: 14.71 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.3677, allocations: 4 kB / 1.306 GB, free: 14.71 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3677, allocations: 0 / 1.306 GB, free: 14.71 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3677, allocations: 3.938 kB / 1.306 GB, free: 14.71 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.3678, allocations: 141.7 kB / 1.307 GB, free: 14.52 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.3678, allocations: 4.031 kB / 1.307 GB, free: 14.52 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.34e-05/0.3679, allocations: 7.984 kB / 1.307 GB, free: 14.51 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3679, allocations: 0 / 1.307 GB, free: 14.51 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.3679, allocations: 3.938 kB / 1.307 GB, free: 14.5 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3679, allocations: 4 kB / 1.307 GB, free: 14.5 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3679, allocations: 0 / 1.307 GB, free: 14.5 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.493e-05/0.368, allocations: 69.12 kB / 1.307 GB, free: 14.41 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 4.008e-05/0.368, allocations: 77.11 kB / 1.307 GB, free: 14.32 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.368, allocations: 7.969 kB / 1.307 GB, free: 14.31 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.066e-05/0.368, allocations: 0 / 1.307 GB, free: 14.31 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.3681, allocations: 7.938 kB / 1.307 GB, free: 14.3 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.3681, allocations: 4 kB / 1.307 GB, free: 14.3 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.783e-05/0.3681, allocations: 75.28 kB / 1.307 GB, free: 14.23 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3681, allocations: 0 / 1.307 GB, free: 14.23 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001927/0.3683, allocations: 7.938 kB / 1.307 GB, free: 14.22 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004344/0.3687, allocations: 0.6046 MB / 1.307 GB, free: 13.58 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 7.739e-05/0.3688, allocations: 15.92 kB / 1.307 GB, free: 13.57 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3688, allocations: 0 / 1.307 GB, free: 13.57 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 1.355e-05/0.3688, allocations: 4 kB / 1.307 GB, free: 13.56 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.369, allocations: 4 kB / 1.307 GB, free: 13.56 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003068/0.3693, allocations: 118.7 kB / 1.308 GB, free: 13.4 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.3696, allocations: 0.6729 MB / 1.308 GB, free: 12.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 1.173e-05/0.3696, allocations: 0 / 1.308 GB, free: 12.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.937e-05/0.3696, allocations: 11.38 kB / 1.308 GB, free: 12.69 MB / 1.014 GB Notification: Performance of SimCode: time 3.51e-07/0.3696, allocations: 0 / 1.308 GB, free: 12.69 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/0.393, allocations: 1.076 MB / 1.309 GB, free: 11.71 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.241, allocations: 6.266 kB / 1.309 GB, free: 11.71 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.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: 15.052045705262572]