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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.007946/0.007951, allocations: 101.2 kB / 15.88 MB, free: 6.305 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.001713/0.001713, allocations: 197.5 kB / 16.79 MB, free: 6.238 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.427/1.427, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.686/2.686, allocations: 437 MB / 0.7106 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 63.89 kB / 0.8692 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6944/0.6958, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003129/0.699, allocations: 1.597 MB / 1.019 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005691/0.6996, allocations: 184.3 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.883e-05/0.6996, allocations: 0 / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.088e-05/0.6997, allocations: 7.938 kB / 1.019 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.451e-05/0.6998, allocations: 0 / 1.019 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.7001, allocations: 39.89 kB / 1.019 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.416e-05/0.7002, allocations: 39.92 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.804e-05/0.7003, allocations: 11.98 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.442e-05/0.7003, allocations: 11.92 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.021e-05/0.7004, allocations: 23.92 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.7004, allocations: 7.938 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.7005, allocations: 43.95 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.451e-05/0.7005, allocations: 4 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.345e-05/0.7006, allocations: 15.92 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.7007, allocations: 43.88 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.7007, allocations: 0 / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of FrontEnd: time 7.81e-07/0.7007, allocations: 0 / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.7007, allocations: 0 / 1.019 GB, free: 0.7578 MB / 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.0004904/0.7012, allocations: 361.3 kB / 1.02 GB, free: 364 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.7013, allocations: 12.03 kB / 1.02 GB, free: 352 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.7013, allocations: 4.938 kB / 1.02 GB, free: 348 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.7014, allocations: 168.3 kB / 1.02 GB, free: 140 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.7015, allocations: 8.375 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.7015, allocations: 384 / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002147/0.7017, allocations: 66.22 kB / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.7017, allocations: 192 / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.7017, allocations: 3.938 kB / 1.02 GB, free: 56 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.7018, allocations: 0 / 1.02 GB, free: 56 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001879/0.7019, allocations: 51.89 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.7024, allocations: 280.7 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.7027, allocations: 58.53 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.923e-05/0.7028, allocations: 36.83 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000237/0.7031, allocations: 162.2 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.7031, allocations: 34.56 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.7031, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003854/0.7035, allocations: 97.53 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.7036, allocations: 55.41 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.776e-05/0.7036, allocations: 113.8 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.7037, allocations: 25.7 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.132e-05/0.7037, allocations: 88.08 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.7037, allocations: 3.906 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.906e-05/0.7038, allocations: 21.7 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.7039, allocations: 322.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.961e-05/0.704, allocations: 19.98 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.014e-05/0.7041, allocations: 23.97 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.7043, allocations: 44.81 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.7043, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002201/0.7045, allocations: 69.66 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.7045, allocations: 8 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.7045, allocations: 4 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.7045, allocations: 0 / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.1e-05/0.7046, allocations: 11.98 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.7046, allocations: 3.938 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.34e-05/0.7047, allocations: 19.92 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.7047, allocations: 0 / 1.021 GB, free: 14.36 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.609e-05/0.7048, allocations: 114.3 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.7048, allocations: 3.906 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002518/0.7051, allocations: 89.55 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.7051, allocations: 0 / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7051, allocations: 0 / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.7051, allocations: 3.938 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001673/0.7053, allocations: 169.7 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.7053, allocations: 0 / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.438e-05/0.7054, allocations: 11.98 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.7054, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.7054, allocations: 12 kB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.7054, allocations: 3.938 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7054, allocations: 0 / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.7057, allocations: 175.8 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.7058, allocations: 81.02 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.7058, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-05/0.7059, allocations: 11.98 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.708e-05/0.7059, allocations: 11.98 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-06/0.7059, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.234e-05/0.706, allocations: 83.28 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.706, allocations: 3.938 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002532/0.7062, allocations: 19.98 kB / 1.022 GB, free: 13.48 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.0001716/0.7064, allocations: 107.2 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000234/0.7067, allocations: 59.88 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7067, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.7068, allocations: 19.98 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.7071, allocations: 7.938 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000313/0.7074, allocations: 149 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.7077, allocations: 0.6848 MB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.143e-05/0.7077, allocations: 11.44 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7077, allocations: 0 / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of Templates: time 0.002443/0.7102, allocations: 0.9648 MB / 1.024 GB, free: 11.41 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/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