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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00139/0.00139, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001572/0.001572, allocations: 191.2 kB / 16.14 MB, free: 6.734 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.37/1.37, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.552/2.552, allocations: 437 MB / 0.7099 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.91 kB / 0.8687 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6596/0.661, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001839/0.6629, allocations: 0.6451 MB / 1.017 GB, free: 2.117 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003193/0.6632, allocations: 55.8 kB / 1.017 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.358e-05/0.6633, allocations: 0 / 1.017 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.532e-05/0.6633, allocations: 0 / 1.017 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.069e-06/0.6633, allocations: 0 / 1.017 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.6635, allocations: 11.98 kB / 1.017 GB, free: 2.051 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.85e-05/0.6636, allocations: 4 kB / 1.017 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.068e-05/0.6636, allocations: 0 / 1.017 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.649e-05/0.6636, allocations: 4 kB / 1.017 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.438e-05/0.6637, allocations: 3.984 kB / 1.017 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 9.658e-06/0.6637, allocations: 0 / 1.017 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.353e-05/0.6638, allocations: 11.98 kB / 1.017 GB, free: 2.027 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.6638, allocations: 4 kB / 1.017 GB, free: 2.023 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.6638, allocations: 3.938 kB / 1.017 GB, free: 2.02 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.991e-05/0.6639, allocations: 4 kB / 1.017 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.6639, allocations: 0 / 1.017 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.332e-06/0.6639, allocations: 4 kB / 1.017 GB, free: 2.012 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.6639, allocations: 3.938 kB / 1.017 GB, free: 2.008 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.0002865/0.6642, allocations: 319.5 kB / 1.018 GB, free: 1.645 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.6643, allocations: 8.031 kB / 1.018 GB, free: 1.637 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.347e-05/0.6643, allocations: 30.75 kB / 1.018 GB, free: 1.598 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.6643, allocations: 0.9375 kB / 1.018 GB, free: 1.598 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.992e-05/0.6644, allocations: 176.3 kB / 1.018 GB, free: 1.387 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.6645, allocations: 384 / 1.018 GB, free: 1.387 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.6645, allocations: 384 / 1.018 GB, free: 1.387 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.6646, allocations: 34.27 kB / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.6646, allocations: 3.938 kB / 1.018 GB, free: 1.344 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-06/0.6646, allocations: 0 / 1.018 GB, free: 1.344 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.6646, allocations: 0 / 1.018 GB, free: 1.344 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.608e-05/0.6647, allocations: 4 kB / 1.018 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.6648, allocations: 149.7 kB / 1.018 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 5.287e-05/0.6649, allocations: 30.55 kB / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.813e-05/0.6649, allocations: 4.859 kB / 1.018 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001693/0.6651, allocations: 89.14 kB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.6651, allocations: 34.56 kB / 1.018 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.253e-06/0.6651, allocations: 0 / 1.018 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0001498/0.6653, allocations: 41.62 kB / 1.018 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.6653, allocations: 63.47 kB / 1.018 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.162e-05/0.6654, allocations: 93.86 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.6654, allocations: 29.64 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.164e-05/0.6654, allocations: 80.14 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.6654, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.6655, allocations: 13.72 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.75e-05/0.6656, allocations: 310.8 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.51e-05/0.6656, allocations: 8 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.06e-05/0.6656, allocations: 11.98 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.182e-05/0.6656, allocations: 8.859 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.6657, allocations: 0 / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.274e-05/0.6657, allocations: 37.7 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.6657, allocations: 10.34 kB / 1.019 GB, free: 200 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.6658, allocations: 3.938 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.477e-06/0.6658, allocations: 0 / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.436e-05/0.6658, allocations: 11.92 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.6658, allocations: 0 / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.666e-05/0.6659, allocations: 10.25 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-06/0.6659, allocations: 0 / 1.019 GB, free: 176 kB / 0.7637 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 5.856e-05/0.6659, allocations: 106.4 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.006e-05/0.666, allocations: 4 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.011e-05/0.666, allocations: 44.75 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.6661, allocations: 7.984 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.6661, allocations: 0 / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.6661, allocations: 0 / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.366e-05/0.6662, allocations: 153.7 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.6662, allocations: 0 / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.518e-05/0.6662, allocations: 7.984 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.6662, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.6662, allocations: 7.875 kB / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.6662, allocations: 4 kB / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.6662, allocations: 0 / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.145e-05/0.6663, allocations: 61.12 kB / 1.019 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/0.6664, allocations: 81.14 kB / 1.019 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.6664, allocations: 3.938 kB / 1.019 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.247e-05/0.6664, allocations: 0 / 1.019 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/0.6664, allocations: 7.938 kB / 1.019 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-06/0.6664, allocations: 0 / 1.019 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.85e-05/0.6665, allocations: 79.27 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6665, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000214/0.6667, allocations: 8 kB / 1.02 GB, free: 15.5 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.0003516/0.667, allocations: 0.6124 MB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.459e-05/0.6671, allocations: 8 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6671, allocations: 0 / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.506e-05/0.6671, allocations: 4 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.6673, allocations: 4 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002675/0.6676, allocations: 114.6 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.6677, allocations: 0.6731 MB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.605e-05/0.6678, allocations: 7.984 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.099e-05/0.6678, allocations: 11.44 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6678, allocations: 0 / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.00971/0.6775, allocations: 0.9294 MB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/0.6777, allocations: 210 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.583/2.26, allocations: 0 / 1.022 GB, free: 12.88 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 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.mat","/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