Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",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.005488/0.005488, allocations: 98.3 kB / 15.73 MB, free: 6.004 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.001331/0.001331, allocations: 193.3 kB / 16.67 MB, free: 5.934 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.349/2.349, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 67.95 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.276, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002956/0.279, allocations: 1.509 MB / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003785/0.2794, allocations: 120.5 kB / 1.089 GB, free: 336 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.342e-05/0.2795, allocations: 4 kB / 1.089 GB, free: 332 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.826e-05/0.2795, allocations: 4 kB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.897e-05/0.2796, allocations: 3.938 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.2798, allocations: 27.91 kB / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.743e-05/0.2799, allocations: 23.98 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.81e-05/0.28, allocations: 7.984 kB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.95e-05/0.2801, allocations: 15.94 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.526e-05/0.2801, allocations: 23.84 kB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.2801, allocations: 0 / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.156e-05/0.2802, allocations: 15.98 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.69e-05/0.2802, allocations: 8 kB / 1.089 GB, free: 200 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.951e-05/0.2803, allocations: 11.94 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.2804, allocations: 40.09 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2804, allocations: 0 / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.233e-06/0.2804, allocations: 4 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.2804, allocations: 0 / 1.089 GB, free: 144 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004953/0.2809, allocations: 339.5 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.281, allocations: 8.031 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.671e-05/0.281, allocations: 46.67 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.817e-05/0.2811, allocations: 4.938 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.2812, allocations: 164.3 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.2812, allocations: 384 / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.2812, allocations: 4.375 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.2814, allocations: 66.14 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.2814, allocations: 3.938 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.2815, allocations: 4 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.2815, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.2817, allocations: 39.95 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003753/0.2821, allocations: 268.9 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003316/0.2824, allocations: 58.53 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.2825, allocations: 20.84 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001249/0.2826, allocations: 93.03 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.2827, allocations: 34.56 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.2827, allocations: 0 / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003918/0.2831, allocations: 89.62 kB / 1.09 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.2831, allocations: 55.41 kB / 1.09 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.74e-05/0.2832, allocations: 101.9 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.2832, allocations: 25.7 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.695e-05/0.2833, allocations: 88.03 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.2833, allocations: 15.94 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.771e-05/0.2834, allocations: 13.72 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.2835, allocations: 314.8 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.393e-05/0.2836, allocations: 15.97 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.306e-05/0.2837, allocations: 23.98 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.2838, allocations: 52.75 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2839, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002253/0.2841, allocations: 69.66 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2841, allocations: 8 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.2841, allocations: 0 / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2841, allocations: 0 / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.896e-05/0.2842, allocations: 23.92 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.2843, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.01e-05/0.2843, allocations: 7.984 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.2843, allocations: 0 / 1.091 GB, free: 13.87 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 (rea2Int.y,fac.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 8.332e-05/0.2844, allocations: 115.8 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.2844, allocations: 0.5156 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002691/0.2847, allocations: 85.14 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2847, allocations: 8.031 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2847, allocations: 0 / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2848, allocations: 0 / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/0.2849, allocations: 169.5 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.285, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.851e-05/0.285, allocations: 15.92 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.285, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.2851, allocations: 4 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2851, allocations: 3.938 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2851, allocations: 7.984 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002711/0.2854, allocations: 175.4 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.2854, allocations: 77.11 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.2854, allocations: 0 / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.846e-05/0.2855, allocations: 7.984 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.2856, allocations: 7.984 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/0.2856, allocations: 4 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.632e-05/0.2856, allocations: 83.28 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2856, allocations: 0 / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002327/0.2859, allocations: 8 kB / 1.092 GB, free: 13.01 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 (fac.y,rea2Int.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.0005514/0.2864, allocations: 0.7162 MB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002223/0.2867, allocations: 39.95 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2867, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.2868, allocations: 31.91 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.2871, allocations: 8 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004086/0.2875, allocations: 148.6 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.2877, allocations: 0.6729 MB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.498e-05/0.2878, allocations: 11.94 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.203e-05/0.2878, allocations: 15.44 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.2878, allocations: 0 / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.3064, allocations: 1.577 MB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.374/7.68, allocations: 2.188 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_9_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches