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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 195.3 kB / 16.53 MB, free: 6.672 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.557/2.557, allocations: 461.9 MB / 0.7346 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 65.38 kB / 0.8992 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2478, allocations: 157.4 MB / 1.053 GB, free: 8.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001644/0.2495, allocations: 0.5915 MB / 1.053 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003162/0.2498, allocations: 107.6 kB / 1.054 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.686e-05/0.2499, allocations: 3.938 kB / 1.054 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.173e-05/0.2499, allocations: 0 / 1.054 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.258e-06/0.2499, allocations: 0 / 1.054 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.2502, allocations: 39.84 kB / 1.054 GB, free: 7.555 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.2503, allocations: 71.92 kB / 1.054 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.737e-05/0.2504, allocations: 11.92 kB / 1.054 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.709e-05/0.2504, allocations: 19.98 kB / 1.054 GB, free: 7.453 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.001e-05/0.2504, allocations: 23.95 kB / 1.054 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.2505, allocations: 4 kB / 1.054 GB, free: 7.426 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.2506, allocations: 43.97 kB / 1.054 GB, free: 7.383 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.785e-05/0.2506, allocations: 15.98 kB / 1.054 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.089e-05/0.2506, allocations: 27.83 kB / 1.054 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.2508, allocations: 67.84 kB / 1.054 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2508, allocations: 0 / 1.054 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.283e-06/0.2508, allocations: 4 kB / 1.054 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.2508, allocations: 0 / 1.054 GB, free: 7.27 MB / 0.8106 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.000409/0.2512, allocations: 371.5 kB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.2513, allocations: 8.625 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.2513, allocations: 42.75 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.2513, allocations: 8.938 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.947e-05/0.2514, allocations: 164.6 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.2516, allocations: 285.5 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.2516, allocations: 4.375 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.2519, allocations: 93.88 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.2519, allocations: 3.938 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.2519, allocations: 0 / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.2519, allocations: 4 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.2522, allocations: 131.8 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.2524, allocations: 173.6 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.2527, allocations: 98.45 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.2528, allocations: 44.84 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.2528, allocations: 7.969 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.2529, allocations: 38.5 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.2529, allocations: 0 / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004718/0.2533, allocations: 149.8 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.2534, allocations: 51.41 kB / 1.056 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.669e-05/0.2534, allocations: 89.86 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.2534, allocations: 33.7 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 1.986e-05/0.2535, allocations: 84.14 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/0.2535, allocations: 35.45 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.085e-05/0.2535, allocations: 25.7 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.835e-05/0.2536, allocations: 314.8 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.2538, allocations: 35.91 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.2539, allocations: 35.97 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.2541, allocations: 76.69 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2541, allocations: 4 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003022/0.2545, allocations: 109.6 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.2545, allocations: 9.031 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.2545, allocations: 0 / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.2545, allocations: 0 / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.2546, allocations: 31.92 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.2546, allocations: 0 / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.899e-05/0.2547, allocations: 19.83 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.2547, allocations: 4 kB / 1.056 GB, free: 4.438 MB / 0.8106 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 6.703e-05/0.2548, allocations: 121.8 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.2548, allocations: 3.938 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.2549, allocations: 7.969 kB / 1.057 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2549, allocations: 4 kB / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2549, allocations: 0 / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.2549, allocations: 0 / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.255, allocations: 185.5 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-06/0.255, allocations: 3.938 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.2551, allocations: 27.91 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.2551, allocations: 3.938 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.2551, allocations: 8 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2551, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2551, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.2555, allocations: 137.1 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.021e-05/0.2555, allocations: 92.89 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.2555, allocations: 0 / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.841e-05/0.2556, allocations: 11.98 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.2556, allocations: 11.98 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.2556, allocations: 4 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 1.969e-05/0.2557, allocations: 75.28 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.233e-06/0.2557, allocations: 0 / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000203/0.2559, allocations: 27.92 kB / 1.057 GB, free: 3.629 MB / 0.8106 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.000578/0.2565, allocations: 0.6913 MB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003081/0.2568, allocations: 107.9 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.2568, allocations: 0 / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.2569, allocations: 51.89 kB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001272/0.2571, allocations: 8 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004233/0.2575, allocations: 198.5 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001795/0.2577, allocations: 0.6884 MB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001194/0.2578, allocations: 39.81 kB / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.385e-05/0.2579, allocations: 23.42 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of SimCode: time 2.7e-07/0.2579, allocations: 0 / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8016/1.059, allocations: 1.995 MB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/11.18, allocations: 11.3 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB (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 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) 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) Reference file matches