Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_11_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.005134/0.005134, allocations: 101 kB / 15.73 MB, free: 5.609 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.001279/0.001279, allocations: 194 kB / 16.67 MB, free: 5.527 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.832/2.832, allocations: 469.8 MB / 0.7425 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.89 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7778/0.7797, allocations: 159.1 MB / 1.22 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.004123/0.7839, allocations: 1.521 MB / 1.222 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004707/0.7844, allocations: 135.6 kB / 1.222 GB, free: 412 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.22e-05/0.7845, allocations: 8 kB / 1.222 GB, free: 404 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.41e-05/0.7845, allocations: 0 / 1.222 GB, free: 404 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.061e-05/0.7846, allocations: 3.938 kB / 1.222 GB, free: 400 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003383/0.785, allocations: 35.89 kB / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.7851, allocations: 35.92 kB / 1.222 GB, free: 328 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.7852, allocations: 11.98 kB / 1.222 GB, free: 316 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.557e-05/0.7853, allocations: 19.91 kB / 1.222 GB, free: 296 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.08e-05/0.7853, allocations: 19.92 kB / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.7854, allocations: 8 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.269e-05/0.7855, allocations: 15.98 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.115e-05/0.7855, allocations: 8 kB / 1.222 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.282e-05/0.7855, allocations: 19.86 kB / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.7857, allocations: 46.48 kB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.7857, allocations: 0 / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.734e-06/0.7857, allocations: 4 kB / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.7858, allocations: 0 / 1.222 GB, free: 176 kB / 0.9356 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.0006959/0.7865, allocations: 360.3 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.7865, allocations: 8.031 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.773e-05/0.7866, allocations: 34.75 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.7866, allocations: 0.9375 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.7868, allocations: 172.3 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.7869, allocations: 4.375 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.807e-05/0.7869, allocations: 4.375 kB / 1.223 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.7872, allocations: 62.22 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.7872, allocations: 3.938 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.7872, allocations: 0 / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.7873, allocations: 11.94 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.7876, allocations: 43.95 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005479/0.7881, allocations: 284.7 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004434/0.7886, allocations: 54.55 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.7887, allocations: 32.89 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004029/0.7892, allocations: 397.5 kB / 1.223 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.7892, allocations: 34.56 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 4.599e-06/0.7892, allocations: 0 / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0005418/0.7898, allocations: 101.5 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.7898, allocations: 55.41 kB / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.7899, allocations: 113.8 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.79, allocations: 25.7 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.481e-05/0.79, allocations: 84.14 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.7901, allocations: 7.953 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.796e-05/0.7901, allocations: 21.7 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.7903, allocations: 314.8 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.7905, allocations: 27.97 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.7906, allocations: 15.98 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.7909, allocations: 52.75 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7909, allocations: 0 / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003397/0.7912, allocations: 73.89 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.7913, allocations: 4 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.7913, allocations: 4 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.7913, allocations: 4.031 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.7914, allocations: 11.98 kB / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.7914, allocations: 0 / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.828e-05/0.7915, allocations: 11.98 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.7916, allocations: 4 kB / 1.224 GB, free: 13.45 MB / 0.9512 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.0001121/0.7917, allocations: 113.7 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/0.7917, allocations: 4 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003821/0.7921, allocations: 89.48 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.7922, allocations: 0 / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.7922, allocations: 4 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.7922, allocations: 0 / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/0.7925, allocations: 173.5 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.7925, allocations: 0 / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.7926, allocations: 11.98 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.7926, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.7926, allocations: 11.98 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.7926, allocations: 0 / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.7927, allocations: 0 / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000391/0.793, allocations: 171.4 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.786e-05/0.7931, allocations: 81.05 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.7932, allocations: 7.984 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.7933, allocations: 8 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.105e-05/0.7934, allocations: 7.984 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.7934, allocations: 4 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.716e-05/0.7935, allocations: 83.28 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7935, allocations: 0 / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004047/0.7939, allocations: 11.98 kB / 1.225 GB, free: 12.57 MB / 0.9512 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.0008709/0.7948, allocations: 0.7207 MB / 1.226 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003268/0.7951, allocations: 39.95 kB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7951, allocations: 0 / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.7953, allocations: 23.98 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004279/0.7957, allocations: 15.98 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.7981, allocations: 1.284 MB / 1.227 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.7985, allocations: 0.6846 MB / 1.228 GB, free: 9.676 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.529e-05/0.7986, allocations: 4 kB / 1.228 GB, free: 9.672 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.579e-05/0.7986, allocations: 23.42 kB / 1.228 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of SimCode: time 5.21e-07/0.7987, allocations: 0 / 1.228 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.8265, allocations: 1.695 MB / 1.229 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.161/8.988, allocations: 16.53 kB / 1.229 GB, free: 8.027 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches