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) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 106.7 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001979/0.001979, allocations: 189.9 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 225.6 MB / 249.9 MB, free: 13.43 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.232/3.232, allocations: 489.7 MB / 0.7761 GB, free: 33.52 MB / 0.6231 GB [Timeout remaining time 86] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Utilities.Math.Functions.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=531,variableFilter="time|bin.1.|bin.2.|bin.3.|bin.4.|bin.5.|bin.6.|bin.7.|bin.8.|bin.9.|bin.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial") translateModel(Buildings.Utilities.Math.Functions.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=531,variableFilter="time|bin.1.|bin.2.|bin.3.|bin.4.|bin.5.|bin.6.|bin.7.|bin.8.|bin.9.|bin.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial") [Timeout 300] Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 72.69 kB / 1.127 GB, free: 36.95 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4075/0.4095, allocations: 172.1 MB / 1.295 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001967/0.4115, allocations: 0.5936 MB / 1.295 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0004305/0.4119, allocations: 98.55 kB / 1.296 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.188e-05/0.412, allocations: 0 / 1.296 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.273e-05/0.412, allocations: 3.938 kB / 1.296 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.823e-06/0.412, allocations: 0 / 1.296 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.4124, allocations: 47.88 kB / 1.296 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.4125, allocations: 67.92 kB / 1.296 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.792e-05/0.4126, allocations: 0 / 1.296 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.131e-05/0.4126, allocations: 23.92 kB / 1.296 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.679e-05/0.4127, allocations: 27.97 kB / 1.296 GB, free: 10.81 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.791e-05/0.4127, allocations: 0 / 1.296 GB, free: 10.81 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.4129, allocations: 51.94 kB / 1.296 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.225e-05/0.4129, allocations: 15.98 kB / 1.296 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.308e-05/0.413, allocations: 23.91 kB / 1.296 GB, free: 10.72 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.4131, allocations: 71.7 kB / 1.296 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.4131, allocations: 8 kB / 1.296 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.724e-06/0.4131, allocations: 0 / 1.296 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.035e-05/0.4132, allocations: 0 / 1.296 GB, free: 10.64 MB / 0.9981 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.0006063/0.4138, allocations: 379.3 kB / 1.296 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.4138, allocations: 12.03 kB / 1.296 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.179e-05/0.4139, allocations: 4.938 kB / 1.296 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.414, allocations: 168.3 kB / 1.296 GB, free: 10 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003272/0.4143, allocations: 281.5 kB / 1.297 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.4143, allocations: 8.375 kB / 1.297 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.4146, allocations: 82.19 kB / 1.297 GB, free: 9.574 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.4146, allocations: 3.938 kB / 1.297 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.4146, allocations: 4 kB / 1.297 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.4146, allocations: 0 / 1.297 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003674/0.415, allocations: 131.8 kB / 1.297 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000242/0.4153, allocations: 185.5 kB / 1.297 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.4156, allocations: 90.47 kB / 1.297 GB, free: 9.109 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.4157, allocations: 44.83 kB / 1.297 GB, free: 9.062 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.4157, allocations: 7.969 kB / 1.297 GB, free: 9.055 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.4158, allocations: 34.56 kB / 1.297 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.052e-06/0.4158, allocations: 0 / 1.297 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0005673/0.4163, allocations: 150.1 kB / 1.297 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.4164, allocations: 51.41 kB / 1.297 GB, free: 8.797 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.683e-05/0.4165, allocations: 89.86 kB / 1.298 GB, free: 8.699 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.4165, allocations: 33.7 kB / 1.298 GB, free: 8.66 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.87e-05/0.4165, allocations: 84.14 kB / 1.298 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.464e-05/0.4166, allocations: 39.62 kB / 1.298 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.633e-05/0.4167, allocations: 25.7 kB / 1.298 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001933/0.4169, allocations: 318.8 kB / 1.298 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.417, allocations: 27.98 kB / 1.298 GB, free: 8.156 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.4172, allocations: 40.02 kB / 1.298 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/0.4174, allocations: 72.81 kB / 1.298 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4174, allocations: 0 / 1.298 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003351/0.4178, allocations: 117.5 kB / 1.298 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.4178, allocations: 7.938 kB / 1.298 GB, free: 7.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.4178, allocations: 0 / 1.298 GB, free: 7.914 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.4178, allocations: 4 kB / 1.298 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.418, allocations: 31.91 kB / 1.298 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.418, allocations: 0 / 1.298 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.093e-05/0.4181, allocations: 7.938 kB / 1.298 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.4181, allocations: 7.984 kB / 1.298 GB, free: 7.863 MB / 0.9981 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.0001236/0.4182, allocations: 117.8 kB / 1.298 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.77e-05/0.4182, allocations: 7.891 kB / 1.298 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.108e-05/0.4183, allocations: 19.91 kB / 1.298 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4183, allocations: 0 / 1.298 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.4183, allocations: 0 / 1.298 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.4183, allocations: 3.984 kB / 1.298 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.4185, allocations: 177.6 kB / 1.299 GB, free: 7.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4185, allocations: 0 / 1.299 GB, free: 7.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.4186, allocations: 23.92 kB / 1.299 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.4186, allocations: 3.938 kB / 1.299 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.4186, allocations: 11.98 kB / 1.299 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4186, allocations: 0 / 1.299 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.4186, allocations: 0 / 1.299 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/0.419, allocations: 137 kB / 1.299 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.895e-05/0.419, allocations: 92.98 kB / 1.299 GB, free: 7.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.4191, allocations: 3.938 kB / 1.299 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.89e-05/0.4191, allocations: 8 kB / 1.299 GB, free: 7.168 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.4192, allocations: 7.984 kB / 1.299 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.4192, allocations: 15.98 kB / 1.299 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.968e-05/0.4192, allocations: 75.28 kB / 1.299 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.4192, allocations: 0 / 1.299 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000225/0.4195, allocations: 20 kB / 1.299 GB, free: 7.051 MB / 0.9981 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.0002177/0.4197, allocations: 123.6 kB / 1.299 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003492/0.42, allocations: 83.88 kB / 1.299 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.42, allocations: 0 / 1.299 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.4202, allocations: 52.56 kB / 1.299 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.4203, allocations: 4 kB / 1.299 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004641/0.4208, allocations: 186.5 kB / 1.299 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.4212, allocations: 0.6885 MB / 1.3 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.132e-05/0.4212, allocations: 19.42 kB / 1.3 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/0.4212, allocations: 0 / 1.3 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of Templates: time 0.003559/0.4248, allocations: 1.326 MB / 1.301 GB, free: 4.512 MB / 0.9981 GB [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) [Timeout 400] 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) [Timeout 300] [Timeout remaining time 300] "" Variables in the reference:time,bin[1],bin[2],bin[3],bin[4],bin[5],bin[6],bin[7],bin[8],bin[9],bin[10] Variables in the result:bin[10],bin[1],bin[2],bin[3],bin[4],bin[5],bin[6],bin[7],bin[8],bin[9],time