Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.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.001794/0.001794, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001659/0.001659, allocations: 221.7 kB / 22.26 MB, free: 5.125 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.647/1.647, allocations: 230.6 MB / 256 MB, free: 7.977 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.422/3.422, allocations: 0.505 GB / 0.8101 GB, free: 22.04 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.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial",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.002025/0.002025, allocations: 74.64 kB / 1.177 GB, free: 16.91 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4248/0.4268, allocations: 180.2 MB / 1.353 GB, free: 8.398 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.002411/0.4292, allocations: 0.5959 MB / 1.353 GB, free: 7.805 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0004817/0.4297, allocations: 120 kB / 1.354 GB, free: 7.688 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.27e-05/0.4297, allocations: 0 / 1.354 GB, free: 7.688 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.313e-05/0.4297, allocations: 0 / 1.354 GB, free: 7.688 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.973e-06/0.4297, allocations: 0 / 1.354 GB, free: 7.688 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004389/0.4302, allocations: 35.91 kB / 1.354 GB, free: 7.652 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.4303, allocations: 67.92 kB / 1.354 GB, free: 7.586 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.807e-05/0.4304, allocations: 0 / 1.354 GB, free: 7.586 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.542e-05/0.4304, allocations: 23.98 kB / 1.354 GB, free: 7.562 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.905e-05/0.4305, allocations: 31.95 kB / 1.354 GB, free: 7.531 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.4305, allocations: 0 / 1.354 GB, free: 7.531 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.4307, allocations: 51.95 kB / 1.354 GB, free: 7.48 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.926e-05/0.4307, allocations: 27.89 kB / 1.354 GB, free: 7.453 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.296e-05/0.4308, allocations: 23.92 kB / 1.354 GB, free: 7.43 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.431, allocations: 72.06 kB / 1.354 GB, free: 7.359 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.431, allocations: 0 / 1.354 GB, free: 7.359 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.816e-06/0.431, allocations: 0 / 1.354 GB, free: 7.359 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.431, allocations: 0 / 1.354 GB, free: 7.359 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006235/0.4316, allocations: 302.3 kB / 1.354 GB, free: 7.031 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.4317, allocations: 8.031 kB / 1.354 GB, free: 7.023 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.868e-05/0.4317, allocations: 38.75 kB / 1.354 GB, free: 6.977 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.747e-05/0.4317, allocations: 4.938 kB / 1.354 GB, free: 6.973 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.4319, allocations: 114.4 kB / 1.354 GB, free: 6.836 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004796/0.4323, allocations: 0.5299 MB / 1.355 GB, free: 6.184 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.4324, allocations: 8.312 kB / 1.355 GB, free: 6.176 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.4326, allocations: 85.88 kB / 1.355 GB, free: 6.086 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4326, allocations: 0 / 1.355 GB, free: 6.086 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.4327, allocations: 12 kB / 1.355 GB, free: 6.074 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.4327, allocations: 0 / 1.355 GB, free: 6.074 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003517/0.433, allocations: 131.8 kB / 1.355 GB, free: 5.945 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002051/0.4332, allocations: 152.7 kB / 1.355 GB, free: 5.754 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.4335, allocations: 94.45 kB / 1.355 GB, free: 5.652 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.4337, allocations: 40.83 kB / 1.355 GB, free: 5.609 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.4337, allocations: 4 kB / 1.355 GB, free: 5.605 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.4337, allocations: 38.5 kB / 1.355 GB, free: 5.559 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.183e-06/0.4337, allocations: 0 / 1.355 GB, free: 5.559 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0005394/0.4343, allocations: 149.8 kB / 1.356 GB, free: 5.406 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.4343, allocations: 51.41 kB / 1.356 GB, free: 5.344 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.52e-05/0.4344, allocations: 89.86 kB / 1.356 GB, free: 5.246 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.4344, allocations: 33.7 kB / 1.356 GB, free: 5.207 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.709e-05/0.4345, allocations: 80.14 kB / 1.356 GB, free: 5.125 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.679e-05/0.4345, allocations: 35.69 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.258e-05/0.4346, allocations: 29.7 kB / 1.356 GB, free: 5.055 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.4347, allocations: 314.8 kB / 1.356 GB, free: 4.738 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.4348, allocations: 31.97 kB / 1.356 GB, free: 4.707 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.435, allocations: 35.97 kB / 1.356 GB, free: 4.672 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.4352, allocations: 80.75 kB / 1.356 GB, free: 4.59 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4352, allocations: 0 / 1.356 GB, free: 4.59 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003399/0.4356, allocations: 113.5 kB / 1.356 GB, free: 4.473 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.4356, allocations: 7.938 kB / 1.356 GB, free: 4.465 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.4356, allocations: 4 kB / 1.356 GB, free: 4.461 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.4356, allocations: 0 / 1.356 GB, free: 4.461 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.4358, allocations: 27.98 kB / 1.356 GB, free: 4.434 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.4358, allocations: 0 / 1.356 GB, free: 4.434 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.959e-05/0.4359, allocations: 11.92 kB / 1.356 GB, free: 4.422 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.4359, allocations: 4 kB / 1.356 GB, free: 4.418 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001134/0.436, allocations: 125.7 kB / 1.357 GB, free: 4.285 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.436, allocations: 7.891 kB / 1.357 GB, free: 4.277 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.002e-05/0.436, allocations: 23.83 kB / 1.357 GB, free: 4.25 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4361, allocations: 4 kB / 1.357 GB, free: 4.246 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4361, allocations: 0 / 1.357 GB, free: 4.246 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4361, allocations: 0 / 1.357 GB, free: 4.246 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.4362, allocations: 148.7 kB / 1.357 GB, free: 4.059 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4362, allocations: 3.938 kB / 1.357 GB, free: 4.055 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.4363, allocations: 23.97 kB / 1.357 GB, free: 4.031 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.4363, allocations: 3.938 kB / 1.357 GB, free: 4.027 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.4364, allocations: 4 kB / 1.357 GB, free: 4.023 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.4364, allocations: 0 / 1.357 GB, free: 4.023 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4364, allocations: 0 / 1.357 GB, free: 4.023 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003447/0.4367, allocations: 149.7 kB / 1.357 GB, free: 3.859 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.273e-05/0.4367, allocations: 11.88 kB / 1.357 GB, free: 3.848 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.4367, allocations: 0 / 1.357 GB, free: 3.848 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.785e-05/0.4368, allocations: 15.92 kB / 1.357 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.908e-05/0.4369, allocations: 7.984 kB / 1.357 GB, free: 3.824 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.4369, allocations: 7.984 kB / 1.357 GB, free: 3.816 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.566e-05/0.4369, allocations: 79.28 kB / 1.357 GB, free: 3.738 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4369, allocations: 0 / 1.357 GB, free: 3.738 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002373/0.4371, allocations: 20 kB / 1.357 GB, free: 3.719 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0007722/0.4379, allocations: 0.6982 MB / 1.358 GB, free: 2.992 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003304/0.4382, allocations: 87.86 kB / 1.358 GB, free: 2.906 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4382, allocations: 4 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.4384, allocations: 47.91 kB / 1.358 GB, free: 2.855 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.4385, allocations: 1.562 kB / 1.358 GB, free: 2.855 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005991/0.4391, allocations: 194.5 kB / 1.358 GB, free: 2.625 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.4395, allocations: 0.6898 MB / 1.359 GB, free: 1.91 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001935/0.4397, allocations: 35.97 kB / 1.359 GB, free: 1.875 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.325e-05/0.4397, allocations: 19.42 kB / 1.359 GB, free: 1.855 MB / 1.045 GB Notification: Performance of SimCode: time 3.91e-07/0.4397, allocations: 3.938 kB / 1.359 GB, free: 1.852 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.4723, allocations: 2.187 MB / 1.361 GB, free: 15.8 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.59, allocations: 8.672 kB / 1.361 GB, free: 15.79 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial_fmu --startTime=0 --stopTime=15.9 --stepSize=0.00636 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.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.964394168928266]