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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0009764/0.0009767, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.007296/0.007297, allocations: 173.7 kB / 16.27 MB, free: 6.613 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.482/1.482, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.782/2.782, allocations: 462.6 MB / 0.7364 GB, free: 356 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003774, allocations: 9.594 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3667, allocations: 159.6 MB / 1.059 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.001938/0.3687, allocations: 1.263 MB / 1.06 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0005817/0.3693, allocations: 175.5 kB / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.396e-05/0.3694, allocations: 0 / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.327e-05/0.3694, allocations: 11.92 kB / 1.06 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.778e-05/0.3694, allocations: 0 / 1.06 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003205/0.3698, allocations: 39.91 kB / 1.06 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.337e-05/0.3699, allocations: 35.97 kB / 1.06 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.555e-05/0.37, allocations: 8 kB / 1.06 GB, free: 4 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.212e-05/0.37, allocations: 11.92 kB / 1.06 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.893e-05/0.3701, allocations: 19.92 kB / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.3701, allocations: 0 / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.3702, allocations: 47.89 kB / 1.06 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.719e-05/0.3703, allocations: 7.984 kB / 1.06 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.892e-05/0.3703, allocations: 41.58 kB / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.3705, allocations: 59.84 kB / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3705, allocations: 0 / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.714e-06/0.3705, allocations: 0 / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.3705, allocations: 0 / 1.06 GB, free: 3.809 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.00052/0.371, allocations: 355.7 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.3711, allocations: 12.03 kB / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.3711, allocations: 8.844 kB / 1.061 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.3712, allocations: 164.4 kB / 1.061 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.3713, allocations: 4.375 kB / 1.061 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.3713, allocations: 8.312 kB / 1.061 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002147/0.3715, allocations: 70.2 kB / 1.061 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.3715, allocations: 4.125 kB / 1.061 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.3716, allocations: 3.938 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.3716, allocations: 4 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.3718, allocations: 59.89 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/0.3722, allocations: 280.7 kB / 1.061 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003372/0.3726, allocations: 66.53 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.3727, allocations: 40.83 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002526/0.373, allocations: 170.2 kB / 1.062 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.373, allocations: 30.56 kB / 1.062 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.373, allocations: 0 / 1.062 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004318/0.3735, allocations: 113.6 kB / 1.062 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.3735, allocations: 51.41 kB / 1.062 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.689e-05/0.3736, allocations: 113.8 kB / 1.062 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.3736, allocations: 25.7 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.128e-05/0.3737, allocations: 84.14 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.3737, allocations: 7.906 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/0.3737, allocations: 9.719 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3739, allocations: 322.8 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.374, allocations: 31.92 kB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.871e-05/0.3741, allocations: 19.98 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.3743, allocations: 60.81 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3743, allocations: 0 / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002477/0.3745, allocations: 85.94 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3746, allocations: 8.938 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3746, allocations: 3.984 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.3746, allocations: 4.031 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.694e-05/0.3747, allocations: 12 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3747, allocations: 7.922 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.936e-05/0.3748, allocations: 4 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.3748, allocations: 4 kB / 1.062 GB, free: 1.34 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 (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 8.568e-05/0.3749, allocations: 117.8 kB / 1.063 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.3749, allocations: 11.89 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002853/0.3752, allocations: 93.48 kB / 1.063 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.3752, allocations: 0 / 1.063 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3752, allocations: 4 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3752, allocations: 0 / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.3754, allocations: 173.7 kB / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3754, allocations: 4 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.811e-05/0.3755, allocations: 15.98 kB / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3755, allocations: 0 / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-06/0.3755, allocations: 0 / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.3756, allocations: 3.938 kB / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3756, allocations: 3.938 kB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.3758, allocations: 191.4 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.3759, allocations: 81.02 kB / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.3759, allocations: 0 / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.219e-05/0.376, allocations: 15.98 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/0.3761, allocations: 0 / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.3761, allocations: 4 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.544e-05/0.3761, allocations: 87.58 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3761, allocations: 0 / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002472/0.3764, allocations: 16 kB / 1.063 GB, free: 440 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 (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.0001884/0.3766, allocations: 111.2 kB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000266/0.3769, allocations: 59.89 kB / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3769, allocations: 4 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.377, allocations: 27.97 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.3773, allocations: 22.12 kB / 1.063 GB, free: 208 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000308/0.3776, allocations: 132.5 kB / 1.064 GB, free: 48 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.3779, allocations: 0.6809 MB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.331e-05/0.3779, allocations: 8 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/0.378, allocations: 15.42 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.378, allocations: 0 / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of Templates: time 0.003509/0.3815, allocations: 0.8769 MB / 1.065 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