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.00127/0.00127, allocations: 107.9 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 183 kB / 17.34 MB, free: 5.766 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.503/2.503, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 67.89 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9055/0.9069, allocations: 151.6 MB / 1.167 GB, free: 3.922 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002851/0.9098, allocations: 1.537 MB / 1.169 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004963/0.9103, allocations: 176.3 kB / 1.169 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.388e-05/0.9104, allocations: 3.938 kB / 1.169 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.295e-05/0.9104, allocations: 7.922 kB / 1.169 GB, free: 2.188 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.932e-05/0.9105, allocations: 4 kB / 1.169 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.9109, allocations: 51.81 kB / 1.169 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.835e-05/0.911, allocations: 35.92 kB / 1.169 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.781e-05/0.9111, allocations: 16 kB / 1.169 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.34e-05/0.9111, allocations: 19.91 kB / 1.169 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.192e-05/0.9111, allocations: 19.92 kB / 1.169 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.518e-05/0.9112, allocations: 4 kB / 1.169 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.9113, allocations: 47.95 kB / 1.169 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.627e-05/0.9113, allocations: 3.984 kB / 1.169 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.172e-05/0.9114, allocations: 23.86 kB / 1.169 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.9115, allocations: 64.34 kB / 1.169 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.9115, allocations: 0 / 1.169 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.413e-06/0.9116, allocations: 4 kB / 1.169 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.9116, allocations: 0 / 1.169 GB, free: 1.902 MB / 0.8887 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.0004906/0.9121, allocations: 355.3 kB / 1.17 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.9121, allocations: 8.922 kB / 1.17 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.9122, allocations: 4.938 kB / 1.17 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.9123, allocations: 168.3 kB / 1.17 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.9123, allocations: 4.375 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.9123, allocations: 384 / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.9126, allocations: 74.11 kB / 1.17 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.9126, allocations: 192 / 1.17 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.9126, allocations: 7.938 kB / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.9126, allocations: 7.922 kB / 1.17 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.9128, allocations: 39.95 kB / 1.17 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003953/0.9132, allocations: 280.8 kB / 1.17 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.9135, allocations: 66.53 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.9137, allocations: 28.84 kB / 1.17 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002304/0.9139, allocations: 170.2 kB / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.9139, allocations: 30.56 kB / 1.17 GB, free: 492 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.9139, allocations: 0 / 1.17 GB, free: 492 kB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003905/0.9143, allocations: 105.5 kB / 1.171 GB, free: 380 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.9144, allocations: 51.41 kB / 1.171 GB, free: 316 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.656e-05/0.9145, allocations: 109.8 kB / 1.171 GB, free: 196 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.9145, allocations: 25.7 kB / 1.171 GB, free: 164 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.189e-05/0.9145, allocations: 88.14 kB / 1.171 GB, free: 72 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.9146, allocations: 11.88 kB / 1.171 GB, free: 60 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.9146, allocations: 17.72 kB / 1.171 GB, free: 36 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.9147, allocations: 318.8 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.491e-05/0.9148, allocations: 23.97 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.068e-05/0.9149, allocations: 15.98 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.9151, allocations: 44.81 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.9151, allocations: 0 / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000238/0.9154, allocations: 85.55 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.9154, allocations: 4 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.9154, allocations: 4 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.9154, allocations: 0 / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.994e-05/0.9155, allocations: 11.98 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.9155, allocations: 0 / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.966e-05/0.9156, allocations: 7.984 kB / 1.171 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-06/0.9156, allocations: 0 / 1.171 GB, free: 15.51 MB / 0.9044 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.951e-05/0.9157, allocations: 121.8 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.9157, allocations: 0 / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/0.916, allocations: 85.48 kB / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.916, allocations: 0 / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.916, allocations: 0 / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.916, allocations: 3.984 kB / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001716/0.9162, allocations: 173.5 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.9162, allocations: 4 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.549e-05/0.9163, allocations: 11.98 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.9163, allocations: 384 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.9163, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.9163, allocations: 3.938 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9163, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.9166, allocations: 187.4 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.816e-05/0.9166, allocations: 81.09 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.9166, allocations: 0 / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-05/0.9167, allocations: 4 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.49e-05/0.9168, allocations: 11.98 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.9168, allocations: 0 / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.34e-05/0.9168, allocations: 95.2 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9169, allocations: 0 / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002427/0.9171, allocations: 19.94 kB / 1.172 GB, free: 14.62 MB / 0.9044 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.0001775/0.9173, allocations: 119.3 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002465/0.9175, allocations: 43.95 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.9176, allocations: 0 / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.9177, allocations: 23.98 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.918, allocations: 14.11 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003119/0.9183, allocations: 151.1 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.9186, allocations: 0.6807 MB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.993e-05/0.9186, allocations: 7.438 kB / 1.173 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of SimCode: time 4.11e-07/0.9186, allocations: 4 kB / 1.173 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of Templates: time 0.002456/0.9211, allocations: 0.9788 MB / 1.174 GB, free: 12.54 MB / 0.9044 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches