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.007776/0.007776, allocations: 104.2 kB / 15.74 MB, free: 6.445 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.001632/0.001632, allocations: 191.9 kB / 16.67 MB, free: 6.352 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.754/2.754, allocations: 472.7 MB / 0.7453 GB, free: 4.504 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 71.89 kB / 1.069 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2948, allocations: 159.9 MB / 1.225 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001668/0.2965, allocations: 0.5971 MB / 1.226 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002521/0.2968, allocations: 51.8 kB / 1.226 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.394e-05/0.2969, allocations: 0 / 1.226 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.083e-05/0.2969, allocations: 0 / 1.226 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.47e-06/0.2969, allocations: 0 / 1.226 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.2971, allocations: 15.91 kB / 1.226 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.576e-05/0.2972, allocations: 8 kB / 1.226 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.699e-05/0.2972, allocations: 0 / 1.226 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.212e-05/0.2972, allocations: 0 / 1.226 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 1.92e-05/0.2972, allocations: 4 kB / 1.226 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.2973, allocations: 0 / 1.226 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.539e-05/0.2973, allocations: 11.98 kB / 1.226 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.137e-06/0.2974, allocations: 4 kB / 1.226 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.976e-05/0.2974, allocations: 4 kB / 1.226 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 7.92e-05/0.2975, allocations: 11.92 kB / 1.226 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.2975, allocations: 0 / 1.226 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2975, allocations: 0 / 1.226 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.2975, allocations: 4 kB / 1.226 GB, free: 8.906 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000282/0.2978, allocations: 321.1 kB / 1.226 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2978, allocations: 8.031 kB / 1.226 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.175e-05/0.2979, allocations: 30.75 kB / 1.226 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.204e-05/0.2979, allocations: 4.938 kB / 1.226 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.689e-05/0.298, allocations: 164.4 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.298, allocations: 4.375 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.081e-06/0.298, allocations: 4.312 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.26e-05/0.2981, allocations: 34.27 kB / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2981, allocations: 3.938 kB / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.2981, allocations: 3.984 kB / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.2981, allocations: 0 / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.002e-05/0.2982, allocations: 7.984 kB / 1.226 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001344/0.2983, allocations: 153.6 kB / 1.227 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.676e-05/0.2984, allocations: 22.61 kB / 1.227 GB, free: 8 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.133e-05/0.2984, allocations: 12.73 kB / 1.227 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001421/0.2985, allocations: 85.16 kB / 1.227 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.2986, allocations: 34.56 kB / 1.227 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.2986, allocations: 0 / 1.227 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.000126/0.2987, allocations: 45.62 kB / 1.227 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.2987, allocations: 55.41 kB / 1.227 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.654e-05/0.2988, allocations: 93.86 kB / 1.227 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.2988, allocations: 25.7 kB / 1.227 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.058e-05/0.2988, allocations: 84.08 kB / 1.227 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.2989, allocations: 0 / 1.227 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.95e-05/0.2989, allocations: 13.72 kB / 1.227 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.299, allocations: 310.8 kB / 1.227 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.456e-05/0.299, allocations: 12.06 kB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.038e-05/0.299, allocations: 7.984 kB / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.868e-05/0.2991, allocations: 8.859 kB / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2991, allocations: 0 / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.423e-05/0.2992, allocations: 41.66 kB / 1.227 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2992, allocations: 8 kB / 1.227 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2992, allocations: 3.938 kB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.2992, allocations: 0 / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.334e-05/0.2993, allocations: 7.984 kB / 1.227 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.2993, allocations: 4.094 kB / 1.227 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.2993, allocations: 0 / 1.227 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-06/0.2993, allocations: 3.938 kB / 1.227 GB, free: 7.066 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 (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 6.967e-05/0.2994, allocations: 108.1 kB / 1.228 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.238e-06/0.2994, allocations: 4 kB / 1.228 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.128e-05/0.2995, allocations: 44.75 kB / 1.228 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2995, allocations: 4 kB / 1.228 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2995, allocations: 0 / 1.228 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.2995, allocations: 4.031 kB / 1.228 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.643e-05/0.2996, allocations: 149.7 kB / 1.228 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.2996, allocations: 4 kB / 1.228 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.452e-05/0.2996, allocations: 4 kB / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.2996, allocations: 0 / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.2997, allocations: 3.938 kB / 1.228 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2997, allocations: 4 kB / 1.228 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2997, allocations: 0 / 1.228 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.118e-05/0.2997, allocations: 69.06 kB / 1.228 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.645e-05/0.2998, allocations: 77.11 kB / 1.228 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.2998, allocations: 3.938 kB / 1.228 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.137e-05/0.2998, allocations: 0 / 1.228 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.186e-05/0.2998, allocations: 4 kB / 1.228 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.2999, allocations: 3.938 kB / 1.228 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.344e-05/0.2999, allocations: 75.28 kB / 1.228 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2999, allocations: 3.938 kB / 1.228 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001855/0.3001, allocations: 7.984 kB / 1.228 GB, free: 6.402 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,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.0003634/0.3004, allocations: 0.6124 MB / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 6.624e-05/0.3005, allocations: 4 kB / 1.229 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3005, allocations: 4 kB / 1.229 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.55e-05/0.3006, allocations: 4 kB / 1.229 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.3007, allocations: 8.156 kB / 1.229 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000268/0.301, allocations: 98.72 kB / 1.229 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.3012, allocations: 0.6767 MB / 1.229 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.341e-05/0.3012, allocations: 3.984 kB / 1.229 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.168e-05/0.3012, allocations: 15.44 kB / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3012, allocations: 0 / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0172/0.3184, allocations: 1.071 MB / 1.23 GB, free: 3.902 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/8.317, allocations: 19.2 kB / 1.23 GB, free: 3.891 MB / 0.9825 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 50 --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