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.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.001227/0.001227, allocations: 72.45 kB / 19.17 MB, free: 0.7344 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.0008642/0.0008642, allocations: 173.9 kB / 22.46 MB, free: 2.09 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.8921/0.8921, allocations: 177.1 MB / 202.8 MB, free: 5.723 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.806/1.806, allocations: 389 MB / 0.633 GB, free: 12.65 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.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 1.883e-06/1.883e-06, allocations: 0 / 0.9997 GB, free: 13.42 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.242e-05/2.431e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.42 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001259/0.001283, allocations: 0.5938 MB / 1 GB, free: 12.83 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002195/0.001503, allocations: 43.86 kB / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.593e-05/0.001519, allocations: 3.938 kB / 1 GB, free: 12.78 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 1.517e-05/0.001534, allocations: 0 / 1 GB, free: 12.78 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.00154, allocations: 0 / 1 GB, free: 12.78 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.00178, allocations: 15.86 kB / 1 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 4.9e-05/0.001829, allocations: 8 kB / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.408e-05/0.001873, allocations: 0 / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 3.239e-05/0.001905, allocations: 11.92 kB / 1 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 2.029e-05/0.001926, allocations: 0 / 1 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.00194, allocations: 0 / 1 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.757e-05/0.002017, allocations: 8 kB / 1 GB, free: 12.74 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.203e-05/0.002029, allocations: 7.984 kB / 1 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.356e-05/0.002043, allocations: 0 / 1 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 9.453e-05/0.002137, allocations: 11.98 kB / 1 GB, free: 12.72 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.00214, allocations: 0 / 1 GB, free: 12.72 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.382e-06/0.002141, allocations: 0 / 1 GB, free: 12.72 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.002146, allocations: 0 / 1 GB, free: 12.72 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002587/0.002404, allocations: 242.4 kB / 1.001 GB, free: 12.45 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.002444, allocations: 12.75 kB / 1.001 GB, free: 12.44 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.025e-05/0.002474, allocations: 30.75 kB / 1.001 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.275e-05/0.002497, allocations: 0.9375 kB / 1.001 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.567e-05/0.002553, allocations: 109.7 kB / 1.001 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.002563, allocations: 384 / 1.001 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-06/0.00257, allocations: 4.375 kB / 1.001 GB, free: 12.26 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.409e-05/0.002664, allocations: 34.25 kB / 1.001 GB, free: 12.22 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.002678, allocations: 192 / 1.001 GB, free: 12.22 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.002686, allocations: 4.375 kB / 1.001 GB, free: 12.22 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.002691, allocations: 4.125 kB / 1.001 GB, free: 12.21 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.215e-05/0.002723, allocations: 0 / 1.001 GB, free: 12.21 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001091/0.002832, allocations: 124.8 kB / 1.001 GB, free: 12.05 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.033e-05/0.002883, allocations: 30.48 kB / 1.001 GB, free: 12.01 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.002901, allocations: 8.922 kB / 1.001 GB, free: 12 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001516/0.003053, allocations: 4 kB / 1.001 GB, free: 12 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.003074, allocations: 34.56 kB / 1.001 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.003075, allocations: 0 / 1.001 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0001465/0.003221, allocations: 37.69 kB / 1.001 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.003258, allocations: 59.34 kB / 1.001 GB, free: 11.84 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.631e-05/0.003294, allocations: 93.86 kB / 1.001 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.003303, allocations: 25.7 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 2.075e-05/0.003324, allocations: 80.14 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.003344, allocations: 8.078 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.488e-05/0.003369, allocations: 21.64 kB / 1.001 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.003456, allocations: 314.8 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.278e-05/0.003469, allocations: 7.938 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.445e-06/0.003477, allocations: 4 kB / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.181e-05/0.003509, allocations: 12.86 kB / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.003511, allocations: 0 / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.089e-05/0.003562, allocations: 41.69 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.003576, allocations: 4 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.003581, allocations: 4.094 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.003594, allocations: 0 / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.298e-05/0.003667, allocations: 4 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.003675, allocations: 7.875 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.091e-05/0.003686, allocations: 0 / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.00369, allocations: 0 / 1.002 GB, free: 11.18 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 (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 5.885e-05/0.003749, allocations: 109.8 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.003756, allocations: 7.969 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.127e-05/0.003837, allocations: 40.86 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.003839, allocations: 0 / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.003845, allocations: 7.969 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.003849, allocations: 0 / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.299e-05/0.003922, allocations: 128.7 kB / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.003923, allocations: 0 / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.671e-05/0.00394, allocations: 4 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.003942, allocations: 0 / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.003948, allocations: 0 / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.003948, allocations: 3.938 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.00395, allocations: 3.938 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.5e-05/0.004005, allocations: 69.06 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-06/0.004009, allocations: 4.031 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.078e-05/0.00402, allocations: 0 / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.32e-06/0.004025, allocations: 0 / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.861e-05/0.004054, allocations: 11.92 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-06/0.004055, allocations: 0 / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.066e-05/0.004076, allocations: 75.28 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of sort global known variables: time 4e-08/0.004076, allocations: 0 / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001226/0.004199, allocations: 4 kB / 1.002 GB, free: 10.64 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,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.0002808/0.00448, allocations: 0.5968 MB / 1.003 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 7.417e-05/0.004554, allocations: 16.03 kB / 1.003 GB, free: 9.996 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.004555, allocations: 0 / 1.003 GB, free: 9.996 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.346e-05/0.004569, allocations: 7.984 kB / 1.003 GB, free: 9.988 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.631e-05/0.004665, allocations: 3.938 kB / 1.003 GB, free: 9.984 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002447/0.00491, allocations: 110.7 kB / 1.003 GB, free: 9.836 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.757e-05/0.004947, allocations: 63.28 kB / 1.003 GB, free: 9.754 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.116e-05/0.004958, allocations: 7.938 kB / 1.003 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.096e-05/0.004979, allocations: 12.5 kB / 1.003 GB, free: 9.734 MB / 0.9636 GB Notification: Performance of SimCode: time 7.12e-07/0.00498, allocations: 0 / 1.003 GB, free: 9.734 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01454/0.01952, allocations: 1.712 MB / 1.005 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.865/6.885, allocations: 2.344 kB / 1.005 GB, free: 8.156 MB / 0.9636 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 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.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 11.067298443987966]