Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_10_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.005267/0.005267, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001138/0.001138, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.702/2.702, allocations: 437 MB / 0.7105 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 63.89 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2989, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002783/0.3018, allocations: 1.531 MB / 1.168 GB, free: 5.801 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003861/0.3022, allocations: 136.4 kB / 1.168 GB, free: 5.664 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.386e-05/0.3022, allocations: 0 / 1.168 GB, free: 5.664 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.937e-05/0.3023, allocations: 0 / 1.168 GB, free: 5.664 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.975e-05/0.3023, allocations: 7.938 kB / 1.168 GB, free: 5.656 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.3027, allocations: 31.89 kB / 1.168 GB, free: 5.625 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.779e-05/0.3028, allocations: 31.86 kB / 1.168 GB, free: 5.594 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.3029, allocations: 19.98 kB / 1.168 GB, free: 5.574 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.639e-05/0.3029, allocations: 15.94 kB / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.06e-05/0.303, allocations: 23.91 kB / 1.168 GB, free: 5.535 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.303, allocations: 0 / 1.168 GB, free: 5.535 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.218e-05/0.3031, allocations: 23.98 kB / 1.168 GB, free: 5.512 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.834e-05/0.3031, allocations: 7.984 kB / 1.168 GB, free: 5.504 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.894e-05/0.3031, allocations: 11.94 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.3033, allocations: 56.02 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3033, allocations: 4 kB / 1.168 GB, free: 5.434 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3033, allocations: 0 / 1.168 GB, free: 5.434 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.3033, allocations: 0 / 1.168 GB, free: 5.434 MB / 0.92 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.0004628/0.3038, allocations: 351.3 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.3038, allocations: 8.031 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.633e-05/0.3039, allocations: 42.73 kB / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.923e-05/0.3039, allocations: 4.875 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.304, allocations: 172.3 kB / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.3041, allocations: 384 / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.3041, allocations: 8.375 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.3043, allocations: 62.22 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3043, allocations: 3.938 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.3043, allocations: 0 / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.3043, allocations: 3.984 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.3045, allocations: 43.95 kB / 1.169 GB, free: 4.645 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003748/0.3049, allocations: 288.7 kB / 1.169 GB, free: 4.312 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.3053, allocations: 58.53 kB / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.3054, allocations: 24.91 kB / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002906/0.3057, allocations: 397.5 kB / 1.169 GB, free: 3.738 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.3057, allocations: 42.56 kB / 1.169 GB, free: 3.688 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.3057, allocations: 0 / 1.169 GB, free: 3.688 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004005/0.3061, allocations: 97.52 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.3062, allocations: 51.41 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.594e-05/0.3063, allocations: 114.1 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.3063, allocations: 25.7 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.3063, allocations: 84.08 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.3064, allocations: 11.95 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.3064, allocations: 13.72 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3065, allocations: 326.8 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.21e-05/0.3066, allocations: 11.98 kB / 1.17 GB, free: 2.914 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.532e-05/0.3067, allocations: 23.97 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.3069, allocations: 52.77 kB / 1.17 GB, free: 2.836 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3069, allocations: 0 / 1.17 GB, free: 2.836 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002284/0.3071, allocations: 81.59 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.3072, allocations: 4 kB / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.3072, allocations: 0 / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.3072, allocations: 0 / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.428e-05/0.3073, allocations: 11.98 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.3073, allocations: 4.062 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.857e-05/0.3074, allocations: 8 kB / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.3074, allocations: 0 / 1.17 GB, free: 2.723 MB / 0.92 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 7.971e-05/0.3075, allocations: 125.7 kB / 1.17 GB, free: 2.59 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.3075, allocations: 0 / 1.17 GB, free: 2.59 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002704/0.3078, allocations: 85.48 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3078, allocations: 0 / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3078, allocations: 0 / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3078, allocations: 4 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.308, allocations: 170 kB / 1.171 GB, free: 2.277 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.308, allocations: 3.938 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.954e-05/0.3081, allocations: 15.98 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3081, allocations: 0 / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.3081, allocations: 4 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3081, allocations: 0 / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3081, allocations: 0 / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002787/0.3084, allocations: 187.3 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.681e-05/0.3084, allocations: 77.11 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.3084, allocations: 0 / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.123e-05/0.3085, allocations: 11.98 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.3086, allocations: 4 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-06/0.3086, allocations: 3.984 kB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.225e-05/0.3087, allocations: 91.22 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3087, allocations: 0 / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002382/0.3089, allocations: 12 kB / 1.171 GB, free: 1.84 MB / 0.92 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.0005629/0.3095, allocations: 0.7162 MB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002299/0.3097, allocations: 47.95 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3097, allocations: 0 / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.994e-05/0.3098, allocations: 27.97 kB / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.3101, allocations: 2.031 kB / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.3115, allocations: 1.286 MB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.3118, allocations: 0.6846 MB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.78e-05/0.3118, allocations: 4 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.3119, allocations: 11.44 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.3119, allocations: 96 / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.3294, allocations: 1.698 MB / 1.175 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/7.994, allocations: 10.44 kB / 1.175 GB, free: 13.31 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 Buildings_10_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches