Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_9_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.008396/0.008396, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.002027/0.002027, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.191/2.191, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 71.89 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8034/0.8048, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003507/0.8083, allocations: 1.537 MB / 1.089 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005645/0.8089, allocations: 176.3 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.325e-05/0.809, allocations: 0 / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.828e-05/0.809, allocations: 5.734 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.228e-05/0.8091, allocations: 0.7969 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.8095, allocations: 54.91 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.823e-05/0.8096, allocations: 40.23 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.8097, allocations: 15.59 kB / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.801e-05/0.8098, allocations: 15.61 kB / 1.089 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.448e-05/0.8099, allocations: 18 kB / 1.089 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.8099, allocations: 3.125 kB / 1.089 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.81, allocations: 50.3 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.098e-05/0.8101, allocations: 14.62 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.45e-05/0.8101, allocations: 13.2 kB / 1.089 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001939/0.8103, allocations: 67.81 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.8103, allocations: 1.094 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.743e-06/0.8104, allocations: 0 / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.8104, allocations: 4.594 kB / 1.089 GB, free: 3.945 MB / 0.8575 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.0005061/0.8109, allocations: 360.5 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.8109, allocations: 9.469 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.063e-05/0.811, allocations: 36.89 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.811, allocations: 3.875 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.466e-05/0.8111, allocations: 167 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.8112, allocations: 2.328 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.8112, allocations: 10.5 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.8114, allocations: 62.16 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.8115, allocations: 4.547 kB / 1.09 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.8115, allocations: 8.969 kB / 1.09 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.8115, allocations: 1.344 kB / 1.09 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000288/0.8118, allocations: 43.64 kB / 1.09 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004/0.8122, allocations: 280.4 kB / 1.09 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004357/0.8127, allocations: 61.36 kB / 1.09 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.8128, allocations: 26.98 kB / 1.09 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002235/0.8131, allocations: 169.1 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.458e-05/0.8131, allocations: 32.08 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.744e-06/0.8131, allocations: 0 / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005219/0.8136, allocations: 97.88 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.934e-05/0.8137, allocations: 52.02 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.107e-05/0.8138, allocations: 115.4 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.147e-06/0.8138, allocations: 25.7 kB / 1.091 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.101e-05/0.8138, allocations: 95.39 kB / 1.091 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.8138, allocations: 5.016 kB / 1.091 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.393e-05/0.8139, allocations: 19.41 kB / 1.091 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.226e-05/0.8139, allocations: 321.9 kB / 1.091 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.8141, allocations: 19.56 kB / 1.091 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.8142, allocations: 16.77 kB / 1.091 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.8145, allocations: 46.02 kB / 1.091 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.8145, allocations: 0 / 1.091 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003434/0.8149, allocations: 83.06 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.8149, allocations: 5.703 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.8149, allocations: 0 / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.8149, allocations: 0.7031 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.8151, allocations: 14.86 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.8151, allocations: 1.125 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.736e-05/0.8152, allocations: 6.438 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.8152, allocations: 1.609 kB / 1.092 GB, free: 1.941 MB / 0.8575 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 6.437e-05/0.8153, allocations: 120.7 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.552e-05/0.8153, allocations: 6.234 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/0.8157, allocations: 84.09 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.8157, allocations: 5.125 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.8157, allocations: 0.7969 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.8157, allocations: 0 / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.8159, allocations: 170.6 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.816, allocations: 4 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.8161, allocations: 11.81 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.8161, allocations: 0 / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.8161, allocations: 1.844 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.8161, allocations: 0.6562 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.8161, allocations: 0 / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.8165, allocations: 178.5 kB / 1.092 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.273e-05/0.8165, allocations: 83.05 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.8165, allocations: 4.703 kB / 1.092 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.8167, allocations: 10.61 kB / 1.092 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.8167, allocations: 8.422 kB / 1.092 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.8168, allocations: 1.859 kB / 1.092 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.606e-05/0.8168, allocations: 92.52 kB / 1.092 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8168, allocations: 0 / 1.092 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004086/0.8172, allocations: 21.8 kB / 1.092 GB, free: 1.207 MB / 0.8575 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.0007169/0.818, allocations: 0.7202 MB / 1.093 GB, free: 16.54 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003166/0.8183, allocations: 46 kB / 1.093 GB, free: 16.53 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.8183, allocations: 4 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.8185, allocations: 25.66 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.8189, allocations: 3.391 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.8211, allocations: 1.288 MB / 1.094 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.8214, allocations: 0.6831 MB / 1.095 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.19e-05/0.8214, allocations: 8.406 kB / 1.095 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.869e-05/0.8215, allocations: 16.34 kB / 1.095 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of SimCode: time 6.62e-07/0.8215, allocations: 0 / 1.095 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02137/0.8429, allocations: 1.916 MB / 1.097 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.534/8.377, allocations: 4.875 kB / 1.097 GB, free: 14.18 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 Buildings_9_Buildings_Utilities_Math_Examples_Binomial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches