Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_9_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.005662/0.005662, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001184/0.001185, allocations: 196.5 kB / 16.68 MB, free: 5.938 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.169/2.169, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.91 kB / 0.9504 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6978/0.6992, allocations: 140.4 MB / 1.087 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002241/0.7014, allocations: 1.532 MB / 1.089 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003133/0.7018, allocations: 131.5 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.281e-05/0.7018, allocations: 0 / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.793e-05/0.7018, allocations: 5.625 kB / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.529e-05/0.7019, allocations: 8.531 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.7022, allocations: 36.38 kB / 1.089 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.751e-05/0.7022, allocations: 35.86 kB / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.884e-05/0.7023, allocations: 16.05 kB / 1.089 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.056e-05/0.7024, allocations: 12.17 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.059e-05/0.7024, allocations: 17.16 kB / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.7024, allocations: 3.25 kB / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.33e-05/0.7025, allocations: 22.78 kB / 1.089 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.7025, allocations: 10.58 kB / 1.089 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.715e-05/0.7026, allocations: 25.53 kB / 1.089 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.7027, allocations: 45.23 kB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7027, allocations: 4.594 kB / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7027, allocations: 0 / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.7027, allocations: 0.9375 kB / 1.089 GB, free: 3.969 MB / 0.8575 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.0003979/0.7031, allocations: 345.5 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.7032, allocations: 9.969 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.612e-05/0.7032, allocations: 36.48 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.647e-05/0.7032, allocations: 4.203 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.995e-05/0.7033, allocations: 174.6 kB / 1.09 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.7033, allocations: 2.281 kB / 1.09 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.7034, allocations: 6.875 kB / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.7036, allocations: 66.23 kB / 1.09 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.7036, allocations: 3.938 kB / 1.09 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.7036, allocations: 5.125 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.7036, allocations: 0.7812 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.7038, allocations: 44.02 kB / 1.09 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003403/0.7041, allocations: 277.3 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003224/0.7045, allocations: 57.12 kB / 1.09 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.842e-05/0.7046, allocations: 25.88 kB / 1.09 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001875/0.7048, allocations: 405.6 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.7048, allocations: 31.66 kB / 1.091 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.7048, allocations: 0 / 1.091 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003832/0.7052, allocations: 93.88 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.111e-05/0.7052, allocations: 61.02 kB / 1.091 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.066e-05/0.7053, allocations: 106.4 kB / 1.091 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.7053, allocations: 30.41 kB / 1.091 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.785e-05/0.7053, allocations: 86.69 kB / 1.091 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.366e-05/0.7054, allocations: 6.078 kB / 1.091 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.325e-05/0.7054, allocations: 18.92 kB / 1.091 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.096e-05/0.7054, allocations: 316.8 kB / 1.091 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.746e-05/0.7055, allocations: 24.67 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.773e-05/0.7056, allocations: 17.41 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.7058, allocations: 49.66 kB / 1.092 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7058, allocations: 0 / 1.092 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002105/0.706, allocations: 82.56 kB / 1.092 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.7061, allocations: 5.406 kB / 1.092 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.7061, allocations: 0.5625 kB / 1.092 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.7061, allocations: 1.031 kB / 1.092 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.878e-05/0.7062, allocations: 10.73 kB / 1.092 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.7062, allocations: 4.516 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.909e-05/0.7062, allocations: 14.25 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.7063, allocations: 9.547 kB / 1.092 GB, free: 1.684 MB / 0.8575 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 4.632e-05/0.7063, allocations: 117.8 kB / 1.092 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/0.7063, allocations: 1.812 kB / 1.092 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002487/0.7066, allocations: 80.08 kB / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.7066, allocations: 4 kB / 1.092 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.7066, allocations: 1.906 kB / 1.092 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.7066, allocations: 3.938 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001169/0.7067, allocations: 169.4 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.7067, allocations: 0.7188 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.384e-05/0.7068, allocations: 11.39 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7068, allocations: 1.094 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.994e-06/0.7068, allocations: 0.6094 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7068, allocations: 1.062 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.7068, allocations: 0.6562 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002216/0.7071, allocations: 182.1 kB / 1.092 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.568e-05/0.7071, allocations: 79.19 kB / 1.092 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.7071, allocations: 0.7969 kB / 1.092 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.377e-05/0.7072, allocations: 6.188 kB / 1.092 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.7073, allocations: 4.891 kB / 1.092 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.7073, allocations: 9.781 kB / 1.092 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.501e-05/0.7073, allocations: 87.44 kB / 1.092 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9.62e-07/0.7073, allocations: 0.9062 kB / 1.092 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002271/0.7075, allocations: 16.94 kB / 1.092 GB, free: 0.9688 MB / 0.8575 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.0005784/0.7081, allocations: 0.7104 MB / 1.093 GB, free: 16.3 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002444/0.7084, allocations: 49.83 kB / 1.093 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.7084, allocations: 0 / 1.093 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.7085, allocations: 29.81 kB / 1.093 GB, free: 16.28 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.7088, allocations: 3.562 kB / 1.093 GB, free: 16.28 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.7102, allocations: 1.292 MB / 1.094 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.7104, allocations: 0.681 MB / 1.095 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.128e-05/0.7105, allocations: 7.266 kB / 1.095 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.7105, allocations: 16.69 kB / 1.095 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of SimCode: time 5.01e-07/0.7105, allocations: 0 / 1.095 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01547/0.726, allocations: 1.694 MB / 1.097 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.265/7.991, allocations: 3.75 kB / 1.097 GB, free: 13.96 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches