Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001439/0.001439, allocations: 113 kB / 18.94 MB, free: 2.957 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.001556/0.001556, allocations: 213.8 kB / 22.25 MB, free: 5.121 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.545/1.545, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.028/3.028, allocations: 476.7 MB / 0.7707 GB, free: 4.273 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_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.002946/0.002946, allocations: 68.92 kB / 1.117 GB, free: 8.969 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4075, allocations: 169.9 MB / 1.283 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002877/0.4104, allocations: 1.559 MB / 1.285 GB, free: 2.234 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003753/0.4108, allocations: 119.6 kB / 1.285 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.742e-05/0.4108, allocations: 4 kB / 1.285 GB, free: 2.113 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.703e-05/0.4109, allocations: 0 / 1.285 GB, free: 2.113 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.407e-05/0.4109, allocations: 7.922 kB / 1.285 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.4111, allocations: 27.97 kB / 1.285 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.312e-05/0.4112, allocations: 27.92 kB / 1.285 GB, free: 2.051 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.154e-05/0.4113, allocations: 8 kB / 1.285 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.714e-05/0.4114, allocations: 15.92 kB / 1.285 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.248e-05/0.4114, allocations: 15.92 kB / 1.285 GB, free: 2.012 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.4114, allocations: 4 kB / 1.285 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.07e-05/0.4115, allocations: 12 kB / 1.285 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.545e-05/0.4115, allocations: 11.97 kB / 1.285 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.737e-05/0.4115, allocations: 15.94 kB / 1.285 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.4117, allocations: 40.05 kB / 1.285 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4117, allocations: 0 / 1.285 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4117, allocations: 0 / 1.285 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.4117, allocations: 0 / 1.285 GB, free: 1.93 MB / 0.9825 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.000472/0.4121, allocations: 266.3 kB / 1.285 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.4122, allocations: 8.031 kB / 1.285 GB, free: 1.629 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.914e-05/0.4122, allocations: 38.75 kB / 1.285 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.297e-05/0.4122, allocations: 4.938 kB / 1.285 GB, free: 1.578 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.4124, allocations: 114.5 kB / 1.286 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.4124, allocations: 384 / 1.286 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.4124, allocations: 384 / 1.286 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.4126, allocations: 62.22 kB / 1.286 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.4126, allocations: 3.938 kB / 1.286 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.4126, allocations: 0 / 1.286 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.4126, allocations: 4 kB / 1.286 GB, free: 1.367 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.4128, allocations: 51.83 kB / 1.286 GB, free: 1.316 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003839/0.4132, allocations: 228 kB / 1.286 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.4135, allocations: 58.53 kB / 1.286 GB, free: 0.9844 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.4136, allocations: 28.89 kB / 1.286 GB, free: 0.9531 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.197e-05/0.4137, allocations: 8 kB / 1.286 GB, free: 0.9453 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.4137, allocations: 38.44 kB / 1.286 GB, free: 0.8984 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.4137, allocations: 0 / 1.286 GB, free: 0.8984 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004179/0.4141, allocations: 89.62 kB / 1.286 GB, free: 0.8047 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.4142, allocations: 51.41 kB / 1.286 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.398e-05/0.4143, allocations: 101.9 kB / 1.286 GB, free: 0.6328 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.4143, allocations: 29.7 kB / 1.286 GB, free: 0.5977 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/0.4143, allocations: 92.08 kB / 1.286 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.4143, allocations: 3.953 kB / 1.286 GB, free: 0.5 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.734e-05/0.4144, allocations: 17.72 kB / 1.286 GB, free: 488 kB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.4145, allocations: 310.8 kB / 1.287 GB, free: 168 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.542e-05/0.4146, allocations: 23.97 kB / 1.287 GB, free: 144 kB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-05/0.4147, allocations: 19.92 kB / 1.287 GB, free: 124 kB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.4149, allocations: 56.75 kB / 1.287 GB, free: 64 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4149, allocations: 0 / 1.287 GB, free: 64 kB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002273/0.4151, allocations: 74.12 kB / 1.287 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.4151, allocations: 4 kB / 1.287 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.4151, allocations: 0 / 1.287 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.4151, allocations: 4.031 kB / 1.287 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.73e-05/0.4152, allocations: 11.98 kB / 1.287 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.4152, allocations: 4 kB / 1.287 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.568e-05/0.4153, allocations: 7.984 kB / 1.287 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-06/0.4153, allocations: 4 kB / 1.287 GB, free: 15.95 MB / 0.9981 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.651e-05/0.4154, allocations: 121.7 kB / 1.287 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.4154, allocations: 4 kB / 1.287 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002538/0.4157, allocations: 77.33 kB / 1.287 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.4157, allocations: 7.984 kB / 1.287 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.4157, allocations: 0 / 1.287 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.4157, allocations: 0 / 1.287 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.4159, allocations: 140.6 kB / 1.287 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4159, allocations: 0 / 1.287 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.526e-05/0.4159, allocations: 11.98 kB / 1.287 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.4159, allocations: 0 / 1.287 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.4159, allocations: 3.984 kB / 1.287 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4159, allocations: 0 / 1.287 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4159, allocations: 7.938 kB / 1.287 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.4162, allocations: 175.4 kB / 1.287 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.037e-06/0.4162, allocations: 4 kB / 1.287 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.4162, allocations: 3.938 kB / 1.287 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.843e-05/0.4163, allocations: 7.984 kB / 1.287 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.936e-05/0.4164, allocations: 11.98 kB / 1.287 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.4164, allocations: 0 / 1.287 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.387e-05/0.4164, allocations: 83.28 kB / 1.288 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.4164, allocations: 0 / 1.288 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000231/0.4167, allocations: 12 kB / 1.288 GB, free: 15.21 MB / 0.9981 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.0006427/0.4173, allocations: 0.7084 MB / 1.288 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002505/0.4176, allocations: 47.94 kB / 1.288 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4176, allocations: 0 / 1.288 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.4177, allocations: 23.98 kB / 1.288 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.4179, allocations: 0 / 1.288 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004575/0.4184, allocations: 156.9 kB / 1.288 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.4187, allocations: 0.6807 MB / 1.289 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.067e-05/0.4187, allocations: 8 kB / 1.289 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.751e-05/0.4188, allocations: 11.44 kB / 1.289 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of SimCode: time 2.9e-07/0.4188, allocations: 0 / 1.289 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.4477, allocations: 1.702 MB / 1.291 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.48, allocations: 4 kB / 1.291 GB, free: 11.91 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.37174693495035]