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.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.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.001138/0.001138, 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.00119/0.00119, allocations: 196 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.299/1.299, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.206/2.206, allocations: 390.3 MB / 0.6647 GB, free: 296 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 68.12 kB / 0.8127 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5299/0.5312, allocations: 140.4 MB / 0.9497 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001634/0.5329, allocations: 0.5901 MB / 0.9503 GB, free: 8.762 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002965/0.5332, allocations: 100.4 kB / 0.9504 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.659e-05/0.5332, allocations: 0 / 0.9504 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.219e-05/0.5333, allocations: 0 / 0.9504 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.518e-06/0.5333, allocations: 0 / 0.9504 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.5336, allocations: 41.64 kB / 0.9504 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.408e-05/0.5337, allocations: 63.55 kB / 0.9505 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.461e-05/0.5337, allocations: 1.375 kB / 0.9505 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.503e-05/0.5337, allocations: 21.73 kB / 0.9505 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.659e-05/0.5338, allocations: 29.52 kB / 0.9505 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.5338, allocations: 2.75 kB / 0.9506 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.5339, allocations: 50 kB / 0.9506 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.278e-05/0.5339, allocations: 24.39 kB / 0.9506 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.701e-05/0.534, allocations: 18.33 kB / 0.9506 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.5341, allocations: 73.52 kB / 0.9507 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.5341, allocations: 1.688 kB / 0.9507 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5341, allocations: 0 / 0.9507 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.5341, allocations: 0 / 0.9507 GB, free: 8.5 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.0003532/0.5345, allocations: 375.1 kB / 0.9511 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.5345, allocations: 9.188 kB / 0.9511 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.5345, allocations: 50.86 kB / 0.9511 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.157e-05/0.5346, allocations: 5.031 kB / 0.9511 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.128e-05/0.5346, allocations: 164.1 kB / 0.9513 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001685/0.5348, allocations: 279 kB / 0.9516 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.5348, allocations: 4.062 kB / 0.9516 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.535, allocations: 85.62 kB / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.5351, allocations: 0 / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.5351, allocations: 1.062 kB / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.5351, allocations: 1.469 kB / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000301/0.5354, allocations: 139.3 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.5355, allocations: 187.8 kB / 0.952 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.5358, allocations: 98.62 kB / 0.952 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.5359, allocations: 42.42 kB / 0.9521 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.536, allocations: 6.25 kB / 0.9521 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.103e-05/0.536, allocations: 35.72 kB / 0.9521 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.536, allocations: 0 / 0.9521 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004619/0.5364, allocations: 151.9 kB / 0.9523 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.786e-05/0.5365, allocations: 52.47 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.374e-05/0.5365, allocations: 90.08 kB / 0.9524 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.5365, allocations: 30.7 kB / 0.9524 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.035e-06/0.5365, allocations: 84.08 kB / 0.9525 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.5366, allocations: 36.64 kB / 0.9526 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.844e-05/0.5366, allocations: 29.64 kB / 0.9526 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.237e-05/0.5366, allocations: 320.5 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.5368, allocations: 27.3 kB / 0.9529 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.5369, allocations: 34.84 kB / 0.9529 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.5371, allocations: 75.44 kB / 0.953 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.5371, allocations: 3.938 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002879/0.5374, allocations: 116.3 kB / 0.9531 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.5375, allocations: 8.812 kB / 0.9531 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.5375, allocations: 3.938 kB / 0.9531 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.5375, allocations: 1.281 kB / 0.9531 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.5376, allocations: 29.03 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.5376, allocations: 1.156 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.612e-05/0.5377, allocations: 7.594 kB / 0.9532 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.5377, allocations: 6.359 kB / 0.9532 GB, free: 6.152 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 4.962e-05/0.5378, allocations: 119.6 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.5378, allocations: 5.344 kB / 0.9533 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.829e-05/0.5378, allocations: 11.97 kB / 0.9533 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.5378, allocations: 1.469 kB / 0.9533 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.5378, allocations: 5.469 kB / 0.9533 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.5378, allocations: 3.984 kB / 0.9533 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.791e-05/0.5379, allocations: 179.9 kB / 0.9535 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.5379, allocations: 0 / 0.9535 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.538, allocations: 21.3 kB / 0.9535 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.5381, allocations: 5.719 kB / 0.9535 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.5381, allocations: 5.391 kB / 0.9535 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.5381, allocations: 0 / 0.9535 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5381, allocations: 0 / 0.9535 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002998/0.5384, allocations: 154.2 kB / 0.9537 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.342e-05/0.5384, allocations: 86.62 kB / 0.9538 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.5384, allocations: 1.406 kB / 0.9538 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.426e-05/0.5385, allocations: 8.25 kB / 0.9538 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.5385, allocations: 7.797 kB / 0.9538 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.5385, allocations: 11.05 kB / 0.9538 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.428e-06/0.5386, allocations: 75.28 kB / 0.9539 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5386, allocations: 1.438 kB / 0.9539 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002073/0.5388, allocations: 19.66 kB / 0.9539 GB, free: 5.469 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.00049/0.5393, allocations: 0.7101 MB / 0.9546 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003179/0.5396, allocations: 86.84 kB / 0.9547 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.5396, allocations: 5.281 kB / 0.9547 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.5398, allocations: 53.28 kB / 0.9547 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.5399, allocations: 6.25 kB / 0.9547 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.5403, allocations: 195.6 kB / 0.9549 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.026e-05/0.5404, allocations: 0.6867 MB / 0.9556 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001279/0.5405, allocations: 42.77 kB / 0.9556 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.351e-05/0.5406, allocations: 21.08 kB / 0.9556 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5406, allocations: 3.938 kB / 0.9556 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01569/0.5563, allocations: 1.983 MB / 0.9576 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.21/7.766, allocations: 7.984 kB / 0.9576 GB, free: 2.746 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv --start-time 0 --stop-time 15.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00636 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.csv","/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