Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001581/0.001581, allocations: 113 kB / 16.46 MB, free: 6.453 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.001962/0.001962, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.529/1.529, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.353/3.353, allocations: 0.49 GB / 0.7916 GB, free: 33.36 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_12_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.002068/0.002068, allocations: 73.67 kB / 1.149 GB, free: 26.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.3852, allocations: 176.1 MB / 1.321 GB, free: 3.246 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001867/0.3871, allocations: 0.5817 MB / 1.321 GB, free: 2.672 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0004508/0.3875, allocations: 108 kB / 1.322 GB, free: 2.566 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.061e-05/0.3876, allocations: 0 / 1.322 GB, free: 2.566 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.473e-05/0.3876, allocations: 3.938 kB / 1.322 GB, free: 2.562 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.553e-06/0.3876, allocations: 0 / 1.322 GB, free: 2.562 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.388, allocations: 35.89 kB / 1.322 GB, free: 2.527 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.3881, allocations: 67.94 kB / 1.322 GB, free: 2.461 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.17e-05/0.3882, allocations: 4 kB / 1.322 GB, free: 2.457 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.088e-05/0.3882, allocations: 27.95 kB / 1.322 GB, free: 2.43 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.991e-05/0.3883, allocations: 15.98 kB / 1.322 GB, free: 2.414 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.3883, allocations: 4 kB / 1.322 GB, free: 2.41 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.3884, allocations: 55.94 kB / 1.322 GB, free: 2.355 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.63e-05/0.3885, allocations: 23.91 kB / 1.322 GB, free: 2.332 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.48e-05/0.3885, allocations: 15.92 kB / 1.322 GB, free: 2.316 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.3887, allocations: 76.05 kB / 1.322 GB, free: 2.242 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3887, allocations: 0 / 1.322 GB, free: 2.242 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.022e-06/0.3887, allocations: 0 / 1.322 GB, free: 2.242 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.3887, allocations: 4 kB / 1.322 GB, free: 2.238 MB / 1.014 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.0005737/0.3893, allocations: 381.1 kB / 1.322 GB, free: 1.816 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3893, allocations: 15.98 kB / 1.322 GB, free: 1.801 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.303e-05/0.3894, allocations: 38.69 kB / 1.322 GB, free: 1.754 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.692e-05/0.3894, allocations: 16.92 kB / 1.322 GB, free: 1.738 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3895, allocations: 168.3 kB / 1.322 GB, free: 1.535 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.3898, allocations: 277.6 kB / 1.323 GB, free: 1.203 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.3899, allocations: 4.375 kB / 1.323 GB, free: 1.199 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.3902, allocations: 93.88 kB / 1.323 GB, free: 1.102 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3902, allocations: 0 / 1.323 GB, free: 1.102 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.3902, allocations: 0 / 1.323 GB, free: 1.102 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.3902, allocations: 4 kB / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003872/0.3906, allocations: 131.8 kB / 1.323 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002464/0.3908, allocations: 177.6 kB / 1.323 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.3912, allocations: 94.39 kB / 1.323 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.3913, allocations: 40.83 kB / 1.323 GB, free: 0.6016 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 4.203e-05/0.3913, allocations: 8 kB / 1.323 GB, free: 0.5938 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.3914, allocations: 38.5 kB / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.3914, allocations: 0 / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0005818/0.392, allocations: 145.9 kB / 1.323 GB, free: 408 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.392, allocations: 55.34 kB / 1.323 GB, free: 340 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.615e-05/0.3921, allocations: 89.86 kB / 1.324 GB, free: 240 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.3921, allocations: 25.7 kB / 1.324 GB, free: 208 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3922, allocations: 84.14 kB / 1.324 GB, free: 120 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 6.63e-05/0.3923, allocations: 43.67 kB / 1.324 GB, free: 76 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.643e-05/0.3923, allocations: 29.7 kB / 1.324 GB, free: 40 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3925, allocations: 314.8 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.3927, allocations: 31.97 kB / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.3929, allocations: 31.97 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.3932, allocations: 76.75 kB / 1.324 GB, free: 15.58 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3932, allocations: 0 / 1.324 GB, free: 15.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003506/0.3935, allocations: 117.6 kB / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.3935, allocations: 7.938 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3935, allocations: 0 / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.3936, allocations: 7.922 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.3937, allocations: 27.97 kB / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.3937, allocations: 0 / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.02e-05/0.3938, allocations: 11.94 kB / 1.324 GB, free: 15.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.3938, allocations: 0 / 1.324 GB, free: 15.41 MB / 1.029 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 0.0001189/0.3939, allocations: 121.8 kB / 1.324 GB, free: 15.28 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.071e-05/0.394, allocations: 15.83 kB / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.431e-05/0.394, allocations: 7.969 kB / 1.324 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.394, allocations: 7.938 kB / 1.324 GB, free: 15.24 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.394, allocations: 0 / 1.324 GB, free: 15.24 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.394, allocations: 0 / 1.324 GB, free: 15.24 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.3942, allocations: 177.6 kB / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3942, allocations: 0 / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.3943, allocations: 27.92 kB / 1.325 GB, free: 14.99 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.3943, allocations: 3.938 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.3943, allocations: 3.984 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3943, allocations: 8 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3943, allocations: 4 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.3947, allocations: 133.8 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.196e-05/0.3948, allocations: 88.94 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.3948, allocations: 11.92 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.774e-05/0.3949, allocations: 0 / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.76e-05/0.3949, allocations: 15.98 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.395, allocations: 7.984 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4e-05/0.395, allocations: 75.28 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.395, allocations: 3.938 kB / 1.325 GB, free: 14.6 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002398/0.3952, allocations: 24 kB / 1.325 GB, free: 14.58 MB / 1.029 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.0008706/0.3961, allocations: 0.6983 MB / 1.326 GB, free: 13.85 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003763/0.3965, allocations: 83.86 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3965, allocations: 0 / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.3966, allocations: 47.91 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001586/0.3968, allocations: 11.94 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005819/0.3974, allocations: 198.4 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.3977, allocations: 0.6885 MB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001492/0.3979, allocations: 31.97 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.398, allocations: 31.36 kB / 1.327 GB, free: 12.7 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.398, allocations: 0 / 1.327 GB, free: 12.7 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.4249, allocations: 2.033 MB / 1.329 GB, free: 10.75 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.092/8.517, allocations: 6.453 kB / 1.329 GB, free: 10.75 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv --start-time 0 --stop-time 15.9 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00636 Buildings_12_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[6] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! Error: Could not read variable bin[7] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[7] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! Error: Could not read variable bin[8] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[8] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! Error: Could not read variable bin[9] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[9] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! Error: Could not read variable bin[10] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv. Warning: Get data of variable bin[10] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.583730848971754]