Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Binomial",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.0008537/0.0008537, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004794/0.004794, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.263/1.263, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.115/2.115, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002937, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5701/0.5704, allocations: 142.4 MB / 0.9552 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.0005631/0.571, allocations: 320.7 kB / 0.9555 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003265/0.5713, allocations: 102.6 kB / 0.9556 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.203e-05/0.5713, allocations: 4 kB / 0.9556 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.89e-05/0.5714, allocations: 0 / 0.9556 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.238e-06/0.5714, allocations: 0 / 0.9556 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002374/0.5716, allocations: 32.86 kB / 0.9556 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.5717, allocations: 59.66 kB / 0.9557 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.54e-05/0.5718, allocations: 1.156 kB / 0.9557 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.098e-05/0.5718, allocations: 21.77 kB / 0.9557 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.572e-05/0.5719, allocations: 28.95 kB / 0.9557 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.5719, allocations: 2.188 kB / 0.9557 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.916e-05/0.572, allocations: 41.97 kB / 0.9558 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.225e-05/0.572, allocations: 29.14 kB / 0.9558 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.856e-05/0.5721, allocations: 45.56 kB / 0.9558 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.5722, allocations: 73.52 kB / 0.9559 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.5722, allocations: 5.094 kB / 0.9559 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.472e-06/0.5722, allocations: 0 / 0.9559 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.056e-06/0.5722, allocations: 0 / 0.9559 GB, free: 7.164 MB / 0.7169 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.0003333/0.5725, allocations: 360.3 kB / 0.9563 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.5726, allocations: 8.969 kB / 0.9563 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.386e-05/0.5726, allocations: 46.17 kB / 0.9563 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.851e-05/0.5727, allocations: 5.938 kB / 0.9563 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.383e-05/0.5727, allocations: 167.5 kB / 0.9565 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001787/0.5729, allocations: 283 kB / 0.9567 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.5729, allocations: 4.031 kB / 0.9567 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.5731, allocations: 77.33 kB / 0.9568 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.5731, allocations: 0 / 0.9568 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.5732, allocations: 5.531 kB / 0.9568 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.5732, allocations: 1.375 kB / 0.9568 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003147/0.5735, allocations: 139.3 kB / 0.957 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001327/0.5736, allocations: 183.2 kB / 0.9571 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/0.5739, allocations: 95.14 kB / 0.9572 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.574, allocations: 43.14 kB / 0.9573 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.5741, allocations: 1.188 kB / 0.9573 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.329e-05/0.5741, allocations: 35.94 kB / 0.9573 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 9.62e-07/0.5741, allocations: 0 / 0.9573 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.000486/0.5746, allocations: 148.4 kB / 0.9574 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.991e-05/0.5746, allocations: 56.78 kB / 0.9575 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.742e-05/0.5746, allocations: 90.08 kB / 0.9576 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.5747, allocations: 25.7 kB / 0.9576 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.044e-05/0.5747, allocations: 85.39 kB / 0.9577 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.5747, allocations: 39.27 kB / 0.9577 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.634e-05/0.5748, allocations: 13.69 kB / 0.9577 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.651e-05/0.5748, allocations: 319.9 kB / 0.958 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.5749, allocations: 30.56 kB / 0.9581 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.5751, allocations: 35.73 kB / 0.9581 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002499/0.5753, allocations: 78.16 kB / 0.9582 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.5753, allocations: 0 / 0.9582 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000306/0.5756, allocations: 112.5 kB / 0.9583 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.5757, allocations: 13.77 kB / 0.9583 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.5757, allocations: 3.984 kB / 0.9583 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.5757, allocations: 0 / 0.9583 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.5758, allocations: 26.05 kB / 0.9583 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.5758, allocations: 5.688 kB / 0.9583 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.662e-05/0.5759, allocations: 11.62 kB / 0.9583 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.5759, allocations: 5.734 kB / 0.9584 GB, free: 4.84 MB / 0.7169 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 5.99e-05/0.576, allocations: 119.2 kB / 0.9585 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.301e-05/0.576, allocations: 9.703 kB / 0.9585 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/0.576, allocations: 11.97 kB / 0.9585 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.5761, allocations: 5.812 kB / 0.9585 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.5761, allocations: 0 / 0.9585 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5761, allocations: 0 / 0.9585 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.391e-05/0.5762, allocations: 179.9 kB / 0.9587 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.5762, allocations: 5.781 kB / 0.9587 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.5763, allocations: 24.81 kB / 0.9587 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.5763, allocations: 3.938 kB / 0.9587 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.5763, allocations: 2.625 kB / 0.9587 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.5763, allocations: 0 / 0.9587 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.5763, allocations: 0 / 0.9587 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.5766, allocations: 155.1 kB / 0.9588 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.74e-05/0.5767, allocations: 82.42 kB / 0.9589 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.5767, allocations: 5.375 kB / 0.9589 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.635e-05/0.5767, allocations: 6.75 kB / 0.9589 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.814e-05/0.5768, allocations: 13.47 kB / 0.9589 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.5768, allocations: 2.75 kB / 0.959 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.728e-06/0.5768, allocations: 75.28 kB / 0.959 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5768, allocations: 0 / 0.959 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002029/0.577, allocations: 21.53 kB / 0.959 GB, free: 4.156 MB / 0.7169 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.0005084/0.5775, allocations: 0.7044 MB / 0.9597 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002962/0.5779, allocations: 84.19 kB / 0.9598 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.5779, allocations: 0 / 0.9598 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.578, allocations: 51.05 kB / 0.9599 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.5781, allocations: 4.969 kB / 0.9599 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004084/0.5786, allocations: 211.4 kB / 0.9601 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.632e-05/0.5787, allocations: 0.6833 MB / 0.9607 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001371/0.5788, allocations: 43.55 kB / 0.9608 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.329e-05/0.5788, allocations: 21.23 kB / 0.9608 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.5788, allocations: 0 / 0.9608 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01062/0.5895, allocations: 1.789 MB / 0.9625 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/0.5897, allocations: 208.5 kB / 0.9627 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.532/2.122, allocations: 0 / 0.9627 GB, free: 1.402 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Binomial_fmu --startTime=0 --stopTime=15.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches