Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00549/0.00549, allocations: 100 kB / 15.73 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 193.1 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.769/2.769, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 68.08 kB / 1.054 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2954, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002796/0.2983, allocations: 1.533 MB / 1.209 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003667/0.2986, allocations: 123.6 kB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.529e-05/0.2987, allocations: 4 kB / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.161e-05/0.2988, allocations: 11.86 kB / 1.209 GB, free: 8.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.831e-05/0.2988, allocations: 11.92 kB / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.2991, allocations: 35.91 kB / 1.209 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.986e-05/0.2992, allocations: 31.92 kB / 1.209 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.2993, allocations: 8 kB / 1.209 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.703e-05/0.2994, allocations: 23.91 kB / 1.209 GB, free: 8.348 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.693e-05/0.2994, allocations: 19.92 kB / 1.209 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.2995, allocations: 4 kB / 1.209 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.55e-05/0.2995, allocations: 19.98 kB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.886e-05/0.2996, allocations: 11.98 kB / 1.209 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.375e-05/0.2996, allocations: 15.88 kB / 1.209 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.2997, allocations: 39.88 kB / 1.209 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2998, allocations: 4 kB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2998, allocations: 0 / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.2998, allocations: 0 / 1.209 GB, free: 8.234 MB / 0.9669 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.0004965/0.3003, allocations: 351.7 kB / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3003, allocations: 12.62 kB / 1.209 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.259e-05/0.3004, allocations: 34.75 kB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.288e-05/0.3004, allocations: 4.844 kB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.3005, allocations: 176.4 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.3006, allocations: 384 / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.3006, allocations: 8.312 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.3008, allocations: 58.23 kB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3008, allocations: 7.875 kB / 1.21 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.3008, allocations: 0 / 1.21 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.3009, allocations: 7.984 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.3011, allocations: 47.95 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/0.3015, allocations: 280.7 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003715/0.3019, allocations: 62.47 kB / 1.21 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.302, allocations: 28.91 kB / 1.21 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003328/0.3023, allocations: 397.5 kB / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.3024, allocations: 34.55 kB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.3024, allocations: 0 / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004291/0.3028, allocations: 97.56 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.3029, allocations: 55.41 kB / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.303, allocations: 109.8 kB / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.303, allocations: 29.7 kB / 1.211 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.199e-05/0.3031, allocations: 92.03 kB / 1.211 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.3031, allocations: 4 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.3032, allocations: 17.72 kB / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3033, allocations: 318.8 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.3034, allocations: 19.97 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.002e-05/0.3035, allocations: 23.92 kB / 1.211 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.3037, allocations: 48.81 kB / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3037, allocations: 0 / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002501/0.3039, allocations: 81.5 kB / 1.211 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.304, allocations: 4 kB / 1.211 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.304, allocations: 0 / 1.211 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.304, allocations: 0 / 1.211 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.687e-05/0.3041, allocations: 15.98 kB / 1.211 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3041, allocations: 0 / 1.211 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.524e-05/0.3042, allocations: 7.984 kB / 1.211 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.3042, allocations: 4 kB / 1.211 GB, free: 5.516 MB / 0.9669 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 8.128e-05/0.3043, allocations: 109.8 kB / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/0.3043, allocations: 4 kB / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002997/0.3046, allocations: 89.48 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3046, allocations: 3.984 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3046, allocations: 7.938 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3046, allocations: 0 / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001832/0.3048, allocations: 173.5 kB / 1.212 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.3048, allocations: 0 / 1.212 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.028e-05/0.3049, allocations: 11.98 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.3049, allocations: 0 / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.894e-06/0.305, allocations: 0 / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.305, allocations: 0 / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.305, allocations: 8 kB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003036/0.3053, allocations: 171.4 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.112e-05/0.3053, allocations: 81.11 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.3054, allocations: 0 / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.85e-05/0.3054, allocations: 4 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.219e-05/0.3055, allocations: 12.34 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.453e-06/0.3055, allocations: 8 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.806e-05/0.3056, allocations: 91.56 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3056, allocations: 0 / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002527/0.3059, allocations: 11.94 kB / 1.212 GB, free: 4.637 MB / 0.9669 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.0006214/0.3065, allocations: 0.7241 MB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002361/0.3067, allocations: 47.89 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3067, allocations: 0 / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.3069, allocations: 23.97 kB / 1.213 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.3072, allocations: 9.375 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.3086, allocations: 1.292 MB / 1.214 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.3088, allocations: 0.6807 MB / 1.215 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.574e-05/0.3089, allocations: 7.984 kB / 1.215 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.342e-05/0.3089, allocations: 11.44 kB / 1.215 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of SimCode: time 3.31e-07/0.309, allocations: 0 / 1.215 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.327, allocations: 1.718 MB / 1.217 GB, free: 92 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.602/7.929, allocations: 14.55 kB / 1.217 GB, free: 80 kB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,falFac.y Variables in the result:falFac.k,falFac.n,falFac.y,k.duration,k.height,k.offset,k.startTime,k.y,n.k,n.y,rea2Int.u,rea2Int.y,time