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.001268/0.001268, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001273/0.001273, allocations: 192.5 kB / 16.25 MB, free: 6.637 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.264/1.264, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.361/2.361, allocations: 437 MB / 0.7101 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 76.08 kB / 0.8689 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5481/0.5493, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00172/0.5511, allocations: 0.6567 MB / 1.018 GB, free: 2.051 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000224/0.5513, allocations: 47.8 kB / 1.018 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.237e-05/0.5514, allocations: 0 / 1.018 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.5514, allocations: 0 / 1.018 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.2e-06/0.5514, allocations: 0 / 1.018 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.5516, allocations: 19.94 kB / 1.018 GB, free: 1.984 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.675e-05/0.5516, allocations: 4 kB / 1.018 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.015e-05/0.5517, allocations: 0 / 1.018 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.482e-05/0.5517, allocations: 7.969 kB / 1.018 GB, free: 1.973 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.901e-05/0.5517, allocations: 4 kB / 1.018 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 8.125e-06/0.5517, allocations: 0 / 1.018 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.049e-05/0.5518, allocations: 8 kB / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 8.176e-06/0.5518, allocations: 0 / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.645e-05/0.5518, allocations: 0 / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.373e-05/0.5519, allocations: 15.91 kB / 1.018 GB, free: 1.945 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.5519, allocations: 0 / 1.018 GB, free: 1.945 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.803e-06/0.5519, allocations: 4 kB / 1.018 GB, free: 1.941 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.5519, allocations: 0 / 1.018 GB, free: 1.941 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.0002531/0.5522, allocations: 315.6 kB / 1.018 GB, free: 1.582 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.5522, allocations: 12.03 kB / 1.018 GB, free: 1.57 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.943e-05/0.5523, allocations: 34.73 kB / 1.018 GB, free: 1.527 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.239e-05/0.5523, allocations: 4.844 kB / 1.018 GB, free: 1.523 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.694e-05/0.5524, allocations: 160.4 kB / 1.018 GB, free: 1.328 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.5524, allocations: 384 / 1.018 GB, free: 1.328 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-06/0.5524, allocations: 8.312 kB / 1.018 GB, free: 1.32 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.515e-05/0.5525, allocations: 42.19 kB / 1.018 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.5525, allocations: 7.938 kB / 1.018 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.781e-06/0.5525, allocations: 0 / 1.018 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.5525, allocations: 0 / 1.018 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.747e-05/0.5526, allocations: 4 kB / 1.018 GB, free: 1.262 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001128/0.5527, allocations: 145.7 kB / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 4.762e-05/0.5527, allocations: 22.59 kB / 1.018 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.713e-05/0.5527, allocations: 12.92 kB / 1.018 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.5529, allocations: 81.11 kB / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.5529, allocations: 38.5 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.5529, allocations: 0 / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0001145/0.553, allocations: 41.62 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.5531, allocations: 51.41 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.393e-05/0.5531, allocations: 93.86 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.5531, allocations: 25.83 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 3.072e-05/0.5532, allocations: 92.08 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.5532, allocations: 0 / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.5532, allocations: 13.7 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.464e-05/0.5533, allocations: 314.8 kB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.5533, allocations: 4 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.325e-06/0.5534, allocations: 4 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.695e-05/0.5534, allocations: 12.8 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.5534, allocations: 4.062 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.078e-05/0.5534, allocations: 41.69 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.5535, allocations: 4 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.5535, allocations: 3.938 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.247e-06/0.5535, allocations: 0 / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.625e-05/0.5535, allocations: 4 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.5535, allocations: 0 / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.543e-05/0.5536, allocations: 6.25 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.5536, allocations: 4 kB / 1.019 GB, free: 116 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 7.841e-05/0.5537, allocations: 110.5 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-06/0.5537, allocations: 3.984 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.025e-05/0.5538, allocations: 52.61 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.5538, allocations: 0 / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.5538, allocations: 0 / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.5538, allocations: 0 / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.647e-05/0.5539, allocations: 153.7 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.5539, allocations: 0 / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.15e-05/0.5539, allocations: 4 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.5539, allocations: 4.031 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.5539, allocations: 7.875 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.5539, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5539, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.357e-05/0.554, allocations: 69.06 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.801e-05/0.554, allocations: 77.11 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.5541, allocations: 7.922 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.829e-06/0.5541, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.946e-05/0.5541, allocations: 4.031 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.5541, allocations: 4 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.398e-05/0.5541, allocations: 75.28 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5541, allocations: 3.938 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001702/0.5543, allocations: 4 kB / 1.02 GB, free: 15.44 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.0003666/0.5547, allocations: 0.6125 MB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.885e-05/0.5548, allocations: 11.92 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.5548, allocations: 0 / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.353e-05/0.5548, allocations: 4 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001239/0.5549, allocations: 8 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000259/0.5552, allocations: 110.7 kB / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.5554, allocations: 0.6769 MB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.101e-05/0.5554, allocations: 0 / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.84e-05/0.5555, allocations: 7.438 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.5555, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5103/1.066, allocations: 0.9778 MB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/1.066, allocations: 200.1 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/2.775, allocations: 0 / 1.022 GB, free: 12.8 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