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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 209.7 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.566/1.566, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.381/3.381, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 71.11 kB / 1.186 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4313/0.4334, allocations: 181.9 MB / 1.363 GB, free: 14.07 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001902/0.4353, allocations: 0.5952 MB / 1.364 GB, free: 13.47 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003096/0.4356, allocations: 52.08 kB / 1.364 GB, free: 13.43 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.117e-05/0.4357, allocations: 0 / 1.364 GB, free: 13.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.375e-05/0.4357, allocations: 4 kB / 1.364 GB, free: 13.42 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.4357, allocations: 0 / 1.364 GB, free: 13.42 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.4359, allocations: 8 kB / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 4.701e-05/0.436, allocations: 7.984 kB / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.646e-05/0.436, allocations: 0 / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 1.973e-05/0.436, allocations: 7.984 kB / 1.364 GB, free: 13.4 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 2.032e-05/0.436, allocations: 0 / 1.364 GB, free: 13.4 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.4361, allocations: 0 / 1.364 GB, free: 13.4 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.387e-05/0.4361, allocations: 11.98 kB / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.4362, allocations: 0 / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.238e-05/0.4362, allocations: 7.938 kB / 1.364 GB, free: 13.38 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 9.567e-05/0.4363, allocations: 11.98 kB / 1.364 GB, free: 13.37 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.4363, allocations: 7.938 kB / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4363, allocations: 0 / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.4363, allocations: 0 / 1.364 GB, free: 13.36 MB / 1.061 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.0003367/0.4366, allocations: 246.7 kB / 1.364 GB, free: 13.09 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.4367, allocations: 8.031 kB / 1.364 GB, free: 13.08 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.378e-05/0.4367, allocations: 34.75 kB / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.359e-05/0.4367, allocations: 0.9375 kB / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.234e-05/0.4368, allocations: 102.5 kB / 1.364 GB, free: 12.91 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-06/0.4368, allocations: 384 / 1.364 GB, free: 12.91 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-06/0.4368, allocations: 384 / 1.364 GB, free: 12.91 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.4369, allocations: 38.25 kB / 1.365 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.4369, allocations: 3.938 kB / 1.365 GB, free: 12.86 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.437, allocations: 4 kB / 1.365 GB, free: 12.86 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.437, allocations: 4 kB / 1.365 GB, free: 12.86 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.921e-05/0.437, allocations: 3.938 kB / 1.365 GB, free: 12.85 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001565/0.4371, allocations: 124.7 kB / 1.365 GB, free: 12.69 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 6.185e-05/0.4372, allocations: 22.61 kB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.962e-05/0.4372, allocations: 8.922 kB / 1.365 GB, free: 12.64 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.4374, allocations: 7.984 kB / 1.365 GB, free: 12.64 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.4374, allocations: 34.56 kB / 1.365 GB, free: 12.59 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.4374, allocations: 3.938 kB / 1.365 GB, free: 12.59 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0001434/0.4375, allocations: 45.58 kB / 1.365 GB, free: 12.54 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.4376, allocations: 55.41 kB / 1.365 GB, free: 12.47 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.616e-05/0.4376, allocations: 89.86 kB / 1.365 GB, free: 12.38 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.4377, allocations: 25.7 kB / 1.365 GB, free: 12.34 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/0.4377, allocations: 84.14 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.4377, allocations: 3.984 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.4378, allocations: 13.72 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4379, allocations: 310.8 kB / 1.365 GB, free: 11.92 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.278e-05/0.4379, allocations: 8.125 kB / 1.365 GB, free: 11.91 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.386e-06/0.4379, allocations: 4 kB / 1.365 GB, free: 11.91 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.178e-05/0.4379, allocations: 8.859 kB / 1.365 GB, free: 11.9 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.438, allocations: 4 kB / 1.365 GB, free: 11.89 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.47e-05/0.438, allocations: 49.58 kB / 1.365 GB, free: 11.84 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.438, allocations: 4 kB / 1.365 GB, free: 11.84 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.438, allocations: 3.938 kB / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.4381, allocations: 0 / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.579e-05/0.4381, allocations: 4 kB / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.4381, allocations: 96 / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.29e-05/0.4381, allocations: 4 kB / 1.365 GB, free: 11.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-06/0.4381, allocations: 0 / 1.365 GB, free: 11.82 MB / 1.061 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 8.117e-05/0.4382, allocations: 113.8 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.332e-06/0.4382, allocations: 0 / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.4383, allocations: 56.7 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.4383, allocations: 0 / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4383, allocations: 0 / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.4383, allocations: 0 / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.4384, allocations: 120.8 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4384, allocations: 8.031 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-05/0.4385, allocations: 4 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.4385, allocations: 0 / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.4385, allocations: 3.938 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.4385, allocations: 3.984 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4385, allocations: 0 / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.447e-05/0.4386, allocations: 61.14 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-06/0.4386, allocations: 0 / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.4386, allocations: 11.86 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-06/0.4386, allocations: 3.938 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.4386, allocations: 4 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.4386, allocations: 7.969 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.636e-05/0.4387, allocations: 75.28 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4387, allocations: 0 / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001802/0.4389, allocations: 7.938 kB / 1.366 GB, free: 11.27 MB / 1.061 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.0005699/0.4394, allocations: 0.6007 MB / 1.366 GB, free: 10.64 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 7.993e-05/0.4395, allocations: 11.98 kB / 1.366 GB, free: 10.62 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4395, allocations: 0 / 1.366 GB, free: 10.62 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.858e-05/0.4395, allocations: 12.03 kB / 1.366 GB, free: 10.61 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.4397, allocations: 2.062 kB / 1.366 GB, free: 10.61 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004169/0.4401, allocations: 118.6 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.779e-05/0.4401, allocations: 51.36 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.408e-05/0.4401, allocations: 4 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.347e-05/0.4402, allocations: 7.438 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of SimCode: time 2.71e-07/0.4402, allocations: 0 / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03065/0.4708, allocations: 1.567 MB / 1.368 GB, free: 8.938 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.5, allocations: 4.984 kB / 1.368 GB, free: 8.938 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.727765245363116]