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.001345/0.001345, allocations: 103.6 kB / 18.95 MB, free: 2.812 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.001523/0.001523, allocations: 213.6 kB / 22.25 MB, free: 5.105 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.793 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.418/3.418, allocations: 0.4892 GB / 0.7943 GB, free: 35.69 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.00204/0.00204, allocations: 75.31 kB / 1.153 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3831/0.3852, allocations: 176.1 MB / 1.325 GB, free: 2.348 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003543/0.3887, allocations: 1.544 MB / 1.327 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0005031/0.3892, allocations: 127.6 kB / 1.327 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.016e-05/0.3893, allocations: 0 / 1.327 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.037e-05/0.3893, allocations: 0 / 1.327 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.236e-05/0.3893, allocations: 3.938 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003037/0.3896, allocations: 31.92 kB / 1.327 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.75e-05/0.3897, allocations: 31.86 kB / 1.327 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.3898, allocations: 15.97 kB / 1.327 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.169e-05/0.3899, allocations: 4 kB / 1.327 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.536e-05/0.3899, allocations: 15.92 kB / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.39, allocations: 4 kB / 1.327 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.434e-05/0.39, allocations: 15.98 kB / 1.327 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.3901, allocations: 4 kB / 1.327 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.8e-05/0.3901, allocations: 15.92 kB / 1.327 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.3903, allocations: 36.11 kB / 1.327 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3903, allocations: 4 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.935e-06/0.3903, allocations: 0 / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.3903, allocations: 0 / 1.327 GB, free: 0.4922 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005568/0.3909, allocations: 266.3 kB / 1.327 GB, free: 204 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.3909, allocations: 12.03 kB / 1.327 GB, free: 192 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.259e-05/0.391, allocations: 30.75 kB / 1.327 GB, free: 152 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.201e-05/0.391, allocations: 0.9375 kB / 1.327 GB, free: 152 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.3911, allocations: 114.5 kB / 1.327 GB, free: 12 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.3911, allocations: 4.375 kB / 1.327 GB, free: 8 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.3912, allocations: 4.375 kB / 1.327 GB, free: 4 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.3914, allocations: 58.28 kB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3914, allocations: 3.938 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.3914, allocations: 8 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3914, allocations: 0 / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.3916, allocations: 35.95 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004727/0.3921, allocations: 235.8 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003601/0.3924, allocations: 54.55 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.3925, allocations: 32.83 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.961e-05/0.3926, allocations: 4 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.3927, allocations: 34.56 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3927, allocations: 0 / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004142/0.3931, allocations: 93.62 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.3931, allocations: 51.41 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.34e-05/0.3932, allocations: 109.7 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3932, allocations: 29.7 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.062e-05/0.3933, allocations: 88.12 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.77e-05/0.3933, allocations: 7.891 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.3934, allocations: 21.7 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3935, allocations: 310.8 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.814e-05/0.3936, allocations: 23.98 kB / 1.328 GB, free: 14.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.402e-05/0.3937, allocations: 23.97 kB / 1.328 GB, free: 14.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.3939, allocations: 45.23 kB / 1.328 GB, free: 14.63 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3939, allocations: 0 / 1.328 GB, free: 14.63 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002257/0.3941, allocations: 77.64 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.3941, allocations: 4 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3942, allocations: 48 / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.3942, allocations: 7.922 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.148e-05/0.3943, allocations: 11.98 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-06/0.3943, allocations: 0 / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.888e-05/0.3943, allocations: 11.94 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.3943, allocations: 7.984 kB / 1.329 GB, free: 14.51 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 9.39e-05/0.3944, allocations: 114.3 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.3945, allocations: 7.953 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.3947, allocations: 77.33 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3947, allocations: 0 / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3947, allocations: 0 / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3947, allocations: 0 / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.3949, allocations: 132.7 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3949, allocations: 7.938 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.744e-05/0.395, allocations: 19.92 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.395, allocations: 0 / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.395, allocations: 0 / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.395, allocations: 4 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.395, allocations: 0 / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.3953, allocations: 175.4 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-06/0.3953, allocations: 0 / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.3953, allocations: 4 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.318e-05/0.3954, allocations: 7.984 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.3955, allocations: 8 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.3955, allocations: 3.984 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.599e-05/0.3955, allocations: 79.28 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3955, allocations: 0 / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002237/0.3957, allocations: 8 kB / 1.329 GB, free: 13.79 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.0007285/0.3965, allocations: 0.7162 MB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002496/0.3967, allocations: 43.95 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3967, allocations: 0 / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.3968, allocations: 35.84 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.3971, allocations: 4 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005163/0.3977, allocations: 151.6 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.287e-05/0.3977, allocations: 59.34 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.331e-05/0.3978, allocations: 8 kB / 1.33 GB, free: 12.69 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.236e-05/0.3978, allocations: 15.42 kB / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.3978, allocations: 0 / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.4281, allocations: 2.13 MB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.73, allocations: 4.938 kB / 1.332 GB, free: 10.67 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.901399312075227]