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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001984/0.001984, allocations: 218.2 kB / 22.26 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.501/1.501, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.264/3.264, allocations: 0.505 GB / 0.8101 GB, free: 22.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 66.91 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3453, allocations: 180.2 MB / 1.353 GB, free: 8.457 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001697/0.347, allocations: 0.5836 MB / 1.353 GB, free: 7.875 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0004375/0.3474, allocations: 128 kB / 1.354 GB, free: 7.75 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.358e-05/0.3475, allocations: 0 / 1.354 GB, free: 7.75 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.855e-05/0.3475, allocations: 0 / 1.354 GB, free: 7.75 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.3475, allocations: 0 / 1.354 GB, free: 7.75 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003842/0.3479, allocations: 31.91 kB / 1.354 GB, free: 7.719 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.348, allocations: 67.92 kB / 1.354 GB, free: 7.652 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 3.395e-05/0.3481, allocations: 0 / 1.354 GB, free: 7.652 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 3.759e-05/0.3481, allocations: 27.92 kB / 1.354 GB, free: 7.625 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.245e-05/0.3481, allocations: 27.95 kB / 1.354 GB, free: 7.598 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.3482, allocations: 0 / 1.354 GB, free: 7.598 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.3483, allocations: 55.95 kB / 1.354 GB, free: 7.543 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.815e-05/0.3483, allocations: 23.97 kB / 1.354 GB, free: 7.52 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.3484, allocations: 23.86 kB / 1.354 GB, free: 7.496 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.3485, allocations: 76.05 kB / 1.354 GB, free: 7.422 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3485, allocations: 0 / 1.354 GB, free: 7.422 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3485, allocations: 0 / 1.354 GB, free: 7.422 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.369e-06/0.3485, allocations: 0 / 1.354 GB, free: 7.422 MB / 1.045 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.0004918/0.349, allocations: 294.3 kB / 1.354 GB, free: 7.102 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.349, allocations: 8.031 kB / 1.354 GB, free: 7.094 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.909e-05/0.3491, allocations: 42.73 kB / 1.354 GB, free: 7.043 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.925e-05/0.3491, allocations: 16.88 kB / 1.354 GB, free: 7.027 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.891e-05/0.3492, allocations: 114.5 kB / 1.354 GB, free: 6.891 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000428/0.3497, allocations: 0.5299 MB / 1.355 GB, free: 6.238 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.3497, allocations: 384 / 1.355 GB, free: 6.238 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002567/0.3499, allocations: 85.89 kB / 1.355 GB, free: 6.148 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.3499, allocations: 0 / 1.355 GB, free: 6.148 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.3499, allocations: 4 kB / 1.355 GB, free: 6.145 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.3499, allocations: 0 / 1.355 GB, free: 6.145 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003527/0.3503, allocations: 139.7 kB / 1.355 GB, free: 6.008 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002044/0.3505, allocations: 152.7 kB / 1.355 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002979/0.3508, allocations: 98.45 kB / 1.355 GB, free: 5.711 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.351, allocations: 36.84 kB / 1.355 GB, free: 5.672 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.351, allocations: 3.984 kB / 1.355 GB, free: 5.668 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.351, allocations: 34.5 kB / 1.355 GB, free: 5.625 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.351, allocations: 0 / 1.355 GB, free: 5.625 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0005733/0.3516, allocations: 153.8 kB / 1.356 GB, free: 5.469 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.3516, allocations: 55.41 kB / 1.356 GB, free: 5.402 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.381e-05/0.3517, allocations: 93.84 kB / 1.356 GB, free: 5.301 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3517, allocations: 25.7 kB / 1.356 GB, free: 5.27 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.745e-05/0.3517, allocations: 84.14 kB / 1.356 GB, free: 5.184 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.601e-05/0.3518, allocations: 31.7 kB / 1.356 GB, free: 5.152 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-05/0.3518, allocations: 29.7 kB / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.352, allocations: 314.8 kB / 1.356 GB, free: 4.801 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.3521, allocations: 35.97 kB / 1.356 GB, free: 4.766 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.3522, allocations: 31.98 kB / 1.356 GB, free: 4.734 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.3525, allocations: 76.75 kB / 1.356 GB, free: 4.656 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3525, allocations: 3.938 kB / 1.356 GB, free: 4.652 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000335/0.3528, allocations: 121.5 kB / 1.356 GB, free: 4.527 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3529, allocations: 7.938 kB / 1.356 GB, free: 4.52 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3529, allocations: 0 / 1.356 GB, free: 4.52 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3529, allocations: 0 / 1.356 GB, free: 4.52 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.353, allocations: 23.98 kB / 1.356 GB, free: 4.496 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.3531, allocations: 0 / 1.356 GB, free: 4.496 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.181e-05/0.3531, allocations: 15.92 kB / 1.356 GB, free: 4.48 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.3531, allocations: 8 kB / 1.356 GB, free: 4.473 MB / 1.045 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.655e-05/0.3532, allocations: 121.7 kB / 1.357 GB, free: 4.344 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.058e-05/0.3532, allocations: 11.88 kB / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.3533, allocations: 7.906 kB / 1.357 GB, free: 4.32 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3533, allocations: 4 kB / 1.357 GB, free: 4.316 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3533, allocations: 0 / 1.357 GB, free: 4.316 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3533, allocations: 0 / 1.357 GB, free: 4.316 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.3535, allocations: 156.7 kB / 1.357 GB, free: 4.121 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3535, allocations: 0 / 1.357 GB, free: 4.121 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.3536, allocations: 23.97 kB / 1.357 GB, free: 4.098 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.3536, allocations: 3.938 kB / 1.357 GB, free: 4.094 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.3536, allocations: 8 kB / 1.357 GB, free: 4.086 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3536, allocations: 0 / 1.357 GB, free: 4.086 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3536, allocations: 4 kB / 1.357 GB, free: 4.082 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003584/0.354, allocations: 145.7 kB / 1.357 GB, free: 3.922 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.314e-05/0.354, allocations: 15.88 kB / 1.357 GB, free: 3.906 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.354, allocations: 0 / 1.357 GB, free: 3.906 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.775e-05/0.354, allocations: 4 kB / 1.357 GB, free: 3.902 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.511e-05/0.3541, allocations: 15.97 kB / 1.357 GB, free: 3.887 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.3541, allocations: 4 kB / 1.357 GB, free: 3.883 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.506e-05/0.3541, allocations: 79.22 kB / 1.357 GB, free: 3.805 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3541, allocations: 0 / 1.357 GB, free: 3.805 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002285/0.3544, allocations: 23.98 kB / 1.357 GB, free: 3.781 MB / 1.045 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.0007383/0.3551, allocations: 0.6982 MB / 1.358 GB, free: 3.055 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003278/0.3554, allocations: 83.88 kB / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3554, allocations: 0 / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.3556, allocations: 47.89 kB / 1.358 GB, free: 2.926 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.3557, allocations: 9.875 kB / 1.358 GB, free: 2.918 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005654/0.3563, allocations: 198.5 kB / 1.358 GB, free: 2.684 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.3567, allocations: 0.686 MB / 1.359 GB, free: 1.973 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001947/0.3568, allocations: 43.89 kB / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.946e-05/0.3569, allocations: 19.42 kB / 1.359 GB, free: 1.91 MB / 1.045 GB Notification: Performance of SimCode: time 3.61e-07/0.3569, allocations: 0 / 1.359 GB, free: 1.91 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.3837, allocations: 2.182 MB / 1.361 GB, free: 15.86 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.23, allocations: 4.391 kB / 1.361 GB, free: 15.86 MB / 1.061 GB " [Timeout remaining time 289] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv --start-time 0 --stop-time 15.9 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00636 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv","/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) [Timeout 300] "Error: Could not read variable bin[6] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[6] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! Error: Could not read variable bin[7] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[7] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! Error: Could not read variable bin[8] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[8] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! Error: Could not read variable bin[9] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[9] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! Error: Could not read variable bin[10] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[10] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.27371990100073]