Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_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.001045/0.001045, allocations: 108 kB / 15.61 MB, free: 152 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.001067/0.001067, allocations: 194.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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.471/2.471, allocations: 437 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 63.91 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5624/0.5638, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001869/0.5658, allocations: 0.5901 MB / 1.018 GB, free: 1.887 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002784/0.5661, allocations: 51.78 kB / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.657e-05/0.5661, allocations: 0 / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.5661, allocations: 0 / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.431e-06/0.5661, allocations: 0 / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002437/0.5664, allocations: 11.94 kB / 1.018 GB, free: 1.824 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.967e-05/0.5665, allocations: 7.984 kB / 1.018 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.575e-05/0.5665, allocations: 4 kB / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.435e-05/0.5665, allocations: 0 / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.02e-05/0.5665, allocations: 0 / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 9.909e-06/0.5666, allocations: 4 kB / 1.018 GB, free: 1.809 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.961e-05/0.5666, allocations: 12 kB / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.25e-05/0.5667, allocations: 3.984 kB / 1.018 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.398e-05/0.5667, allocations: 3.938 kB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.186e-05/0.5668, allocations: 7.984 kB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.5668, allocations: 0 / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.243e-06/0.5668, allocations: 0 / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.5668, allocations: 0 / 1.018 GB, free: 1.781 MB / 0.7637 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.0002887/0.5671, allocations: 319.6 kB / 1.018 GB, free: 1.418 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.5672, allocations: 19.97 kB / 1.018 GB, free: 1.398 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.899e-05/0.5672, allocations: 30.75 kB / 1.018 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.721e-05/0.5672, allocations: 4.844 kB / 1.018 GB, free: 1.355 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.828e-05/0.5673, allocations: 160.4 kB / 1.019 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.5673, allocations: 384 / 1.019 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.5673, allocations: 4.312 kB / 1.019 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.5675, allocations: 38.25 kB / 1.019 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.5675, allocations: 3.938 kB / 1.019 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-06/0.5675, allocations: 0 / 1.019 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.5675, allocations: 0 / 1.019 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.202e-05/0.5675, allocations: 8 kB / 1.019 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001417/0.5677, allocations: 153.7 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 4.98e-05/0.5677, allocations: 18.61 kB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.046e-05/0.5678, allocations: 12.86 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/0.5679, allocations: 81.09 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.568, allocations: 38.56 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.568, allocations: 4 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0001351/0.5681, allocations: 37.64 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/0.5681, allocations: 51.41 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.901e-05/0.5682, allocations: 93.86 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.5682, allocations: 33.62 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.294e-05/0.5682, allocations: 80.14 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.5683, allocations: 4 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.5683, allocations: 9.719 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.96e-05/0.5684, allocations: 315 kB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.53e-05/0.5684, allocations: 11.94 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.845e-06/0.5684, allocations: 0 / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.257e-05/0.5685, allocations: 16.84 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.5685, allocations: 0 / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.561e-05/0.5685, allocations: 37.7 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.5686, allocations: 4 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.5686, allocations: 3.938 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.5686, allocations: 4.094 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.934e-05/0.5687, allocations: 4 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.5687, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.5687, allocations: 6.234 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-06/0.5687, allocations: 3.938 kB / 1.02 GB, free: 15.95 MB / 0.7794 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.118e-05/0.5688, allocations: 111.4 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.854e-06/0.5688, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.12e-05/0.5689, allocations: 56.66 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.5689, allocations: 4.031 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5689, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.5689, allocations: 3.938 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.1e-05/0.569, allocations: 149.7 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.569, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.468e-05/0.569, allocations: 7.984 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.569, allocations: 0 / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.569, allocations: 7.922 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.5691, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5691, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.174e-05/0.5691, allocations: 69.06 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.657e-05/0.5692, allocations: 77.11 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.5692, allocations: 7.938 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.5692, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.5e-05/0.5692, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.5692, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.171e-05/0.5693, allocations: 79.22 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5693, allocations: 4 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000213/0.5695, allocations: 8.031 kB / 1.02 GB, free: 15.27 MB / 0.7794 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.0003475/0.5698, allocations: 0.6124 MB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.223e-05/0.5699, allocations: 8 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5699, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.438e-05/0.57, allocations: 8.094 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.5701, allocations: 8 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002864/0.5704, allocations: 106.7 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001831/0.5706, allocations: 0.6728 MB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.422e-05/0.5706, allocations: 4 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.943e-05/0.5706, allocations: 11.44 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of SimCode: time 4.21e-07/0.5706, allocations: 0 / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01557/0.5862, allocations: 1.043 MB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.884/7.47, allocations: 17.62 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches