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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.006099/0.006099, allocations: 102.8 kB / 15.74 MB, free: 5.551 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.001411/0.001411, allocations: 194.2 kB / 16.67 MB, free: 5.48 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.6/2.6, allocations: 469.4 MB / 0.7421 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 68.09 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7732/0.7747, allocations: 159.1 MB / 1.22 GB, free: 2.441 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001813/0.7766, allocations: 0.5759 MB / 1.22 GB, free: 1.863 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002533/0.7768, allocations: 49.77 kB / 1.22 GB, free: 1.816 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.407e-05/0.7769, allocations: 4 kB / 1.22 GB, free: 1.812 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.7769, allocations: 0 / 1.22 GB, free: 1.812 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.553e-06/0.7769, allocations: 3.938 kB / 1.22 GB, free: 1.809 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.7771, allocations: 15.92 kB / 1.22 GB, free: 1.793 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 4.264e-05/0.7772, allocations: 4 kB / 1.22 GB, free: 1.789 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.382e-05/0.7772, allocations: 4 kB / 1.22 GB, free: 1.785 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.367e-05/0.7773, allocations: 0 / 1.22 GB, free: 1.785 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.178e-05/0.7773, allocations: 3.984 kB / 1.22 GB, free: 1.781 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.7773, allocations: 0 / 1.22 GB, free: 1.781 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.715e-05/0.7774, allocations: 15.92 kB / 1.22 GB, free: 1.766 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.143e-05/0.7774, allocations: 4 kB / 1.22 GB, free: 1.762 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.513e-05/0.7774, allocations: 0 / 1.22 GB, free: 1.762 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 7.985e-05/0.7775, allocations: 15.92 kB / 1.22 GB, free: 1.746 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.7775, allocations: 0 / 1.22 GB, free: 1.746 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7775, allocations: 0 / 1.22 GB, free: 1.746 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.7775, allocations: 4 kB / 1.22 GB, free: 1.742 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.0003035/0.7778, allocations: 311.5 kB / 1.221 GB, free: 1.387 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.7779, allocations: 12.62 kB / 1.221 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.156e-05/0.7779, allocations: 34.73 kB / 1.221 GB, free: 1.332 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.116e-05/0.7779, allocations: 0.9375 kB / 1.221 GB, free: 1.332 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.383e-05/0.778, allocations: 160.4 kB / 1.221 GB, free: 1.137 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.7781, allocations: 4.375 kB / 1.221 GB, free: 1.133 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-06/0.7781, allocations: 384 / 1.221 GB, free: 1.133 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.459e-05/0.7782, allocations: 38.2 kB / 1.221 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.7782, allocations: 7.938 kB / 1.221 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-06/0.7782, allocations: 0 / 1.221 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.7782, allocations: 0 / 1.221 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.952e-05/0.7782, allocations: 7.984 kB / 1.221 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001392/0.7784, allocations: 152.4 kB / 1.221 GB, free: 0.8789 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 4.53e-05/0.7784, allocations: 22.59 kB / 1.221 GB, free: 0.8477 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.888e-05/0.7784, allocations: 12.92 kB / 1.221 GB, free: 0.832 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001541/0.7786, allocations: 85.09 kB / 1.221 GB, free: 0.7305 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.7786, allocations: 38.5 kB / 1.221 GB, free: 0.6836 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.7787, allocations: 0 / 1.221 GB, free: 0.6836 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0001312/0.7788, allocations: 45.62 kB / 1.221 GB, free: 0.6328 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.7788, allocations: 51.41 kB / 1.221 GB, free: 0.5703 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.168e-05/0.7789, allocations: 89.86 kB / 1.221 GB, free: 484 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.7789, allocations: 25.7 kB / 1.222 GB, free: 452 kB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.375e-05/0.7789, allocations: 80.27 kB / 1.222 GB, free: 368 kB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.7789, allocations: 4 kB / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.779, allocations: 13.72 kB / 1.222 GB, free: 344 kB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.7791, allocations: 318.8 kB / 1.222 GB, free: 16 kB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.391e-05/0.7791, allocations: 7.938 kB / 1.222 GB, free: 8 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.554e-06/0.7791, allocations: 0 / 1.222 GB, free: 8 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.751e-05/0.7792, allocations: 20.8 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.7792, allocations: 0 / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.32e-05/0.7793, allocations: 45.7 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.7793, allocations: 4 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.7793, allocations: 3.938 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.7793, allocations: 0 / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.474e-05/0.7794, allocations: 4 kB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.7794, allocations: 3.938 kB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.7794, allocations: 0 / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.7794, allocations: 0 / 1.222 GB, free: 15.92 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 7.321e-05/0.7795, allocations: 114.4 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.7795, allocations: 4.031 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.83e-05/0.7796, allocations: 48.69 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.7796, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.7796, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.7796, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.7797, allocations: 153.7 kB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.7797, allocations: 0 / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.447e-05/0.7798, allocations: 4 kB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.7798, allocations: 3.984 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.7798, allocations: 3.938 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.7798, allocations: 4.031 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.7798, allocations: 3.984 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.407e-05/0.7799, allocations: 65.06 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.071e-05/0.7799, allocations: 81.11 kB / 1.222 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.7799, allocations: 7.938 kB / 1.222 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.122e-05/0.78, allocations: 0 / 1.222 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.073e-05/0.78, allocations: 3.984 kB / 1.222 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.78, allocations: 4.031 kB / 1.222 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.455e-05/0.78, allocations: 75.28 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.7e-07/0.78, allocations: 0 / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002022/0.7802, allocations: 8 kB / 1.223 GB, free: 15.24 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.0003868/0.7806, allocations: 0.6095 MB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.095e-05/0.7807, allocations: 11.94 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.7807, allocations: 0 / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.822e-05/0.7807, allocations: 11.98 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.7809, allocations: 2.031 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002649/0.7811, allocations: 113 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.7814, allocations: 0.6729 MB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.643e-05/0.7814, allocations: 7.906 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.961e-05/0.7814, allocations: 11.56 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of SimCode: time 4.11e-07/0.7815, allocations: 0 / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.7978, allocations: 1.075 MB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.684/8.482, allocations: 7.547 kB / 1.225 GB, free: 12.72 MB / 0.9512 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