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.001646/0.001646, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002008/0.002008, allocations: 219.5 kB / 22.26 MB, free: 5.121 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.542/1.542, allocations: 230.6 MB / 256 MB, free: 7.988 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.294/3.294, allocations: 0.49 GB / 0.7951 GB, free: 33.41 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.003218/0.003218, allocations: 66.61 kB / 1.154 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3801/0.3834, allocations: 176.1 MB / 1.326 GB, free: 1.914 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00286/0.3862, allocations: 1.545 MB / 1.327 GB, free: 372 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003885/0.3866, allocations: 127.6 kB / 1.328 GB, free: 244 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.141e-05/0.3866, allocations: 0 / 1.328 GB, free: 244 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.79e-05/0.3867, allocations: 3.938 kB / 1.328 GB, free: 240 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.176e-05/0.3867, allocations: 0 / 1.328 GB, free: 240 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.387, allocations: 27.92 kB / 1.328 GB, free: 212 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.878e-05/0.3871, allocations: 31.91 kB / 1.328 GB, free: 180 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.3872, allocations: 11.98 kB / 1.328 GB, free: 168 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.777e-05/0.3872, allocations: 11.94 kB / 1.328 GB, free: 156 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.122e-05/0.3873, allocations: 15.92 kB / 1.328 GB, free: 140 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.733e-05/0.3873, allocations: 4 kB / 1.328 GB, free: 136 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.266e-05/0.3874, allocations: 11.98 kB / 1.328 GB, free: 124 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.385e-05/0.3874, allocations: 12 kB / 1.328 GB, free: 112 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.905e-05/0.3874, allocations: 11.92 kB / 1.328 GB, free: 100 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.3875, allocations: 40.11 kB / 1.328 GB, free: 60 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3876, allocations: 3.938 kB / 1.328 GB, free: 56 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3876, allocations: 0 / 1.328 GB, free: 56 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.3876, allocations: 0 / 1.328 GB, free: 56 kB / 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.0005242/0.3881, allocations: 266.3 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3881, allocations: 8.031 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.991e-05/0.3882, allocations: 38.75 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.663e-05/0.3882, allocations: 4.938 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.3883, allocations: 122.4 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.3884, allocations: 384 / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.3884, allocations: 384 / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.3886, allocations: 58.23 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3886, allocations: 3.938 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.3886, allocations: 3.938 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3886, allocations: 0 / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.3888, allocations: 47.95 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.3892, allocations: 239.9 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.3896, allocations: 54.55 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.3897, allocations: 28.89 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.189e-05/0.3897, allocations: 8 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.3898, allocations: 30.56 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.3898, allocations: 0 / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004098/0.3902, allocations: 93.56 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.3902, allocations: 51.41 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.052e-05/0.3903, allocations: 105.8 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.3904, allocations: 29.7 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.3904, allocations: 88.09 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.3904, allocations: 3.953 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.3905, allocations: 17.72 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3906, allocations: 314.8 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.215e-05/0.3907, allocations: 19.98 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.107e-05/0.3908, allocations: 23.97 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.3909, allocations: 44.77 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3909, allocations: 0 / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002252/0.3912, allocations: 81.58 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3912, allocations: 5.562 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3912, allocations: 4 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3912, allocations: 0.5156 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.117e-05/0.3913, allocations: 15.98 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.3913, allocations: 0 / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.794e-05/0.3914, allocations: 7.938 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-06/0.3914, allocations: 4 kB / 1.329 GB, free: 14.07 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 0.0001044/0.3915, allocations: 118.3 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.3915, allocations: 7.938 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002912/0.3918, allocations: 93.2 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3918, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3918, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3918, allocations: 3.938 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.392, allocations: 136.7 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.392, allocations: 0 / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.585e-05/0.3921, allocations: 15.98 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3921, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.3921, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3921, allocations: 0 / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3921, allocations: 7.984 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.3924, allocations: 171.5 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.115e-05/0.3924, allocations: 7.984 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.3924, allocations: 0 / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.08e-05/0.3925, allocations: 4 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.3925, allocations: 11.92 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.3925, allocations: 8 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.635e-05/0.3926, allocations: 83.27 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3926, allocations: 0 / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002258/0.3928, allocations: 4 kB / 1.33 GB, free: 13.33 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.000651/0.3935, allocations: 0.7124 MB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002369/0.3937, allocations: 47.89 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3937, allocations: 0 / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.634e-05/0.3938, allocations: 23.98 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.3941, allocations: 3.984 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005598/0.3947, allocations: 155.1 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.3951, allocations: 0.6768 MB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.434e-05/0.3951, allocations: 4 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.3951, allocations: 11.42 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.3951, allocations: 4 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02725/0.4224, allocations: 1.706 MB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.13, allocations: 5.781 kB / 1.333 GB, free: 10.02 MB / 1.029 GB " [Timeout remaining time 289] (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.292543232000753]