Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_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.006882/0.006883, allocations: 98.38 kB / 15.73 MB, free: 6.008 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.001801/0.001801, allocations: 193 kB / 16.68 MB, free: 5.934 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.665/2.665, allocations: 482.6 MB / 0.7551 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 72.66 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2923, allocations: 162.3 MB / 1.242 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002383/0.2947, allocations: 1.54 MB / 1.243 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00042/0.2951, allocations: 179.4 kB / 1.244 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.06e-05/0.2952, allocations: 0 / 1.244 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.449e-05/0.2952, allocations: 0 / 1.244 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.684e-05/0.2952, allocations: 7.938 kB / 1.244 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.2955, allocations: 55.81 kB / 1.244 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.926e-05/0.2956, allocations: 27.98 kB / 1.244 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.64e-05/0.2957, allocations: 19.97 kB / 1.244 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.026e-05/0.2957, allocations: 15.92 kB / 1.244 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.437e-05/0.2958, allocations: 23.86 kB / 1.244 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.2958, allocations: 4 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.2959, allocations: 47.95 kB / 1.244 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.632e-05/0.296, allocations: 15.98 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.296, allocations: 19.88 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.2961, allocations: 60.06 kB / 1.244 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2961, allocations: 0 / 1.244 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2961, allocations: 0 / 1.244 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.2962, allocations: 3.938 kB / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004697/0.2966, allocations: 359.3 kB / 1.244 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2967, allocations: 12.03 kB / 1.244 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.2967, allocations: 34.75 kB / 1.244 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.621e-05/0.2967, allocations: 8.891 kB / 1.244 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.2969, allocations: 160.4 kB / 1.244 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.2969, allocations: 384 / 1.244 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.2969, allocations: 8.375 kB / 1.244 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.2971, allocations: 70.14 kB / 1.244 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.2971, allocations: 7.875 kB / 1.244 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.2971, allocations: 4 kB / 1.244 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.2971, allocations: 0 / 1.244 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.2973, allocations: 47.95 kB / 1.244 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003593/0.2977, allocations: 284.7 kB / 1.245 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002958/0.298, allocations: 59.97 kB / 1.245 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.558e-05/0.2981, allocations: 28.89 kB / 1.245 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002116/0.2983, allocations: 170.2 kB / 1.245 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.2984, allocations: 30.56 kB / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.2984, allocations: 0 / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0003672/0.2987, allocations: 101.5 kB / 1.245 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.2988, allocations: 55.41 kB / 1.245 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.479e-05/0.2989, allocations: 109.8 kB / 1.245 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.2989, allocations: 25.7 kB / 1.245 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.819e-05/0.299, allocations: 88.14 kB / 1.245 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.087e-05/0.299, allocations: 3.953 kB / 1.245 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.299, allocations: 21.7 kB / 1.245 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.2991, allocations: 314.8 kB / 1.246 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.075e-05/0.2992, allocations: 19.98 kB / 1.246 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.34e-05/0.2993, allocations: 27.97 kB / 1.246 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.2995, allocations: 40.81 kB / 1.246 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.2995, allocations: 0 / 1.246 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002122/0.2997, allocations: 77.59 kB / 1.246 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.2997, allocations: 4 kB / 1.246 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.2998, allocations: 336 / 1.246 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.967e-06/0.2998, allocations: 4 kB / 1.246 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.212e-05/0.2998, allocations: 11.98 kB / 1.246 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.2999, allocations: 4 kB / 1.246 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.914e-05/0.2999, allocations: 15.94 kB / 1.246 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.2999, allocations: 0 / 1.246 GB, free: 4.422 MB / 0.9669 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 (bin.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.676e-05/0.3, allocations: 117.8 kB / 1.246 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.3001, allocations: 4 kB / 1.246 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002485/0.3003, allocations: 81.55 kB / 1.246 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.3003, allocations: 11.88 kB / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-06/0.3003, allocations: 3.938 kB / 1.246 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.3003, allocations: 0 / 1.246 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001722/0.3005, allocations: 169.6 kB / 1.246 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3005, allocations: 0 / 1.246 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.814e-05/0.3006, allocations: 11.98 kB / 1.246 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3006, allocations: 0 / 1.246 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.3006, allocations: 0 / 1.246 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.3006, allocations: 7.984 kB / 1.246 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3006, allocations: 0 / 1.246 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000264/0.3009, allocations: 175.4 kB / 1.246 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.159e-05/0.301, allocations: 81.11 kB / 1.247 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.301, allocations: 0 / 1.247 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-05/0.3011, allocations: 7.984 kB / 1.247 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.3011, allocations: 11.98 kB / 1.247 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.3011, allocations: 4 kB / 1.247 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.457e-05/0.3012, allocations: 83.22 kB / 1.247 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3012, allocations: 0 / 1.247 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002294/0.3014, allocations: 27.92 kB / 1.247 GB, free: 3.531 MB / 0.9669 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 (rea2Int.y,bin.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006033/0.302, allocations: 0.7247 MB / 1.247 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002201/0.3022, allocations: 39.95 kB / 1.247 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3023, allocations: 4 kB / 1.247 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.61e-05/0.3024, allocations: 27.91 kB / 1.247 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.3026, allocations: 9.875 kB / 1.247 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.304, allocations: 1.288 MB / 1.249 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.3043, allocations: 0.6811 MB / 1.249 GB, free: 0.6289 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.561e-05/0.3043, allocations: 3.938 kB / 1.249 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.3044, allocations: 19.44 kB / 1.249 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/0.3044, allocations: 4 kB / 1.249 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4426/0.747, allocations: 1.929 MB / 1.251 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.384/9.131, allocations: 3.984 kB / 1.251 GB, free: 14.74 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches