Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 108 kB / 15.6 MB, free: 132 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.001685/0.001686, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.405/1.405, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.638/2.638, allocations: 437 MB / 0.7103 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 59.91 kB / 0.8692 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6884/0.6898, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002786/0.6926, allocations: 1.518 MB / 1.019 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004783/0.6931, allocations: 188.2 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.417e-05/0.6932, allocations: 4 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.628e-05/0.6932, allocations: 3.938 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.593e-05/0.6933, allocations: 3.938 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.6936, allocations: 51.88 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.657e-05/0.6937, allocations: 31.92 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.569e-05/0.6938, allocations: 19.97 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.319e-05/0.6939, allocations: 19.92 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.431e-05/0.6939, allocations: 19.92 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.6939, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.6941, allocations: 47.95 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.034e-05/0.6941, allocations: 8 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.179e-05/0.6941, allocations: 15.86 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.6943, allocations: 67.84 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.6943, allocations: 0 / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6943, allocations: 0 / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.6943, allocations: 0 / 1.019 GB, free: 484 kB / 0.7637 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.0004506/0.6948, allocations: 353.4 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.6948, allocations: 11.97 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.768e-05/0.6949, allocations: 8.844 kB / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.695, allocations: 172.3 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.695, allocations: 8.375 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.6951, allocations: 384 / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.6953, allocations: 62.23 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.6953, allocations: 4.172 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.6953, allocations: 7.938 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.6953, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.6955, allocations: 47.89 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003785/0.6959, allocations: 284.7 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.6962, allocations: 62.53 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.645e-05/0.6963, allocations: 24.91 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000204/0.6966, allocations: 162.2 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.6966, allocations: 38.5 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.6966, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003875/0.697, allocations: 97.62 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.697, allocations: 51.41 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.32e-05/0.6971, allocations: 113.8 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.6971, allocations: 25.7 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.079e-05/0.6972, allocations: 84.14 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.6972, allocations: 7.891 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.6973, allocations: 17.72 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.6974, allocations: 326.7 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.612e-05/0.6975, allocations: 19.97 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.646e-05/0.6976, allocations: 20.17 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.6978, allocations: 56.83 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.6978, allocations: 0 / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002341/0.698, allocations: 69.66 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.698, allocations: 8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.6981, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.6981, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.656e-05/0.6982, allocations: 15.98 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.6982, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.263e-05/0.6983, allocations: 11.92 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-06/0.6983, allocations: 0 / 1.021 GB, free: 14.08 MB / 0.7794 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 7.366e-05/0.6983, allocations: 118.4 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.6984, allocations: 3.906 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000271/0.6987, allocations: 89.48 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.6987, allocations: 0 / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6987, allocations: 0 / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.6987, allocations: 3.984 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.6989, allocations: 165.6 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6989, allocations: 3.938 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-05/0.699, allocations: 19.98 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.699, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.699, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.699, allocations: 8 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.699, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002698/0.6993, allocations: 171.4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.856e-05/0.6993, allocations: 85 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.6993, allocations: 4 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.409e-05/0.6994, allocations: 4 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.6995, allocations: 11.98 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-06/0.6995, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.824e-05/0.6995, allocations: 95.56 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6996, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002569/0.6998, allocations: 12 kB / 1.022 GB, free: 13.2 MB / 0.7794 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.0001737/0.7, allocations: 119.3 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002469/0.7002, allocations: 55.89 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.7003, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.7004, allocations: 23.97 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.7007, allocations: 16 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003244/0.701, allocations: 117.9 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.7013, allocations: 0.6807 MB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.261e-05/0.7013, allocations: 4 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.881e-05/0.7013, allocations: 11.42 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.7013, allocations: 0 / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of Templates: time 0.003456/0.7048, allocations: 0.9792 MB / 1.024 GB, free: 11.14 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Binomial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches