Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.002016/0.002016, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002851/0.002851, allocations: 217.3 kB / 22.26 MB, free: 5.078 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.6/1.6, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.326/3.326, allocations: 0.49 GB / 0.7951 GB, free: 33.29 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_12_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.002069/0.002069, allocations: 66.58 kB / 1.154 GB, free: 25.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3548, allocations: 176.1 MB / 1.326 GB, free: 1.902 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001971/0.3568, allocations: 0.5866 MB / 1.327 GB, free: 1.32 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0004224/0.3572, allocations: 112 kB / 1.327 GB, free: 1.211 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.08e-05/0.3572, allocations: 0 / 1.327 GB, free: 1.211 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.379e-05/0.3572, allocations: 3.938 kB / 1.327 GB, free: 1.207 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.182e-06/0.3572, allocations: 4 kB / 1.327 GB, free: 1.203 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.3576, allocations: 43.81 kB / 1.327 GB, free: 1.16 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001312/0.3577, allocations: 59.95 kB / 1.327 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.944e-05/0.3578, allocations: 7.984 kB / 1.327 GB, free: 1.094 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.271e-05/0.3578, allocations: 23.97 kB / 1.327 GB, free: 1.07 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.717e-05/0.3579, allocations: 15.98 kB / 1.327 GB, free: 1.055 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.3579, allocations: 4 kB / 1.327 GB, free: 1.051 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.3581, allocations: 63.92 kB / 1.327 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.882e-05/0.3581, allocations: 19.92 kB / 1.327 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.401e-05/0.3581, allocations: 23.92 kB / 1.327 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.3583, allocations: 72.05 kB / 1.327 GB, free: 0.875 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.3583, allocations: 0 / 1.327 GB, free: 0.875 MB / 1.014 GB Notification: Performance of FrontEnd: time 8.21e-07/0.3583, allocations: 4 kB / 1.327 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.3583, allocations: 0 / 1.327 GB, free: 0.8711 MB / 1.014 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.0004704/0.3588, allocations: 295.7 kB / 1.327 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3588, allocations: 8.031 kB / 1.327 GB, free: 0.543 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.157e-05/0.3588, allocations: 42.75 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.3589, allocations: 8.891 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.604e-05/0.359, allocations: 118.4 kB / 1.327 GB, free: 352 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004349/0.3594, allocations: 0.526 MB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.3594, allocations: 8.375 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/0.3597, allocations: 85.88 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3597, allocations: 0 / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-06/0.3597, allocations: 0 / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3597, allocations: 4 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003383/0.36, allocations: 131.8 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001863/0.3602, allocations: 144.7 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.3605, allocations: 94.45 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.3606, allocations: 40.83 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.3607, allocations: 7.984 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.3607, allocations: 38.5 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.092e-06/0.3607, allocations: 0 / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0005205/0.3612, allocations: 149.8 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.3613, allocations: 55.34 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.686e-05/0.3613, allocations: 93.86 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.3613, allocations: 29.7 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.638e-05/0.3614, allocations: 80.14 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.717e-05/0.3614, allocations: 39.69 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.076e-05/0.3615, allocations: 25.7 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3616, allocations: 314.8 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.3617, allocations: 35.91 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.3619, allocations: 36.41 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.3621, allocations: 80.91 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3621, allocations: 0 / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003267/0.3625, allocations: 109.6 kB / 1.329 GB, free: 13.99 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3625, allocations: 7.938 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3625, allocations: 3.938 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.3625, allocations: 0 / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.3627, allocations: 27.97 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3627, allocations: 0 / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.257e-05/0.3627, allocations: 15.89 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.3627, allocations: 7.984 kB / 1.33 GB, free: 13.93 MB / 1.029 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.0001263/0.3629, allocations: 122.3 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.3629, allocations: 7.922 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.698e-05/0.3629, allocations: 7.906 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3629, allocations: 4 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3629, allocations: 0 / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.3629, allocations: 7.984 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.3631, allocations: 148.7 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3631, allocations: 4 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.3632, allocations: 27.92 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.3632, allocations: 3.938 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.3633, allocations: 7.984 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3633, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3633, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003522/0.3636, allocations: 133.1 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.495e-05/0.3636, allocations: 19.77 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.3636, allocations: 3.984 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.662e-05/0.3637, allocations: 12 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-05/0.3638, allocations: 11.97 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-06/0.3638, allocations: 4 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.05e-05/0.3638, allocations: 79.22 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 5e-08/0.3638, allocations: 0 / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002271/0.364, allocations: 20 kB / 1.33 GB, free: 13.23 MB / 1.029 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.0007733/0.3648, allocations: 0.6982 MB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003524/0.3652, allocations: 87.88 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.3652, allocations: 0 / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001516/0.3653, allocations: 44.45 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.3655, allocations: 6.031 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005832/0.3661, allocations: 206.6 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.3664, allocations: 0.6846 MB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001704/0.3666, allocations: 43.89 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.584e-05/0.3666, allocations: 19.42 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of SimCode: time 5.61e-07/0.3666, allocations: 0 / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.3977, allocations: 2.18 MB / 1.334 GB, free: 9.316 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.38, allocations: 6.062 kB / 1.334 GB, free: 9.312 MB / 1.029 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_Binomial_fmu --startTime=0 --stopTime=15.9 --stepSize=0.00636 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 19.577114593004808]