Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_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.00896/0.008961, allocations: 98.11 kB / 15.73 MB, free: 6.012 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.002342/0.002342, allocations: 192.9 kB / 16.67 MB, free: 5.949 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.41/1.41, 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 11.1.0-master/package.mo): time 2.897/2.897, allocations: 469.4 MB / 0.7421 GB, free: 7.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 59.91 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2907, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002668/0.2934, allocations: 1.52 MB / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003458/0.2938, allocations: 119.7 kB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.404e-05/0.2938, allocations: 4 kB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.842e-05/0.2939, allocations: 3.938 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.833e-05/0.2939, allocations: 7.922 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.2941, allocations: 19.98 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.093e-05/0.2942, allocations: 31.92 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.706e-05/0.2943, allocations: 7.984 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.098e-05/0.2943, allocations: 11.94 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.801e-05/0.2944, allocations: 15.97 kB / 1.221 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.2944, allocations: 8 kB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.803e-05/0.2945, allocations: 15.92 kB / 1.221 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.519e-05/0.2945, allocations: 8 kB / 1.221 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.756e-05/0.2945, allocations: 11.94 kB / 1.221 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.2946, allocations: 35.88 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2947, allocations: 0 / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2947, allocations: 0 / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.2947, allocations: 0 / 1.222 GB, free: 12.79 MB / 0.9825 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.0004428/0.2951, allocations: 343.4 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2952, allocations: 12.03 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.887e-05/0.2952, allocations: 46.67 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.822e-05/0.2952, allocations: 4.891 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.2954, allocations: 164.4 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.2954, allocations: 4.375 kB / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.2954, allocations: 384 / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.2956, allocations: 62.16 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.2956, allocations: 3.938 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.2956, allocations: 4 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.2956, allocations: 0 / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.2958, allocations: 43.95 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003535/0.2962, allocations: 272.8 kB / 1.222 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.2965, allocations: 54.53 kB / 1.222 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.2966, allocations: 28.91 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001057/0.2968, allocations: 81.09 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.2968, allocations: 38.56 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.2968, allocations: 0 / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003866/0.2972, allocations: 93.56 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.2972, allocations: 51.41 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.2973, allocations: 106 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.2973, allocations: 25.7 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.921e-05/0.2974, allocations: 84.14 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.2974, allocations: 11.94 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/0.2974, allocations: 13.72 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.668e-05/0.2975, allocations: 314.8 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.663e-05/0.2976, allocations: 19.97 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.865e-05/0.2977, allocations: 24.17 kB / 1.223 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.2979, allocations: 56.77 kB / 1.223 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2979, allocations: 0 / 1.223 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002226/0.2982, allocations: 73.61 kB / 1.223 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.2982, allocations: 5.406 kB / 1.223 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2982, allocations: 0 / 1.223 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.2982, allocations: 4 kB / 1.223 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-05/0.2983, allocations: 11.98 kB / 1.223 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.2983, allocations: 0 / 1.223 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.292e-05/0.2984, allocations: 11.98 kB / 1.223 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/0.2984, allocations: 0 / 1.223 GB, free: 10.51 MB / 0.9825 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 7.699e-05/0.2985, allocations: 114.3 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.719e-05/0.2985, allocations: 0 / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.2988, allocations: 93.08 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2988, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2988, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.2988, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.299, allocations: 173.6 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.299, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.251e-05/0.2991, allocations: 11.98 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2991, allocations: 0 / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.2991, allocations: 0 / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2991, allocations: 7.938 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.2991, allocations: 3.984 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.2994, allocations: 171.4 kB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.059e-05/0.2994, allocations: 85.06 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.2994, allocations: 4 kB / 1.224 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.02e-05/0.2995, allocations: 7.922 kB / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.394e-05/0.2996, allocations: 11.98 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.2996, allocations: 0 / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.657e-05/0.2996, allocations: 83.28 kB / 1.224 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2e-07/0.2997, allocations: 0 / 1.224 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002393/0.2999, allocations: 8 kB / 1.224 GB, free: 9.652 MB / 0.9825 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.0005808/0.3005, allocations: 0.7165 MB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002534/0.3007, allocations: 51.92 kB / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3008, allocations: 0 / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.3009, allocations: 23.97 kB / 1.225 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.3012, allocations: 7.938 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004431/0.3017, allocations: 147 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.3019, allocations: 0.6768 MB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.229e-05/0.302, allocations: 3.984 kB / 1.226 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.997e-05/0.302, allocations: 15.44 kB / 1.226 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.302, allocations: 3.938 kB / 1.226 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01749/0.3195, allocations: 1.571 MB / 1.227 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.724/8.044, allocations: 6.547 kB / 1.227 GB, free: 6.41 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches