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.001641/0.001641, 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.001587/0.001587, allocations: 214.6 kB / 22.26 MB, free: 5.125 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.581/1.581, allocations: 230.6 MB / 256 MB, free: 7.961 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.451/3.451, allocations: 0.49 GB / 0.7951 GB, free: 33.49 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.003379/0.003379, allocations: 67.8 kB / 1.154 GB, free: 25.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.462/0.4654, allocations: 176.1 MB / 1.326 GB, free: 2.062 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003114/0.4685, allocations: 1.538 MB / 1.327 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0004733/0.469, allocations: 127.6 kB / 1.328 GB, free: 400 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.805e-05/0.469, allocations: 0 / 1.328 GB, free: 400 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.494e-05/0.469, allocations: 7.938 kB / 1.328 GB, free: 392 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.574e-05/0.4691, allocations: 0 / 1.328 GB, free: 392 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.4694, allocations: 31.91 kB / 1.328 GB, free: 360 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.4695, allocations: 27.92 kB / 1.328 GB, free: 332 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.4696, allocations: 4 kB / 1.328 GB, free: 328 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.705e-05/0.4697, allocations: 23.91 kB / 1.328 GB, free: 304 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.508e-05/0.4697, allocations: 15.92 kB / 1.328 GB, free: 288 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.4698, allocations: 4 kB / 1.328 GB, free: 284 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.312e-05/0.4698, allocations: 8 kB / 1.328 GB, free: 276 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.122e-05/0.4698, allocations: 11.98 kB / 1.328 GB, free: 264 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.101e-05/0.4699, allocations: 11.94 kB / 1.328 GB, free: 252 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.47, allocations: 36.11 kB / 1.328 GB, free: 216 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.47, allocations: 4 kB / 1.328 GB, free: 212 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.703e-06/0.47, allocations: 0 / 1.328 GB, free: 212 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.47, allocations: 0 / 1.328 GB, free: 212 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.0004878/0.4705, allocations: 270.3 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.4706, allocations: 8.031 kB / 1.328 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.615e-05/0.4706, allocations: 34.75 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.913e-05/0.4706, allocations: 4.938 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.4707, allocations: 114.4 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.4707, allocations: 4.375 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.4708, allocations: 4.359 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.471, allocations: 62.22 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.471, allocations: 3.938 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-06/0.471, allocations: 3.938 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.471, allocations: 0 / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.4712, allocations: 47.89 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003952/0.4716, allocations: 232 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.4719, allocations: 62.47 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.273e-05/0.472, allocations: 20.91 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.355e-05/0.4721, allocations: 7.984 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.4721, allocations: 38.56 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.4721, allocations: 0 / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003729/0.4725, allocations: 93.56 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.4725, allocations: 51.41 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.268e-05/0.4726, allocations: 97.86 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.4726, allocations: 25.7 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.121e-05/0.4727, allocations: 100.1 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.4727, allocations: 7.938 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.4727, allocations: 13.72 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4729, allocations: 314.8 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.301e-05/0.473, allocations: 23.97 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.367e-05/0.473, allocations: 11.98 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.4732, allocations: 56.75 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.4732, allocations: 0 / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002102/0.4734, allocations: 77.59 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.4734, allocations: 4 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.4734, allocations: 0 / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.4734, allocations: 0 / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.021e-05/0.4735, allocations: 11.98 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.4735, allocations: 4 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.267e-05/0.4736, allocations: 11.98 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-06/0.4736, allocations: 0 / 1.329 GB, free: 14.22 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 9.348e-05/0.4737, allocations: 122.8 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.4737, allocations: 0 / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002627/0.474, allocations: 93.2 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.474, allocations: 4 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.474, allocations: 0 / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.474, allocations: 3.984 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.4741, allocations: 132.7 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.4741, allocations: 3.938 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.48e-05/0.4742, allocations: 11.98 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.4742, allocations: 0 / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.4742, allocations: 4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.4742, allocations: 0 / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.4742, allocations: 3.984 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002826/0.4745, allocations: 179.4 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.995e-06/0.4745, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.4745, allocations: 4 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.431e-05/0.4746, allocations: 7.984 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.69e-05/0.4747, allocations: 11.92 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.4747, allocations: 4 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.991e-05/0.4747, allocations: 79.28 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4747, allocations: 0 / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00023/0.475, allocations: 8 kB / 1.33 GB, free: 13.48 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.0007242/0.4757, allocations: 0.7085 MB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002507/0.4759, allocations: 51.89 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.4759, allocations: 0 / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.999e-05/0.476, allocations: 27.97 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.4764, allocations: 0 / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000507/0.4769, allocations: 155.1 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.4772, allocations: 0.6807 MB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.108e-05/0.4772, allocations: 4 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.531e-05/0.4772, allocations: 7.438 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.4772, allocations: 0 / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.5056, allocations: 1.715 MB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.66, allocations: 12.98 kB / 1.333 GB, free: 10.16 MB / 1.029 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.035020790062845]