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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00155/0.00155, allocations: 108 kB / 15.61 MB, free: 148 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.001468/0.001468, allocations: 193.6 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.721/2.721, allocations: 461.9 MB / 0.7346 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 68.38 kB / 0.8992 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2897, allocations: 157.4 MB / 1.053 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00264/0.2924, allocations: 1.506 MB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003221/0.2927, allocations: 127.6 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.428e-05/0.2928, allocations: 0 / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.206e-05/0.2928, allocations: 0 / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.642e-05/0.2929, allocations: 15.86 kB / 1.055 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000198/0.2931, allocations: 19.92 kB / 1.055 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.509e-05/0.2931, allocations: 23.98 kB / 1.055 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.35e-05/0.2932, allocations: 8 kB / 1.055 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.297e-05/0.2933, allocations: 15.91 kB / 1.055 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.011e-05/0.2933, allocations: 27.92 kB / 1.055 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.2934, allocations: 0 / 1.055 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.8e-05/0.2934, allocations: 12 kB / 1.055 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.735e-05/0.2934, allocations: 7.984 kB / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.2935, allocations: 15.88 kB / 1.055 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.2936, allocations: 31.89 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.2936, allocations: 0 / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.52e-07/0.2936, allocations: 0 / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2936, allocations: 0 / 1.055 GB, free: 6.504 MB / 0.8106 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.0004218/0.294, allocations: 349.1 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.2941, allocations: 12.62 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.067e-05/0.2941, allocations: 34.75 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.607e-05/0.2942, allocations: 4.844 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.2943, allocations: 164.4 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.2943, allocations: 384 / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.2943, allocations: 4.375 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.2945, allocations: 58.22 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.2945, allocations: 3.938 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.2945, allocations: 4 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.2945, allocations: 4 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.2947, allocations: 43.89 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003544/0.2951, allocations: 264.9 kB / 1.056 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003164/0.2954, allocations: 54.55 kB / 1.056 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.2955, allocations: 28.89 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001263/0.2957, allocations: 85.09 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.2957, allocations: 38.5 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2957, allocations: 0 / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003891/0.2961, allocations: 97.53 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.2961, allocations: 59.34 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.833e-05/0.2962, allocations: 101.8 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.2962, allocations: 25.7 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.945e-05/0.2963, allocations: 80.14 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.2963, allocations: 19.83 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/0.2964, allocations: 9.719 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.2965, allocations: 326.8 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-05/0.2966, allocations: 11.98 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.667e-05/0.2967, allocations: 27.91 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.2969, allocations: 48.7 kB / 1.057 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2969, allocations: 4 kB / 1.057 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002232/0.2971, allocations: 77.64 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.2971, allocations: 4 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.2971, allocations: 4 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.2971, allocations: 0 / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.087e-05/0.2972, allocations: 11.98 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.2972, allocations: 0 / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.597e-05/0.2973, allocations: 4 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.2973, allocations: 0 / 1.057 GB, free: 4.227 MB / 0.8106 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.573e-05/0.2974, allocations: 123.2 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.2974, allocations: 7.906 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002628/0.2977, allocations: 81.14 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2977, allocations: 0 / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2977, allocations: 0 / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2977, allocations: 4 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.2979, allocations: 161.6 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2979, allocations: 0 / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.764e-05/0.298, allocations: 15.98 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.298, allocations: 0 / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.298, allocations: 0 / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.298, allocations: 4 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.298, allocations: 0 / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002567/0.2983, allocations: 176 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.2983, allocations: 85.12 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.2983, allocations: 11.94 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.2984, allocations: 4 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.2985, allocations: 7.984 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.2985, allocations: 4 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.406e-05/0.2985, allocations: 79.28 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2985, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002225/0.2988, allocations: 8 kB / 1.057 GB, free: 3.371 MB / 0.8106 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.0005487/0.2993, allocations: 0.7201 MB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002387/0.2996, allocations: 39.95 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2996, allocations: 0 / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.2997, allocations: 27.98 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.3, allocations: 5.406 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004904/0.3005, allocations: 147.1 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.3007, allocations: 0.6845 MB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.564e-05/0.3008, allocations: 4 kB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.051e-05/0.3008, allocations: 15.44 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3008, allocations: 0 / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.3192, allocations: 1.546 MB / 1.06 GB, free: 152 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.414/7.733, allocations: 15.88 kB / 1.06 GB, free: 140 kB / 0.8106 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 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.mat","/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