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.001865/0.001865, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002424/0.002424, allocations: 222.6 kB / 22.25 MB, free: 5.098 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.575/1.575, allocations: 230.6 MB / 256 MB, free: 7.805 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 3.299/3.299, allocations: 0.49 GB / 0.7951 GB, free: 35.63 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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [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.002022/0.002022, allocations: 67.78 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3969/0.3989, allocations: 176.1 MB / 1.326 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003324/0.4022, allocations: 1.543 MB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0004319/0.4026, allocations: 119.7 kB / 1.327 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.332e-05/0.4027, allocations: 0 / 1.327 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.875e-05/0.4027, allocations: 3.938 kB / 1.327 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.918e-05/0.4028, allocations: 3.938 kB / 1.327 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002822/0.4031, allocations: 19.98 kB / 1.327 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.971e-05/0.4031, allocations: 43.84 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.4033, allocations: 7.984 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 5.069e-05/0.4033, allocations: 8 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.04e-05/0.4034, allocations: 19.92 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.4034, allocations: 4 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.822e-05/0.4035, allocations: 11.98 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.86e-05/0.4035, allocations: 7.984 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.539e-05/0.4035, allocations: 7.938 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.4036, allocations: 40.11 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4036, allocations: 0 / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.753e-06/0.4036, allocations: 3.938 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.373e-06/0.4037, allocations: 4 kB / 1.328 GB, free: 15.64 MB / 1.029 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.0005785/0.4042, allocations: 266.3 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4043, allocations: 8.031 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.855e-05/0.4043, allocations: 38.75 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.4044, allocations: 4.922 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.4045, allocations: 110.5 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.4045, allocations: 384 / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.4045, allocations: 4.375 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/0.4047, allocations: 58.23 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.4048, allocations: 7.875 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.4048, allocations: 0 / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.4048, allocations: 4 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.405, allocations: 51.83 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.4054, allocations: 236 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.4057, allocations: 54.53 kB / 1.328 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.4058, allocations: 24.91 kB / 1.328 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.807e-05/0.4059, allocations: 8 kB / 1.328 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.4059, allocations: 34.5 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.4059, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003723/0.4063, allocations: 93.61 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.4063, allocations: 55.41 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.145e-05/0.4064, allocations: 101.8 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.4064, allocations: 25.7 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.487e-05/0.4065, allocations: 96.09 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.4065, allocations: 3.953 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.4065, allocations: 17.7 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.4066, allocations: 314.8 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.645e-05/0.4067, allocations: 15.98 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.635e-05/0.4068, allocations: 23.97 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.407, allocations: 48.7 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.407, allocations: 4 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002162/0.4072, allocations: 77.64 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.4072, allocations: 4 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.4072, allocations: 0 / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.4072, allocations: 0 / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.708e-05/0.4073, allocations: 11.98 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.4073, allocations: 0 / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.578e-05/0.4074, allocations: 11.92 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.4074, allocations: 0 / 1.329 GB, free: 13.66 MB / 1.029 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 8.929e-05/0.4075, allocations: 118.3 kB / 1.329 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.354e-05/0.4075, allocations: 3.938 kB / 1.329 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.4078, allocations: 89.28 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.4078, allocations: 0 / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.4078, allocations: 3.938 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.4078, allocations: 0 / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001773/0.4079, allocations: 132.7 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4079, allocations: 0 / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-05/0.408, allocations: 15.98 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.408, allocations: 0 / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.408, allocations: 0 / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.408, allocations: 0 / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.408, allocations: 0 / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002814/0.4083, allocations: 187.9 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.752e-06/0.4083, allocations: 0 / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.4084, allocations: 7.938 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.727e-05/0.4084, allocations: 11.98 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.277e-05/0.4085, allocations: 4.047 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.4085, allocations: 7.969 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.034e-05/0.4086, allocations: 83.28 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4086, allocations: 0 / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002335/0.4088, allocations: 8 kB / 1.33 GB, free: 12.92 MB / 1.029 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.0006804/0.4095, allocations: 0.7123 MB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002337/0.4097, allocations: 43.95 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4097, allocations: 0 / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.842e-05/0.4098, allocations: 23.97 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.4101, allocations: 9.719 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004613/0.4106, allocations: 151.1 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.873e-05/0.4106, allocations: 59.34 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.153e-05/0.4107, allocations: 8 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.816e-05/0.4107, allocations: 19.42 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.4107, allocations: 0 / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.4396, allocations: 2.141 MB / 1.333 GB, free: 9.801 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.48, allocations: 14.25 kB / 1.333 GB, free: 9.789 MB / 1.029 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_12_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.csv","/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] "Error: Could not read variable fac.y in file Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.csv. Warning: Get data of variable fac.y from file Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.72113003800041]