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.001099/0.001099, allocations: 108 kB / 15.6 MB, free: 132 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.001105/0.001105, allocations: 194.7 kB / 16.53 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.335/1.335, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.734/2.734, allocations: 469.4 MB / 0.742 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 66.42 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2752, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002757/0.278, allocations: 1.507 MB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003342/0.2784, allocations: 127.6 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.578e-05/0.2784, allocations: 0 / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.545e-05/0.2785, allocations: 3.938 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.756e-05/0.2785, allocations: 0 / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.2787, allocations: 31.91 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.396e-05/0.2788, allocations: 27.92 kB / 1.065 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.979e-05/0.2789, allocations: 15.92 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.287e-05/0.2789, allocations: 19.91 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.764e-05/0.279, allocations: 15.92 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.279, allocations: 8 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.582e-05/0.2791, allocations: 12 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.171e-05/0.2791, allocations: 0 / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.726e-05/0.2791, allocations: 15.92 kB / 1.065 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.2792, allocations: 31.89 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.2792, allocations: 0 / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2792, allocations: 0 / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.2793, allocations: 0 / 1.065 GB, free: 12.71 MB / 0.8262 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.0004159/0.2797, allocations: 351.7 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2797, allocations: 16.03 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.558e-05/0.2798, allocations: 30.75 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.574e-05/0.2798, allocations: 0.9375 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.972e-05/0.2799, allocations: 164.4 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.2799, allocations: 384 / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.2799, allocations: 384 / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.2801, allocations: 67.83 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.2801, allocations: 3.938 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.2802, allocations: 4 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.2802, allocations: 4 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.2804, allocations: 43.95 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003308/0.2807, allocations: 260.8 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.281, allocations: 66.47 kB / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.2811, allocations: 28.89 kB / 1.066 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.2813, allocations: 81.11 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.2813, allocations: 30.56 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2813, allocations: 0 / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003874/0.2817, allocations: 89.62 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.2817, allocations: 59.34 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.376e-05/0.2818, allocations: 101.9 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.2818, allocations: 33.62 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.908e-05/0.2819, allocations: 84.14 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.2819, allocations: 7.844 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.365e-05/0.2819, allocations: 17.72 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.913e-05/0.282, allocations: 318.8 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.864e-05/0.2821, allocations: 19.98 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.031e-05/0.2822, allocations: 15.98 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.2824, allocations: 48.75 kB / 1.067 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-06/0.2824, allocations: 0 / 1.067 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002139/0.2826, allocations: 78.06 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.2827, allocations: 7.938 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2827, allocations: 7.984 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.2827, allocations: 0 / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.671e-05/0.2828, allocations: 8 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.495e-06/0.2828, allocations: 3.984 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.516e-05/0.2828, allocations: 7.906 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.2829, allocations: 4.047 kB / 1.067 GB, free: 10.44 MB / 0.8262 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.507e-05/0.2829, allocations: 117.8 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.822e-05/0.283, allocations: 7.984 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002498/0.2832, allocations: 81.14 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2832, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2832, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2833, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.2834, allocations: 173.5 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.2834, allocations: 0 / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-05/0.2835, allocations: 12 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.2835, allocations: 3.984 kB / 1.068 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.2835, allocations: 4 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2835, allocations: 0 / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2835, allocations: 0 / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002567/0.2838, allocations: 167.5 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.836e-05/0.2838, allocations: 89.02 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.2839, allocations: 3.984 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-05/0.284, allocations: 8 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.284, allocations: 11.92 kB / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.284, allocations: 4 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.635e-05/0.2841, allocations: 79.28 kB / 1.068 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2841, allocations: 0 / 1.068 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002239/0.2843, allocations: 4 kB / 1.068 GB, free: 9.582 MB / 0.8262 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.0005965/0.2849, allocations: 0.7129 MB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002455/0.2852, allocations: 51.94 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2852, allocations: 0 / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.2853, allocations: 27.92 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00031/0.2856, allocations: 4 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005344/0.2861, allocations: 147.1 kB / 1.069 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.2865, allocations: 0.6807 MB / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.014e-05/0.2865, allocations: 0 / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.447e-05/0.2866, allocations: 19.38 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.2866, allocations: 4 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01792/0.3045, allocations: 1.557 MB / 1.071 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.288/7.593, allocations: 6.812 kB / 1.071 GB, free: 6.352 MB / 0.8262 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