Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_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.001182/0.001182, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001448/0.001449, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.3 MB / 240 MB, free: 5.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.953/2.953, allocations: 462.6 MB / 0.736 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005746/0.0005747, allocations: 16.97 kB / 0.9021 GB, free: 36.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4137, allocations: 159.6 MB / 1.058 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.001849/0.4156, allocations: 1.235 MB / 1.059 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004841/0.4161, allocations: 163.6 kB / 1.059 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.747e-05/0.4162, allocations: 4 kB / 1.059 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.4162, allocations: 3.984 kB / 1.059 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.25e-05/0.4163, allocations: 3.938 kB / 1.059 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.4166, allocations: 35.95 kB / 1.059 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.294e-05/0.4167, allocations: 31.86 kB / 1.059 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.4168, allocations: 19.98 kB / 1.059 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.492e-05/0.4168, allocations: 4 kB / 1.059 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.117e-05/0.4169, allocations: 19.91 kB / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.314e-05/0.4169, allocations: 0 / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.4171, allocations: 43.97 kB / 1.06 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.476e-05/0.4171, allocations: 3.984 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.041e-05/0.4171, allocations: 33.64 kB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.4172, allocations: 39.86 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.4173, allocations: 7.938 kB / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.934e-06/0.4173, allocations: 0 / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.4173, allocations: 4 kB / 1.06 GB, free: 3.711 MB / 0.8106 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.000494/0.4178, allocations: 353.1 kB / 1.06 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.4178, allocations: 12.02 kB / 1.06 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/0.4179, allocations: 7.906 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.418, allocations: 159.1 kB / 1.06 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.4181, allocations: 4 kB / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.4181, allocations: 7.953 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.4183, allocations: 77.58 kB / 1.06 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.4183, allocations: 0 / 1.06 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.4184, allocations: 4 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.4184, allocations: 0 / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.4186, allocations: 59.95 kB / 1.06 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004638/0.4191, allocations: 276.7 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.4194, allocations: 66.47 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.4195, allocations: 32.91 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002522/0.4198, allocations: 174.2 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.4198, allocations: 30.56 kB / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.463e-06/0.4198, allocations: 0 / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004201/0.4203, allocations: 109.6 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.4203, allocations: 51.41 kB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.4204, allocations: 117.8 kB / 1.061 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.4205, allocations: 25.7 kB / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.023e-05/0.4205, allocations: 99.97 kB / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.4206, allocations: 0 / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-06/0.4206, allocations: 0 / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.4207, allocations: 314.8 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.118e-05/0.4208, allocations: 27.97 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8e-05/0.4209, allocations: 27.98 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.093e-05/0.421, allocations: 23.98 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.421, allocations: 0 / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002276/0.4212, allocations: 93.55 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.4213, allocations: 8 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4213, allocations: 0 / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.4213, allocations: 0 / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.564e-05/0.4214, allocations: 11.98 kB / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.4214, allocations: 7.938 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.821e-05/0.4215, allocations: 8 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.4215, allocations: 7.984 kB / 1.062 GB, free: 1.305 MB / 0.8106 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 (rea2Int.y,bin.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.197e-05/0.4216, allocations: 109.8 kB / 1.062 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.4216, allocations: 8 kB / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002774/0.4219, allocations: 105.4 kB / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.4219, allocations: 0 / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.4219, allocations: 0 / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.4219, allocations: 0 / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.4221, allocations: 169.6 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4221, allocations: 0 / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.344e-05/0.4222, allocations: 11.98 kB / 1.062 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.433e-06/0.4222, allocations: 4 kB / 1.062 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.4222, allocations: 4 kB / 1.062 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4222, allocations: 3.938 kB / 1.062 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.4222, allocations: 0 / 1.062 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002554/0.4225, allocations: 183.5 kB / 1.062 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.501e-05/0.4225, allocations: 81.11 kB / 1.062 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.4226, allocations: 0 / 1.062 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.347e-05/0.4227, allocations: 7.984 kB / 1.062 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.954e-05/0.4227, allocations: 11.98 kB / 1.062 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.4227, allocations: 3.938 kB / 1.062 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.226e-05/0.4228, allocations: 91.34 kB / 1.062 GB, free: 432 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.4228, allocations: 0 / 1.062 GB, free: 432 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002525/0.423, allocations: 19.91 kB / 1.063 GB, free: 412 kB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001967/0.4232, allocations: 115.7 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002252/0.4235, allocations: 59.89 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4235, allocations: 0 / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.4236, allocations: 40.05 kB / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.4239, allocations: 4 kB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003209/0.4243, allocations: 139.5 kB / 1.063 GB, free: 20 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.4245, allocations: 0.6809 MB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.569e-05/0.4245, allocations: 7.984 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3e-05/0.4246, allocations: 11.44 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.4246, allocations: 0 / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of Templates: time 0.003619/0.4282, allocations: 0.8479 MB / 1.064 GB, free: 14.45 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches