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.001167/0.001167, 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.0008789/0.0008789, allocations: 170.3 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.8873/0.8873, allocations: 177.2 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.783/1.783, allocations: 389 MB / 0.633 GB, free: 12.66 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.222e-06/1.222e-06, allocations: 0 / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.241e-05/1.364e-05, allocations: 6.219 kB / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00176/0.001774, allocations: 1.528 MB / 1.001 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002624/0.002036, allocations: 127.4 kB / 1.001 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.029e-05/0.002066, allocations: 8 kB / 1.001 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.646e-05/0.002093, allocations: 3.938 kB / 1.001 GB, free: 11.81 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 3.554e-05/0.002128, allocations: 3.938 kB / 1.001 GB, free: 11.81 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.002346, allocations: 31.84 kB / 1.001 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 5.853e-05/0.002405, allocations: 27.92 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.592e-05/0.002491, allocations: 3.984 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 5.448e-05/0.002545, allocations: 19.98 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.116e-05/0.002586, allocations: 15.92 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.002601, allocations: 4 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.2e-05/0.002653, allocations: 7.984 kB / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.337e-05/0.002666, allocations: 12 kB / 1.001 GB, free: 11.69 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.793e-05/0.002684, allocations: 7.984 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.002785, allocations: 47.81 kB / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.002786, allocations: 0 / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.72e-07/0.002787, allocations: 0 / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.002791, allocations: 0 / 1.001 GB, free: 11.63 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.0003265/0.003117, allocations: 266.3 kB / 1.002 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.003153, allocations: 12.75 kB / 1.002 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.666e-05/0.003179, allocations: 30.75 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.931e-05/0.003199, allocations: 0.9375 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.743e-05/0.003266, allocations: 117.7 kB / 1.002 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.003286, allocations: 8.312 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.717e-06/0.003294, allocations: 4.375 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.003416, allocations: 51.02 kB / 1.002 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.003423, allocations: 192 / 1.002 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-06/0.003431, allocations: 4.375 kB / 1.002 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.003436, allocations: 4.125 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000103/0.003539, allocations: 39.95 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000273/0.003812, allocations: 232.1 kB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.004012, allocations: 54.48 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.082e-05/0.004063, allocations: 28.89 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 6.954e-05/0.004133, allocations: 7.938 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.00415, allocations: 34.56 kB / 1.002 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.004151, allocations: 0 / 1.002 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0002341/0.004385, allocations: 97.75 kB / 1.002 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/0.004413, allocations: 51.41 kB / 1.002 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.627e-05/0.004479, allocations: 105.8 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.009e-05/0.004489, allocations: 25.7 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.959e-05/0.004529, allocations: 96.03 kB / 1.003 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.382e-05/0.004543, allocations: 3.953 kB / 1.003 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.634e-05/0.004569, allocations: 17.72 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.004641, allocations: 314.8 kB / 1.003 GB, free: 9.871 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.783e-05/0.004689, allocations: 19.98 kB / 1.003 GB, free: 9.852 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.022e-05/0.004729, allocations: 19.98 kB / 1.003 GB, free: 9.832 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.749e-05/0.004816, allocations: 44.81 kB / 1.003 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.004818, allocations: 3.938 kB / 1.003 GB, free: 9.781 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001156/0.004934, allocations: 81.53 kB / 1.003 GB, free: 9.695 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.004947, allocations: 7.984 kB / 1.003 GB, free: 9.688 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.004951, allocations: 0 / 1.003 GB, free: 9.688 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.004963, allocations: 0 / 1.003 GB, free: 9.688 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.005006, allocations: 15.98 kB / 1.003 GB, free: 9.672 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.005011, allocations: 0 / 1.003 GB, free: 9.672 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.653e-05/0.005037, allocations: 7.938 kB / 1.003 GB, free: 9.664 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.005044, allocations: 8 kB / 1.003 GB, free: 9.656 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.417e-05/0.005098, allocations: 109.8 kB / 1.003 GB, free: 9.539 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.423e-05/0.005112, allocations: 11.92 kB / 1.003 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.005264, allocations: 77.33 kB / 1.003 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.005265, allocations: 0 / 1.003 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.005269, allocations: 4 kB / 1.003 GB, free: 9.434 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.005272, allocations: 0 / 1.003 GB, free: 9.434 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.005381, allocations: 140.6 kB / 1.004 GB, free: 9.254 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.005382, allocations: 0 / 1.004 GB, free: 9.254 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.331e-05/0.005415, allocations: 15.92 kB / 1.004 GB, free: 9.238 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-06/0.005416, allocations: 0 / 1.004 GB, free: 9.238 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.005423, allocations: 0 / 1.004 GB, free: 9.238 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.005425, allocations: 0 / 1.004 GB, free: 9.238 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.005426, allocations: 4 kB / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001385/0.005564, allocations: 171.5 kB / 1.004 GB, free: 9.051 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.085e-06/0.005572, allocations: 7.938 kB / 1.004 GB, free: 9.043 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.328e-06/0.005582, allocations: 0 / 1.004 GB, free: 9.043 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.939e-05/0.005621, allocations: 4 kB / 1.004 GB, free: 9.039 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.005662, allocations: 8.406 kB / 1.004 GB, free: 9.031 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.005664, allocations: 0 / 1.004 GB, free: 9.031 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.613e-05/0.00569, allocations: 91.25 kB / 1.004 GB, free: 8.941 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.00569, allocations: 3.938 kB / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000148/0.005838, allocations: 8 kB / 1.004 GB, free: 8.93 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.0003932/0.006231, allocations: 0.7123 MB / 1.005 GB, free: 8.191 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001293/0.006361, allocations: 43.95 kB / 1.005 GB, free: 8.148 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.006362, allocations: 0 / 1.005 GB, free: 8.148 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.865e-05/0.006411, allocations: 27.92 kB / 1.005 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001839/0.006595, allocations: 10.08 kB / 1.005 GB, free: 8.113 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003143/0.006909, allocations: 146.1 kB / 1.005 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.319e-05/0.006952, allocations: 71.28 kB / 1.005 GB, free: 7.844 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.108e-05/0.006973, allocations: 4 kB / 1.005 GB, free: 7.84 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.172e-05/0.007005, allocations: 16.48 kB / 1.005 GB, free: 7.824 MB / 0.9636 GB Notification: Performance of SimCode: time 3.21e-07/0.007005, allocations: 3.938 kB / 1.005 GB, free: 7.82 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01318/0.02019, allocations: 2.269 MB / 1.007 GB, free: 5.688 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.808/6.828, allocations: 10.19 kB / 1.007 GB, free: 5.68 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=800 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.866390738636255]