Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial.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.001453/0.001453, allocations: 107.2 kB / 16.46 MB, free: 6.453 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.001516/0.001516, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.498/1.498, allocations: 230.6 MB / 252.8 MB, free: 8.949 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.274/3.274, allocations: 0.49 GB / 0.7916 GB, free: 33.25 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.FallingFactorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_FallingFactorial",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.002072/0.002072, allocations: 70.23 kB / 1.149 GB, free: 26.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3922, allocations: 176.1 MB / 1.321 GB, free: 3.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002992/0.3952, allocations: 1.562 MB / 1.322 GB, free: 1.77 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003919/0.3956, allocations: 139.5 kB / 1.322 GB, free: 1.633 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.287e-05/0.3957, allocations: 0 / 1.322 GB, free: 1.633 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.564e-05/0.3957, allocations: 0 / 1.322 GB, free: 1.633 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.779e-05/0.3957, allocations: 7.938 kB / 1.322 GB, free: 1.625 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.396, allocations: 31.91 kB / 1.323 GB, free: 1.594 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.567e-05/0.3961, allocations: 43.84 kB / 1.323 GB, free: 1.551 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.38e-05/0.3962, allocations: 8 kB / 1.323 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.033e-05/0.3963, allocations: 11.98 kB / 1.323 GB, free: 1.531 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.025e-05/0.3963, allocations: 19.92 kB / 1.323 GB, free: 1.512 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.3963, allocations: 4 kB / 1.323 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.994e-05/0.3964, allocations: 15.98 kB / 1.323 GB, free: 1.492 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.579e-05/0.3964, allocations: 19.91 kB / 1.323 GB, free: 1.473 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.3965, allocations: 15.94 kB / 1.323 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001394/0.3966, allocations: 48.08 kB / 1.323 GB, free: 1.41 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3966, allocations: 4 kB / 1.323 GB, free: 1.406 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3966, allocations: 3.938 kB / 1.323 GB, free: 1.402 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.3966, allocations: 0 / 1.323 GB, free: 1.402 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005588/0.3972, allocations: 347.4 kB / 1.323 GB, free: 1.012 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.3972, allocations: 15.98 kB / 1.323 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.897e-05/0.3973, allocations: 34.69 kB / 1.323 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.387e-05/0.3973, allocations: 8.875 kB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.3975, allocations: 168.3 kB / 1.323 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.3975, allocations: 8.375 kB / 1.323 GB, free: 0.7344 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.3975, allocations: 4.375 kB / 1.323 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.3978, allocations: 62.22 kB / 1.323 GB, free: 0.6641 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.3978, allocations: 3.938 kB / 1.323 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.3978, allocations: 0 / 1.323 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3978, allocations: 4 kB / 1.323 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002115/0.398, allocations: 43.95 kB / 1.323 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004789/0.3985, allocations: 280.7 kB / 1.324 GB, free: 296 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003656/0.3988, allocations: 58.53 kB / 1.324 GB, free: 228 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.3989, allocations: 28.84 kB / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003847/0.3993, allocations: 397.5 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.3994, allocations: 42.5 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.3994, allocations: 0 / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004423/0.3998, allocations: 89.64 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.3998, allocations: 51.41 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.3999, allocations: 113.8 kB / 1.324 GB, free: 15.38 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.4, allocations: 25.7 kB / 1.324 GB, free: 15.35 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.768e-05/0.4, allocations: 92.2 kB / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.4, allocations: 7.938 kB / 1.324 GB, free: 15.25 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.4001, allocations: 17.72 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.4002, allocations: 322.8 kB / 1.325 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.766e-05/0.4003, allocations: 15.98 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.4004, allocations: 23.92 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.4006, allocations: 52.75 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4006, allocations: 0 / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002352/0.4009, allocations: 69.94 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.4009, allocations: 11.98 kB / 1.325 GB, free: 14.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4009, allocations: 0 / 1.325 GB, free: 14.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.4009, allocations: 0 / 1.325 GB, free: 14.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.889e-05/0.401, allocations: 12.03 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.401, allocations: 0 / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.038e-05/0.4011, allocations: 19.88 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.4011, allocations: 0 / 1.325 GB, free: 14.69 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 (falFac.y,rea2Int.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 0.0001077/0.4012, allocations: 123.5 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.528e-05/0.4012, allocations: 3.938 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002907/0.4015, allocations: 85.55 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.4015, allocations: 0 / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4015, allocations: 0 / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.4015, allocations: 4 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.4017, allocations: 165.6 kB / 1.325 GB, free: 14.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.4017, allocations: 4 kB / 1.325 GB, free: 14.24 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.911e-05/0.4018, allocations: 11.98 kB / 1.325 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.4018, allocations: 0 / 1.325 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.4018, allocations: 4 kB / 1.325 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4018, allocations: 0 / 1.325 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.4018, allocations: 0 / 1.325 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003338/0.4022, allocations: 187.3 kB / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.904e-05/0.4022, allocations: 77.11 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.4022, allocations: 0 / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.4023, allocations: 7.984 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.4024, allocations: 8 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.4024, allocations: 3.938 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.348e-05/0.4024, allocations: 87.27 kB / 1.326 GB, free: 13.83 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4024, allocations: 4 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002479/0.4027, allocations: 12 kB / 1.326 GB, free: 13.81 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 (rea2Int.y,falFac.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.0007414/0.4034, allocations: 0.7123 MB / 1.326 GB, free: 13.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002779/0.4037, allocations: 47.95 kB / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4037, allocations: 3.938 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.4038, allocations: 27.97 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.4041, allocations: 2.5 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001727/0.4059, allocations: 1.3 MB / 1.328 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.4062, allocations: 0.6768 MB / 1.328 GB, free: 10.91 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.502e-05/0.4062, allocations: 4.047 kB / 1.328 GB, free: 10.91 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.4063, allocations: 15.44 kB / 1.328 GB, free: 10.89 MB / 1.029 GB Notification: Performance of SimCode: time 6.41e-07/0.4063, allocations: 0 / 1.328 GB, free: 10.89 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.4326, allocations: 1.709 MB / 1.33 GB, free: 9.273 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.047/8.48, allocations: 11.84 kB / 1.33 GB, free: 9.266 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.FallingFactorial.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.304010950960219]