Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00193/0.00193, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.002287/0.002287, allocations: 221.8 kB / 22.25 MB, free: 5.102 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.557/1.557, allocations: 230.6 MB / 256 MB, free: 7.801 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.369/3.369, allocations: 0.49 GB / 0.7951 GB, free: 35.51 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.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_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.002875/0.002875, allocations: 71.25 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.396, allocations: 176.1 MB / 1.326 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002097/0.3981, allocations: 0.5944 MB / 1.326 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003273/0.3984, allocations: 44.28 kB / 1.327 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.051e-05/0.3985, allocations: 0 / 1.327 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.695e-05/0.3985, allocations: 0 / 1.327 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.115e-06/0.3985, allocations: 4 kB / 1.327 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.3988, allocations: 15.92 kB / 1.327 GB, free: 0.8359 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 5.824e-05/0.3988, allocations: 8 kB / 1.327 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.797e-05/0.3989, allocations: 0 / 1.327 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.029e-05/0.3989, allocations: 4 kB / 1.327 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.875e-05/0.3989, allocations: 3.938 kB / 1.327 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.3989, allocations: 0 / 1.327 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.399, allocations: 11.98 kB / 1.327 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.739e-05/0.3991, allocations: 3.984 kB / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.315e-05/0.3991, allocations: 0 / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.3992, allocations: 11.98 kB / 1.327 GB, free: 0.793 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3992, allocations: 4 kB / 1.327 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3992, allocations: 4 kB / 1.327 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.3992, allocations: 0 / 1.327 GB, free: 0.7852 MB / 1.014 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.0003885/0.3996, allocations: 238.7 kB / 1.327 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.3997, allocations: 8.031 kB / 1.327 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.373e-05/0.3997, allocations: 34.75 kB / 1.327 GB, free: 480 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.721e-05/0.3997, allocations: 0.9375 kB / 1.327 GB, free: 480 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.3999, allocations: 118.4 kB / 1.327 GB, free: 336 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.3999, allocations: 384 / 1.327 GB, free: 336 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.3999, allocations: 384 / 1.327 GB, free: 336 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.4, allocations: 30.27 kB / 1.327 GB, free: 300 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.4, allocations: 7.938 kB / 1.327 GB, free: 292 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-06/0.4, allocations: 0 / 1.327 GB, free: 292 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.4, allocations: 4 kB / 1.327 GB, free: 288 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.457e-05/0.4001, allocations: 3.984 kB / 1.327 GB, free: 284 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.4002, allocations: 120.8 kB / 1.327 GB, free: 120 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 7.438e-05/0.4003, allocations: 22.55 kB / 1.327 GB, free: 88 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.847e-05/0.4003, allocations: 12.92 kB / 1.327 GB, free: 72 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001727/0.4005, allocations: 7.984 kB / 1.327 GB, free: 64 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.4005, allocations: 30.56 kB / 1.327 GB, free: 24 kB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.4005, allocations: 4 kB / 1.327 GB, free: 20 kB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0001818/0.4007, allocations: 45.58 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/0.4008, allocations: 59.39 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.225e-05/0.4008, allocations: 89.86 kB / 1.327 GB, free: 15.8 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.4009, allocations: 25.7 kB / 1.327 GB, free: 15.77 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.26e-05/0.4009, allocations: 80.14 kB / 1.327 GB, free: 15.69 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.4009, allocations: 7.891 kB / 1.327 GB, free: 15.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.4009, allocations: 17.72 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.4011, allocations: 310.8 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.374e-05/0.4011, allocations: 4 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.087e-05/0.4011, allocations: 4.125 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.963e-05/0.4012, allocations: 16.84 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4012, allocations: 0 / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.906e-05/0.4012, allocations: 37.7 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.4012, allocations: 4 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.4012, allocations: 3.938 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.4013, allocations: 0 / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.894e-05/0.4013, allocations: 11.92 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.4013, allocations: 4 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.342e-05/0.4013, allocations: 96 / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.4013, allocations: 4 kB / 1.328 GB, free: 15.25 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 (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 8.19e-05/0.4014, allocations: 114.4 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.673e-06/0.4014, allocations: 0 / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.4015, allocations: 52.72 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.4015, allocations: 0 / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4015, allocations: 0 / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.4015, allocations: 0 / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.4016, allocations: 116.8 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4016, allocations: 0 / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.531e-05/0.4017, allocations: 7.984 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4017, allocations: 4.031 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.4017, allocations: 3.938 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.4017, allocations: 3.938 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4017, allocations: 0 / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.455e-05/0.4018, allocations: 65.12 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-06/0.4018, allocations: 3.953 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.4018, allocations: 3.938 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.297e-05/0.4018, allocations: 4 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.4018, allocations: 4 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.4018, allocations: 0 / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.174e-05/0.4019, allocations: 79.31 kB / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4019, allocations: 0 / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001935/0.4021, allocations: 7.938 kB / 1.328 GB, free: 14.7 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,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.000472/0.4025, allocations: 0.6162 MB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 8.084e-05/0.4026, allocations: 12 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4026, allocations: 0 / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.645e-05/0.4026, allocations: 4 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.4028, allocations: 7.234 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003413/0.4031, allocations: 128.8 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.333e-05/0.4032, allocations: 55.36 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.323e-05/0.4032, allocations: 0 / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.423e-05/0.4032, allocations: 7.438 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of SimCode: time 6.41e-07/0.4032, allocations: 4 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02712/0.4303, allocations: 1.599 MB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.34, allocations: 11.48 kB / 1.331 GB, free: 12.3 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.499933636019705]