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.004862/0.004862, allocations: 95.02 kB / 15.73 MB, free: 6.484 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.001085/0.001085, allocations: 194.2 kB / 16.67 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.513/2.513, allocations: 390.2 MB / 0.6648 GB, free: 248 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 60.31 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2597, allocations: 140.4 MB / 1.087 GB, free: 2 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002863/0.2626, allocations: 1.533 MB / 1.089 GB, free: 464 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0004391/0.263, allocations: 128.5 kB / 1.089 GB, free: 332 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.617e-05/0.2631, allocations: 4 kB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.492e-05/0.2631, allocations: 3.938 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.327e-05/0.2632, allocations: 3.938 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.2635, allocations: 31.91 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.932e-05/0.2636, allocations: 39.97 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.2638, allocations: 11.98 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.719e-05/0.2638, allocations: 15.88 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.132e-05/0.2639, allocations: 27.91 kB / 1.089 GB, free: 192 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.2639, allocations: 4 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.049e-05/0.264, allocations: 15.98 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.348e-05/0.264, allocations: 15.92 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.021e-05/0.2641, allocations: 7.938 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.2642, allocations: 52.08 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2642, allocations: 0 / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2643, allocations: 4 kB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.2643, allocations: 0 / 1.089 GB, free: 92 kB / 0.8419 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.0005034/0.2648, allocations: 351.4 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2648, allocations: 8.031 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.589e-05/0.2649, allocations: 34.75 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.677e-05/0.2649, allocations: 0.9375 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.265, allocations: 176.2 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.265, allocations: 8.375 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.2651, allocations: 4.375 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.2653, allocations: 66.16 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2653, allocations: 3.938 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.627e-06/0.2653, allocations: 0 / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.2653, allocations: 4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002507/0.2656, allocations: 43.95 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003923/0.266, allocations: 276.8 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.2663, allocations: 62.47 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.802e-05/0.2664, allocations: 32.83 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002982/0.2667, allocations: 397.5 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.2668, allocations: 34.56 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.2668, allocations: 0 / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003923/0.2672, allocations: 97.56 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.2672, allocations: 51.41 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.434e-05/0.2673, allocations: 109.8 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.2673, allocations: 25.7 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.137e-05/0.2674, allocations: 96.16 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.2674, allocations: 7.953 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.571e-05/0.2674, allocations: 21.7 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.2676, allocations: 314.8 kB / 1.091 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.204e-05/0.2677, allocations: 19.98 kB / 1.091 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.331e-05/0.2677, allocations: 24.16 kB / 1.091 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.2679, allocations: 56.89 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2679, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002074/0.2682, allocations: 73.59 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2682, allocations: 4 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2682, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2682, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.133e-05/0.2683, allocations: 15.98 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2683, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.814e-05/0.2684, allocations: 11.98 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.2684, allocations: 4 kB / 1.092 GB, free: 13.38 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 7.351e-05/0.2685, allocations: 117.7 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.703e-05/0.2685, allocations: 7.953 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002542/0.2688, allocations: 85.48 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.2688, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.2688, allocations: 8 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.2688, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.2689, allocations: 169.6 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.269, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.231e-05/0.269, allocations: 7.984 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.269, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.2691, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2691, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2691, allocations: 320 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.2693, allocations: 176.9 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.225e-05/0.2694, allocations: 81.06 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.2694, allocations: 4 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.394e-05/0.2695, allocations: 7.984 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.2695, allocations: 7.984 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.2695, allocations: 7.938 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.808e-05/0.2696, allocations: 91.2 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2696, allocations: 4 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002232/0.2698, allocations: 8 kB / 1.092 GB, free: 12.5 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.0005277/0.2703, allocations: 0.7087 MB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002276/0.2706, allocations: 51.92 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2706, allocations: 3.938 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.872e-05/0.2707, allocations: 23.98 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.271, allocations: 9.719 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.2723, allocations: 1.292 MB / 1.094 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.2726, allocations: 0.6807 MB / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.214e-05/0.2726, allocations: 4 kB / 1.095 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.08e-05/0.2727, allocations: 19.42 kB / 1.095 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of SimCode: time 1.403e-06/0.2727, allocations: 0 / 1.095 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.2897, allocations: 1.69 MB / 1.097 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.706/7.995, allocations: 13.81 kB / 1.097 GB, free: 7.961 MB / 0.8575 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