Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_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.00759/0.00759, allocations: 98.06 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.001997/0.001997, allocations: 197 kB / 16.68 MB, free: 5.93 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.374/1.374, 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 12.0.0-master/package.mo): time 2.736/2.736, allocations: 482.4 MB / 0.7548 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 64.62 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2788, allocations: 162.2 MB / 1.241 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001616/0.2805, allocations: 0.5758 MB / 1.242 GB, free: 8.676 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002471/0.2807, allocations: 47.8 kB / 1.242 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.714e-05/0.2808, allocations: 0 / 1.242 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.148e-05/0.2808, allocations: 4 kB / 1.242 GB, free: 8.625 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.161e-06/0.2808, allocations: 0 / 1.242 GB, free: 8.625 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002051/0.281, allocations: 19.91 kB / 1.242 GB, free: 8.605 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 4.298e-05/0.2811, allocations: 7.938 kB / 1.242 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.585e-05/0.2811, allocations: 0 / 1.242 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.467e-05/0.2811, allocations: 0 / 1.242 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.163e-05/0.2812, allocations: 7.938 kB / 1.242 GB, free: 8.59 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.647e-06/0.2812, allocations: 0 / 1.242 GB, free: 8.59 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.038e-05/0.2812, allocations: 11.98 kB / 1.242 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.396e-06/0.2813, allocations: 0 / 1.242 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.016e-05/0.2813, allocations: 7.984 kB / 1.242 GB, free: 8.57 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 8.01e-05/0.2814, allocations: 17.39 kB / 1.242 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.2814, allocations: 0 / 1.242 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2814, allocations: 0 / 1.242 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.2814, allocations: 0 / 1.242 GB, free: 8.555 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003342/0.2817, allocations: 315.8 kB / 1.242 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.2818, allocations: 15.97 kB / 1.242 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.214e-05/0.2818, allocations: 34.73 kB / 1.243 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.149e-05/0.2818, allocations: 4.891 kB / 1.243 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.282, allocations: 160.4 kB / 1.243 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-06/0.282, allocations: 384 / 1.243 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.282, allocations: 12.38 kB / 1.243 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.562e-05/0.2821, allocations: 30.2 kB / 1.243 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.2821, allocations: 7.938 kB / 1.243 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.2821, allocations: 7.969 kB / 1.243 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.2821, allocations: 0 / 1.243 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.237e-05/0.2822, allocations: 8 kB / 1.243 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001545/0.2823, allocations: 141.7 kB / 1.243 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.322e-05/0.2824, allocations: 30.94 kB / 1.243 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.899e-05/0.2824, allocations: 8.922 kB / 1.243 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001519/0.2826, allocations: 81.11 kB / 1.243 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.2826, allocations: 30.56 kB / 1.243 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.2826, allocations: 3.938 kB / 1.243 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001285/0.2828, allocations: 45.62 kB / 1.243 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.2828, allocations: 51.41 kB / 1.243 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.636e-05/0.2828, allocations: 89.98 kB / 1.243 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.2829, allocations: 33.7 kB / 1.243 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.403e-05/0.2829, allocations: 80.14 kB / 1.243 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.226e-05/0.2829, allocations: 0 / 1.243 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.283, allocations: 17.72 kB / 1.243 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2831, allocations: 318.8 kB / 1.244 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.068e-05/0.2831, allocations: 0 / 1.244 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.787e-06/0.2831, allocations: 4 kB / 1.244 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.803e-05/0.2832, allocations: 20.86 kB / 1.244 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.2832, allocations: 0 / 1.244 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.202e-05/0.2833, allocations: 41.62 kB / 1.244 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.2833, allocations: 4 kB / 1.244 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2833, allocations: 3.938 kB / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.2833, allocations: 4 kB / 1.244 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.572e-05/0.2834, allocations: 0 / 1.244 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/0.2834, allocations: 0 / 1.244 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.962e-05/0.2834, allocations: 8 kB / 1.244 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-06/0.2834, allocations: 3.938 kB / 1.244 GB, free: 6.715 MB / 0.9669 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.164e-05/0.2835, allocations: 110.4 kB / 1.244 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.138e-06/0.2835, allocations: 3.953 kB / 1.244 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.2836, allocations: 52.69 kB / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2836, allocations: 0 / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.2836, allocations: 0 / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.2836, allocations: 4 kB / 1.244 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.2837, allocations: 145.7 kB / 1.244 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2837, allocations: 0 / 1.244 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.318e-05/0.2838, allocations: 8.031 kB / 1.244 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.2838, allocations: 0 / 1.244 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.495e-06/0.2838, allocations: 3.938 kB / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2838, allocations: 0 / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2838, allocations: 4 kB / 1.244 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.069e-05/0.2839, allocations: 69.06 kB / 1.244 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.269e-05/0.2839, allocations: 77.11 kB / 1.244 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.284, allocations: 7.938 kB / 1.244 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.083e-05/0.284, allocations: 4.031 kB / 1.244 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.837e-05/0.284, allocations: 3.984 kB / 1.244 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.284, allocations: 4 kB / 1.244 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.295e-05/0.2841, allocations: 75.28 kB / 1.244 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2841, allocations: 0 / 1.244 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001848/0.2843, allocations: 4 kB / 1.244 GB, free: 6.051 MB / 0.9669 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.000441/0.2847, allocations: 0.6085 MB / 1.245 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 7.321e-05/0.2848, allocations: 11.94 kB / 1.245 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2848, allocations: 0 / 1.245 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.723e-05/0.2848, allocations: 7.984 kB / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.285, allocations: 4 kB / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002795/0.2852, allocations: 102.8 kB / 1.245 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.2856, allocations: 0.6807 MB / 1.246 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.483e-05/0.2856, allocations: 0 / 1.246 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.902e-05/0.2856, allocations: 11.38 kB / 1.246 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of SimCode: time 2.7e-07/0.2856, allocations: 3.938 kB / 1.246 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02003/0.3056, allocations: 1.076 MB / 1.247 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.382/7.688, allocations: 11.58 kB / 1.247 GB, free: 3.535 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches