Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008548/0.0008548, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009129/0.0009129, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8859/0.8859, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.781/1.781, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.35e-05/1.54e-05, allocations: 4.812 kB / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001823/0.001839, allocations: 1.528 MB / 1.001 GB, free: 11.98 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002676/0.002106, allocations: 123.5 kB / 1.001 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.039e-05/0.002137, allocations: 0 / 1.001 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.596e-05/0.002163, allocations: 3.938 kB / 1.001 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.558e-05/0.002208, allocations: 0 / 1.001 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.002436, allocations: 35.78 kB / 1.001 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 6.496e-05/0.0025, allocations: 27.92 kB / 1.001 GB, free: 11.8 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.237e-05/0.002593, allocations: 19.97 kB / 1.001 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 5.099e-05/0.002644, allocations: 15.92 kB / 1.001 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.353e-05/0.002687, allocations: 15.98 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.002701, allocations: 0 / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.091e-05/0.002762, allocations: 15.98 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.002774, allocations: 4 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.981e-05/0.002794, allocations: 11.92 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.002902, allocations: 35.89 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.002904, allocations: 4 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.182e-06/0.002905, allocations: 0 / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.002908, allocations: 0 / 1.001 GB, free: 11.68 MB / 0.9636 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.0003544/0.003263, allocations: 266.3 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.003301, allocations: 8.75 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.083e-05/0.003332, allocations: 38.73 kB / 1.002 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.75e-05/0.00336, allocations: 4.938 kB / 1.002 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.672e-05/0.003436, allocations: 109.7 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.003455, allocations: 4.375 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-06/0.003465, allocations: 4.312 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.003599, allocations: 59.02 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.003608, allocations: 4.172 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.003616, allocations: 4.375 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.003623, allocations: 8.125 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.003723, allocations: 39.95 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002902/0.004013, allocations: 224 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000211/0.004224, allocations: 66.41 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.09e-05/0.004275, allocations: 24.91 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 7.746e-05/0.004352, allocations: 11.94 kB / 1.002 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.004367, allocations: 34.55 kB / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.004369, allocations: 0 / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0002241/0.004593, allocations: 89.64 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.004619, allocations: 55.34 kB / 1.002 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.926e-05/0.004668, allocations: 105.8 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.407e-06/0.004677, allocations: 25.7 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.346e-05/0.004711, allocations: 84.09 kB / 1.003 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.004725, allocations: 15.95 kB / 1.003 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.004752, allocations: 17.7 kB / 1.003 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.835e-05/0.00482, allocations: 310.8 kB / 1.003 GB, free: 9.906 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.55e-05/0.004866, allocations: 19.98 kB / 1.003 GB, free: 9.887 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.075e-05/0.004906, allocations: 19.97 kB / 1.003 GB, free: 9.867 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.667e-05/0.004993, allocations: 48.81 kB / 1.003 GB, free: 9.816 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.004995, allocations: 3.938 kB / 1.003 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001124/0.005107, allocations: 78 kB / 1.003 GB, free: 9.73 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.005119, allocations: 8 kB / 1.003 GB, free: 9.723 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.005123, allocations: 0 / 1.003 GB, free: 9.723 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.378e-06/0.005133, allocations: 0 / 1.003 GB, free: 9.723 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.476e-05/0.005177, allocations: 11.98 kB / 1.003 GB, free: 9.711 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.005182, allocations: 0 / 1.003 GB, free: 9.711 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.805e-05/0.00521, allocations: 11.98 kB / 1.003 GB, free: 9.699 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-06/0.005215, allocations: 48 / 1.003 GB, free: 9.699 MB / 0.9636 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 5.631e-05/0.005271, allocations: 117.8 kB / 1.003 GB, free: 9.574 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.005284, allocations: 3.938 kB / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.005431, allocations: 81.33 kB / 1.003 GB, free: 9.477 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.005433, allocations: 0 / 1.003 GB, free: 9.477 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.005437, allocations: 0 / 1.003 GB, free: 9.477 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.005439, allocations: 0 / 1.003 GB, free: 9.477 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.005544, allocations: 132.8 kB / 1.004 GB, free: 9.305 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.005545, allocations: 3.938 kB / 1.004 GB, free: 9.301 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.295e-05/0.005578, allocations: 15.92 kB / 1.004 GB, free: 9.285 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.005579, allocations: 7.938 kB / 1.004 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-06/0.005584, allocations: 0 / 1.004 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.005585, allocations: 0 / 1.004 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.005586, allocations: 0 / 1.004 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.005723, allocations: 171.5 kB / 1.004 GB, free: 9.094 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-06/0.00573, allocations: 11.88 kB / 1.004 GB, free: 9.082 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.898e-06/0.00574, allocations: 4 kB / 1.004 GB, free: 9.078 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.071e-05/0.00578, allocations: 7.984 kB / 1.004 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.899e-05/0.005819, allocations: 7.984 kB / 1.004 GB, free: 9.062 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.005823, allocations: 8 kB / 1.004 GB, free: 9.055 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.457e-05/0.005848, allocations: 79.28 kB / 1.004 GB, free: 8.977 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.005848, allocations: 0 / 1.004 GB, free: 8.977 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001523/0.006, allocations: 8 kB / 1.004 GB, free: 8.969 MB / 0.9636 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.0004102/0.00641, allocations: 0.7045 MB / 1.005 GB, free: 8.238 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001417/0.006552, allocations: 47.95 kB / 1.005 GB, free: 8.191 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.006554, allocations: 4 kB / 1.005 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.132e-05/0.006605, allocations: 23.91 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.006809, allocations: 9.562 kB / 1.005 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003573/0.007167, allocations: 142.5 kB / 1.005 GB, free: 7.977 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.309e-05/0.00722, allocations: 71.28 kB / 1.005 GB, free: 7.887 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.373e-05/0.007244, allocations: 7.984 kB / 1.005 GB, free: 7.879 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.457e-05/0.007278, allocations: 16.97 kB / 1.005 GB, free: 7.863 MB / 0.9636 GB Notification: Performance of SimCode: time 8.22e-07/0.007279, allocations: 3.938 kB / 1.005 GB, free: 7.859 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01466/0.02194, allocations: 2.267 MB / 1.007 GB, free: 5.727 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.88/6.902, allocations: 6.125 kB / 1.007 GB, free: 5.723 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv. Warning: Get data of variable fac.y from file Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.089716306887567]