Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_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.008089/0.008089, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.002237/0.002238, allocations: 195.2 kB / 16.67 MB, free: 5.934 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.8/2.8, allocations: 469.8 MB / 0.7425 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 75.84 kB / 1.065 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7896/0.7916, allocations: 159.1 MB / 1.22 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002308/0.794, allocations: 0.5836 MB / 1.221 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003373/0.7943, allocations: 49.83 kB / 1.221 GB, free: 1.387 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.92e-05/0.7943, allocations: 0 / 1.221 GB, free: 1.387 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.062e-05/0.7944, allocations: 3.938 kB / 1.221 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.522e-06/0.7944, allocations: 0 / 1.221 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.7947, allocations: 15.97 kB / 1.221 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.687e-05/0.7947, allocations: 7.938 kB / 1.221 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.7948, allocations: 0 / 1.221 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.7948, allocations: 4 kB / 1.221 GB, free: 1.355 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.271e-05/0.7949, allocations: 0 / 1.221 GB, free: 1.355 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.7949, allocations: 4 kB / 1.221 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.532e-05/0.795, allocations: 11.98 kB / 1.221 GB, free: 1.34 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.061e-05/0.795, allocations: 0 / 1.221 GB, free: 1.34 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.795, allocations: 3.984 kB / 1.221 GB, free: 1.336 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.7951, allocations: 15.92 kB / 1.221 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.7952, allocations: 0 / 1.221 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.375e-06/0.7952, allocations: 0 / 1.221 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.032e-06/0.7952, allocations: 0 / 1.221 GB, free: 1.32 MB / 0.9356 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.0003908/0.7956, allocations: 315.5 kB / 1.221 GB, free: 0.9609 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.7956, allocations: 12.03 kB / 1.221 GB, free: 0.9492 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.444e-05/0.7957, allocations: 34.69 kB / 1.221 GB, free: 0.9062 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.307e-05/0.7957, allocations: 4.922 kB / 1.221 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.7959, allocations: 160.4 kB / 1.221 GB, free: 0.707 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.7959, allocations: 8.375 kB / 1.221 GB, free: 0.6992 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.7959, allocations: 4.375 kB / 1.221 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.796, allocations: 26.27 kB / 1.221 GB, free: 0.6641 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.796, allocations: 3.938 kB / 1.221 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.7961, allocations: 4 kB / 1.221 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.7961, allocations: 4 kB / 1.221 GB, free: 0.6523 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.936e-05/0.7961, allocations: 3.984 kB / 1.221 GB, free: 0.6484 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001929/0.7963, allocations: 152.4 kB / 1.222 GB, free: 464 kB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.985e-05/0.7964, allocations: 22.55 kB / 1.222 GB, free: 432 kB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.258e-05/0.7964, allocations: 16.91 kB / 1.222 GB, free: 412 kB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001912/0.7966, allocations: 81.11 kB / 1.222 GB, free: 312 kB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.7967, allocations: 34.56 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.512e-06/0.7967, allocations: 3.938 kB / 1.222 GB, free: 264 kB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0001844/0.7969, allocations: 49.56 kB / 1.222 GB, free: 208 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.797, allocations: 51.41 kB / 1.222 GB, free: 144 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.415e-05/0.797, allocations: 89.86 kB / 1.222 GB, free: 44 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.7971, allocations: 25.7 kB / 1.222 GB, free: 12 kB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.508e-05/0.7971, allocations: 84.14 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.7972, allocations: 0 / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.7972, allocations: 13.84 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.7974, allocations: 322.8 kB / 1.222 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.454e-05/0.7974, allocations: 0 / 1.222 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.281e-05/0.7974, allocations: 4 kB / 1.222 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.417e-05/0.7975, allocations: 12.86 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.7975, allocations: 0 / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001035/0.7976, allocations: 49.52 kB / 1.222 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.7976, allocations: 4 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.7977, allocations: 8.031 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.7977, allocations: 0 / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.228e-05/0.7978, allocations: 4 kB / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.7978, allocations: 0 / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.897e-05/0.7978, allocations: 0 / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.7978, allocations: 4 kB / 1.222 GB, free: 15.49 MB / 0.9512 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 0.0001018/0.7979, allocations: 109.8 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.7979, allocations: 0 / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.7981, allocations: 48.75 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.7981, allocations: 0 / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.7981, allocations: 0 / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.7981, allocations: 0 / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.7983, allocations: 157.6 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.7983, allocations: 0 / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.158e-05/0.7983, allocations: 4 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.7983, allocations: 0 / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.7983, allocations: 3.938 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.7984, allocations: 4 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7984, allocations: 0 / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000115/0.7985, allocations: 73.14 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.917e-05/0.7986, allocations: 77.11 kB / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.7986, allocations: 3.938 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.607e-05/0.7986, allocations: 0 / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.869e-05/0.7986, allocations: 3.984 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.7987, allocations: 4 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.068e-05/0.7987, allocations: 75.28 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/0.7987, allocations: 4.031 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003437/0.7991, allocations: 11.94 kB / 1.223 GB, free: 14.82 MB / 0.9512 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.000567/0.7997, allocations: 0.606 MB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 8.91e-05/0.7998, allocations: 4 kB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.7998, allocations: 4.094 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.566e-05/0.7998, allocations: 19.86 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002071/0.8, allocations: 4 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004122/0.8005, allocations: 106.6 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.8009, allocations: 0.6768 MB / 1.224 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.996e-05/0.8009, allocations: 3.906 kB / 1.224 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.626e-05/0.8009, allocations: 7.438 kB / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of SimCode: time 3.51e-07/0.8009, allocations: 0 / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02333/0.8243, allocations: 1.083 MB / 1.225 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.2/9.025, allocations: 12.58 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches