Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Binomial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_10_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.004862/0.004862, allocations: 104.3 kB / 15.74 MB, free: 6.059 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.001117/0.001117, allocations: 196.3 kB / 16.68 MB, free: 5.969 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.527/2.527, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 63.89 kB / 1.018 GB, free: 9.879 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9972/0.9987, allocations: 151.6 MB / 1.166 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.002019/1.001, allocations: 0.5883 MB / 1.167 GB, free: 3.23 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004322/1.001, allocations: 105.6 kB / 1.167 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.104e-05/1.001, allocations: 0 / 1.167 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.229e-05/1.001, allocations: 0 / 1.167 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.871e-06/1.001, allocations: 0 / 1.167 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/1.002, allocations: 43.89 kB / 1.167 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001651/1.002, allocations: 59.94 kB / 1.167 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.773e-05/1.002, allocations: 4 kB / 1.167 GB, free: 3.023 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.38e-05/1.002, allocations: 31.89 kB / 1.167 GB, free: 2.992 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.193e-05/1.002, allocations: 23.98 kB / 1.167 GB, free: 2.969 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/1.002, allocations: 0 / 1.167 GB, free: 2.969 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/1.002, allocations: 51.94 kB / 1.167 GB, free: 2.918 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.508e-05/1.002, allocations: 19.97 kB / 1.167 GB, free: 2.898 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.622e-05/1.002, allocations: 19.92 kB / 1.167 GB, free: 2.879 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/1.003, allocations: 71.77 kB / 1.167 GB, free: 2.809 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/1.003, allocations: 0 / 1.167 GB, free: 2.809 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.342e-06/1.003, allocations: 3.938 kB / 1.167 GB, free: 2.805 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.879e-06/1.003, allocations: 4 kB / 1.167 GB, free: 2.801 MB / 0.8887 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.0005743/1.003, allocations: 375.5 kB / 1.168 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/1.003, allocations: 8.031 kB / 1.168 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.908e-05/1.003, allocations: 42.75 kB / 1.168 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.712e-05/1.003, allocations: 8.844 kB / 1.168 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/1.003, allocations: 166.6 kB / 1.168 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002885/1.004, allocations: 281.6 kB / 1.168 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/1.004, allocations: 384 / 1.168 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/1.004, allocations: 85.94 kB / 1.168 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/1.004, allocations: 8 kB / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/1.004, allocations: 3.938 kB / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/1.004, allocations: 0 / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003703/1.004, allocations: 131.8 kB / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002538/1.005, allocations: 181.5 kB / 1.168 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/1.005, allocations: 98.52 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/1.005, allocations: 40.83 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/1.005, allocations: 4 kB / 1.169 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/1.005, allocations: 46.5 kB / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/1.005, allocations: 3.938 kB / 1.169 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0005742/1.006, allocations: 146.1 kB / 1.169 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/1.006, allocations: 55.41 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.216e-05/1.006, allocations: 89.86 kB / 1.169 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/1.006, allocations: 25.7 kB / 1.169 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/1.006, allocations: 84.14 kB / 1.169 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 5.294e-05/1.006, allocations: 39.53 kB / 1.169 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.308e-05/1.006, allocations: 25.7 kB / 1.169 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001197/1.006, allocations: 318.8 kB / 1.169 GB, free: 300 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/1.006, allocations: 31.97 kB / 1.169 GB, free: 268 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/1.007, allocations: 40.02 kB / 1.169 GB, free: 228 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/1.007, allocations: 76.75 kB / 1.169 GB, free: 148 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.007, allocations: 0 / 1.169 GB, free: 148 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003486/1.007, allocations: 117.5 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/1.007, allocations: 11.94 kB / 1.17 GB, free: 12 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/1.007, allocations: 0 / 1.17 GB, free: 12 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/1.007, allocations: 0 / 1.17 GB, free: 12 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/1.007, allocations: 23.97 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/1.008, allocations: 0 / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.988e-05/1.008, allocations: 8 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/1.008, allocations: 4 kB / 1.17 GB, free: 15.98 MB / 0.9044 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 9.392e-05/1.008, allocations: 121.8 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.164e-05/1.008, allocations: 15.84 kB / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.751e-05/1.008, allocations: 7.969 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/1.008, allocations: 0 / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/1.008, allocations: 0 / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/1.008, allocations: 3.984 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/1.008, allocations: 185.6 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/1.008, allocations: 0 / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/1.008, allocations: 23.98 kB / 1.17 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/1.008, allocations: 3.938 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/1.008, allocations: 3.984 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/1.008, allocations: 4 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.008, allocations: 0 / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/1.009, allocations: 152.8 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.802e-05/1.009, allocations: 81.05 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/1.009, allocations: 0 / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.915e-05/1.009, allocations: 7.984 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.033e-05/1.009, allocations: 11.98 kB / 1.17 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/1.009, allocations: 7.984 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.197e-05/1.009, allocations: 81.75 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/1.009, allocations: 0 / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002267/1.009, allocations: 24 kB / 1.17 GB, free: 15.15 MB / 0.9044 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.0008217/1.01, allocations: 0.6904 MB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003684/1.01, allocations: 100.4 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/1.01, allocations: 0 / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/1.01, allocations: 47.89 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/1.011, allocations: 10.23 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006392/1.011, allocations: 200.5 kB / 1.171 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/1.012, allocations: 0.6846 MB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0002065/1.012, allocations: 35.97 kB / 1.172 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.275e-05/1.012, allocations: 23.42 kB / 1.172 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/1.012, allocations: 4 kB / 1.172 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02109/1.033, allocations: 2.026 MB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.891, allocations: 19.94 kB / 1.174 GB, free: 11.32 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_Binomial_fmu --startTime=0 --stopTime=15.9 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bin[1],bin[2],bin[3],bin[4],bin[5],bin[6],bin[7],bin[8],bin[9],bin[10] Variables in the result:bin[10],bin[1],bin[2],bin[3],bin[4],bin[5],bin[6],bin[7],bin[8],bin[9],n,time