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.001268/0.001268, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.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.398/2.398, allocations: 390.3 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63.91 kB / 0.8126 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6506/0.6519, allocations: 140.4 MB / 0.9497 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002698/0.6546, allocations: 1.522 MB / 0.9512 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003473/0.655, allocations: 134.3 kB / 0.9513 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.112e-05/0.6551, allocations: 5.219 kB / 0.9513 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.863e-05/0.6551, allocations: 3.938 kB / 0.9513 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.022e-05/0.6552, allocations: 3.938 kB / 0.9513 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.6554, allocations: 36.69 kB / 0.9514 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.134e-05/0.6555, allocations: 35.8 kB / 0.9514 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.263e-05/0.6556, allocations: 17.59 kB / 0.9514 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.6e-05/0.6556, allocations: 13.62 kB / 0.9514 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.684e-05/0.6557, allocations: 17.27 kB / 0.9515 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.6557, allocations: 3.688 kB / 0.9515 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.845e-05/0.6558, allocations: 17.86 kB / 0.9515 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.633e-05/0.6558, allocations: 13.5 kB / 0.9515 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.823e-05/0.6558, allocations: 22.94 kB / 0.9515 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.6559, allocations: 42.91 kB / 0.9516 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.6559, allocations: 1.531 kB / 0.9516 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.323e-06/0.6559, allocations: 0 / 0.9516 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.6559, allocations: 0 / 0.9516 GB, free: 7.902 MB / 0.7169 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.0004091/0.6564, allocations: 347 kB / 0.9519 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.6564, allocations: 13.5 kB / 0.9519 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.891e-05/0.6564, allocations: 32.06 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.6565, allocations: 11.42 kB / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.507e-05/0.6566, allocations: 173.7 kB / 0.9521 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.6566, allocations: 1.781 kB / 0.9521 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.6566, allocations: 7.062 kB / 0.9521 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.6568, allocations: 67.72 kB / 0.9522 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.6568, allocations: 3.938 kB / 0.9522 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.6568, allocations: 1.062 kB / 0.9522 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.6568, allocations: 0 / 0.9522 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.657, allocations: 52.44 kB / 0.9522 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003234/0.6574, allocations: 275.7 kB / 0.9525 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.6577, allocations: 66.45 kB / 0.9526 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.607e-05/0.6578, allocations: 24 kB / 0.9526 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000189/0.658, allocations: 404.6 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.424e-05/0.658, allocations: 32.03 kB / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.658, allocations: 0 / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003821/0.6584, allocations: 90.64 kB / 0.9531 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/0.6584, allocations: 59.33 kB / 0.9531 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.095e-05/0.6585, allocations: 108.5 kB / 0.9533 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.6585, allocations: 25.7 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.6586, allocations: 97.31 kB / 0.9534 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.6586, allocations: 5.062 kB / 0.9534 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.6586, allocations: 18.16 kB / 0.9534 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.612e-05/0.6587, allocations: 320.1 kB / 0.9537 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.39e-05/0.6588, allocations: 18.11 kB / 0.9537 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.372e-05/0.6588, allocations: 23.33 kB / 0.9537 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.659, allocations: 42.78 kB / 0.9538 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.659, allocations: 0 / 0.9538 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002109/0.6592, allocations: 81.27 kB / 0.9539 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.6593, allocations: 5.094 kB / 0.9539 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.6593, allocations: 0 / 0.9539 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.6593, allocations: 0 / 0.9539 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.188e-05/0.6594, allocations: 15.61 kB / 0.9539 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.6594, allocations: 1.25 kB / 0.9539 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.99e-05/0.6595, allocations: 11.62 kB / 0.9539 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.6595, allocations: 1.562 kB / 0.9539 GB, free: 5.473 MB / 0.7169 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 5.525e-05/0.6595, allocations: 120.1 kB / 0.954 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.768e-05/0.6596, allocations: 5.156 kB / 0.954 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002491/0.6598, allocations: 88.23 kB / 0.9541 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.6598, allocations: 0 / 0.9541 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.788e-06/0.6598, allocations: 5.219 kB / 0.9541 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.6598, allocations: 3.938 kB / 0.9541 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.66, allocations: 169.3 kB / 0.9543 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.66, allocations: 0 / 0.9543 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.27e-05/0.6601, allocations: 11.77 kB / 0.9543 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.6601, allocations: 1.531 kB / 0.9543 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.6601, allocations: 0 / 0.9543 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.6601, allocations: 0 / 0.9543 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.6601, allocations: 5.312 kB / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/0.6603, allocations: 175.9 kB / 0.9544 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.902e-05/0.6603, allocations: 86.36 kB / 0.9545 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.6604, allocations: 0 / 0.9545 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.621e-05/0.6605, allocations: 8.078 kB / 0.9545 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.6605, allocations: 6.375 kB / 0.9545 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-06/0.6605, allocations: 5.125 kB / 0.9545 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.196e-05/0.6606, allocations: 90.33 kB / 0.9546 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6606, allocations: 7.875 kB / 0.9546 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002257/0.6608, allocations: 8.719 kB / 0.9547 GB, free: 4.688 MB / 0.7169 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.0003969/0.6612, allocations: 0.7068 MB / 0.9553 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002143/0.6614, allocations: 45.7 kB / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.6614, allocations: 3.938 kB / 0.9554 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.54e-05/0.6615, allocations: 27.44 kB / 0.9554 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.6618, allocations: 5.594 kB / 0.9554 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.6629, allocations: 1.276 MB / 0.9567 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.663, allocations: 0.6828 MB / 0.9573 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.039e-05/0.6631, allocations: 7.234 kB / 0.9573 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.785e-05/0.6631, allocations: 22.69 kB / 0.9574 GB, free: 2 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6631, allocations: 0 / 0.9574 GB, free: 2 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01685/0.68, allocations: 1.656 MB / 0.959 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.84, allocations: 9.625 kB / 0.959 GB, free: 1.078 MB / 0.7169 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