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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002144/0.002144, allocations: 105.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002181/0.002181, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.585/1.585, allocations: 225.6 MB / 247.8 MB, free: 3.727 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.944/2.944, allocations: 497.2 MB / 0.7811 GB, free: 12.14 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002066/0.002066, allocations: 67.89 kB / 1.134 GB, free: 13.16 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.063/1.065, allocations: 173.9 MB / 1.304 GB, free: 32.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002556/1.068, allocations: 1.512 MB / 1.305 GB, free: 31.04 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003448/1.068, allocations: 135.8 kB / 1.306 GB, free: 30.95 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.884e-05/1.068, allocations: 0 / 1.306 GB, free: 30.95 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.188e-05/1.068, allocations: 3.938 kB / 1.306 GB, free: 30.95 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.928e-05/1.068, allocations: 3.984 kB / 1.306 GB, free: 30.94 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000243/1.068, allocations: 28.39 kB / 1.306 GB, free: 30.93 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.457e-05/1.068, allocations: 30.86 kB / 1.306 GB, free: 30.91 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/1.069, allocations: 10.23 kB / 1.306 GB, free: 30.91 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.373e-05/1.069, allocations: 13.89 kB / 1.306 GB, free: 30.9 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.342e-05/1.069, allocations: 17.67 kB / 1.306 GB, free: 30.89 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/1.069, allocations: 0 / 1.306 GB, free: 30.89 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.383e-05/1.069, allocations: 19.98 kB / 1.306 GB, free: 30.88 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.349e-05/1.069, allocations: 3.188 kB / 1.306 GB, free: 30.88 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.461e-05/1.069, allocations: 10.88 kB / 1.306 GB, free: 30.88 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001226/1.069, allocations: 36.5 kB / 1.306 GB, free: 30.86 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/1.069, allocations: 0 / 1.306 GB, free: 30.86 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.563e-06/1.069, allocations: 0 / 1.306 GB, free: 30.86 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.743e-06/1.069, allocations: 2.906 kB / 1.306 GB, free: 30.86 MB / 1.061 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.0004384/1.069, allocations: 347.8 kB / 1.306 GB, free: 30.49 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/1.069, allocations: 12.53 kB / 1.306 GB, free: 30.49 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.699e-05/1.069, allocations: 37.56 kB / 1.306 GB, free: 30.45 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.565e-05/1.069, allocations: 0.9375 kB / 1.306 GB, free: 30.45 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/1.07, allocations: 170.3 kB / 1.306 GB, free: 30.25 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/1.07, allocations: 384 / 1.306 GB, free: 30.25 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/1.07, allocations: 3.281 kB / 1.306 GB, free: 30.25 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001985/1.07, allocations: 58.19 kB / 1.306 GB, free: 30.21 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/1.07, allocations: 3.938 kB / 1.306 GB, free: 30.2 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/1.07, allocations: 0 / 1.306 GB, free: 30.2 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/1.07, allocations: 2.812 kB / 1.306 GB, free: 30.2 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/1.07, allocations: 48.42 kB / 1.306 GB, free: 30.19 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00034/1.07, allocations: 273.5 kB / 1.307 GB, free: 29.9 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003041/1.071, allocations: 56.17 kB / 1.307 GB, free: 29.87 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.726e-05/1.071, allocations: 31.55 kB / 1.307 GB, free: 29.85 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/1.071, allocations: 80.05 kB / 1.307 GB, free: 29.76 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.613e-05/1.071, allocations: 30.56 kB / 1.307 GB, free: 29.72 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/1.071, allocations: 0 / 1.307 GB, free: 29.72 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003549/1.071, allocations: 95.03 kB / 1.307 GB, free: 29.68 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/1.071, allocations: 51.41 kB / 1.307 GB, free: 29.61 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.265e-05/1.071, allocations: 104 kB / 1.307 GB, free: 29.51 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/1.071, allocations: 29.03 kB / 1.307 GB, free: 29.48 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.334e-05/1.071, allocations: 88.09 kB / 1.307 GB, free: 29.39 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/1.071, allocations: 6.734 kB / 1.307 GB, free: 29.38 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/1.071, allocations: 16.66 kB / 1.307 GB, free: 29.36 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.718e-05/1.071, allocations: 318.1 kB / 1.308 GB, free: 29.05 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.12e-05/1.072, allocations: 17.95 kB / 1.308 GB, free: 29.04 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.77e-05/1.072, allocations: 21.23 kB / 1.308 GB, free: 29.04 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001406/1.072, allocations: 50.36 kB / 1.308 GB, free: 29.02 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/1.072, allocations: 0 / 1.308 GB, free: 29.02 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001789/1.072, allocations: 76.64 kB / 1.308 GB, free: 28.98 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/1.072, allocations: 5.969 kB / 1.308 GB, free: 28.98 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/1.072, allocations: 0 / 1.308 GB, free: 28.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/1.072, allocations: 0 / 1.308 GB, free: 28.98 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.422e-05/1.072, allocations: 16.23 kB / 1.308 GB, free: 28.97 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/1.072, allocations: 7.312 kB / 1.308 GB, free: 28.97 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.978e-05/1.072, allocations: 2.656 kB / 1.308 GB, free: 28.97 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/1.072, allocations: 2.844 kB / 1.308 GB, free: 28.97 MB / 1.061 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.991e-05/1.072, allocations: 124.7 kB / 1.308 GB, free: 28.84 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.354e-05/1.072, allocations: 0 / 1.308 GB, free: 28.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002306/1.072, allocations: 88.3 kB / 1.308 GB, free: 28.79 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/1.072, allocations: 0.5625 kB / 1.308 GB, free: 28.79 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.072, allocations: 0 / 1.308 GB, free: 28.79 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/1.072, allocations: 3.031 kB / 1.308 GB, free: 28.79 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/1.073, allocations: 165.9 kB / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/1.073, allocations: 0 / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/1.073, allocations: 18.45 kB / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/1.073, allocations: 0 / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/1.073, allocations: 0 / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/1.073, allocations: 2.875 kB / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/1.073, allocations: 7.984 kB / 1.308 GB, free: 28.58 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/1.073, allocations: 174.8 kB / 1.308 GB, free: 28.43 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/1.073, allocations: 77.11 kB / 1.308 GB, free: 28.34 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/1.073, allocations: 2.844 kB / 1.308 GB, free: 28.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.886e-05/1.073, allocations: 5.984 kB / 1.308 GB, free: 28.34 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.785e-05/1.073, allocations: 9.906 kB / 1.308 GB, free: 28.33 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/1.073, allocations: 6.969 kB / 1.308 GB, free: 28.33 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.245e-05/1.073, allocations: 78.09 kB / 1.308 GB, free: 28.25 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/1.073, allocations: 0 / 1.308 GB, free: 28.25 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002256/1.073, allocations: 13.23 kB / 1.308 GB, free: 28.25 MB / 1.061 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.0004584/1.074, allocations: 0.7075 MB / 1.309 GB, free: 27.57 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002181/1.074, allocations: 50.66 kB / 1.309 GB, free: 27.56 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.074, allocations: 0 / 1.309 GB, free: 27.56 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.346e-05/1.074, allocations: 24.73 kB / 1.309 GB, free: 27.56 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/1.074, allocations: 8.859 kB / 1.309 GB, free: 27.55 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004338/1.075, allocations: 150.8 kB / 1.309 GB, free: 27.4 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/1.075, allocations: 0.6814 MB / 1.31 GB, free: 26.7 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.876e-05/1.075, allocations: 2.625 kB / 1.31 GB, free: 26.7 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/1.075, allocations: 10 kB / 1.31 GB, free: 26.69 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/1.075, allocations: 0 / 1.31 GB, free: 26.69 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/1.098, allocations: 1.586 MB / 1.312 GB, free: 26.3 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.883/8.98, allocations: 10.16 kB / 1.312 GB, free: 26.29 MB / 1.061 GB " [Timeout remaining time 291] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.59577731275931]