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.001543/0.001542, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001884/0.001884, allocations: 200.7 kB / 16.26 MB, free: 6.621 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.514/1.514, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.596/2.596, allocations: 437 MB / 0.71 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.001329, allocations: 63.91 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6667/0.668, allocations: 151.6 MB / 1.017 GB, free: 2.727 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003057/0.6711, allocations: 1.602 MB / 1.018 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004688/0.6716, allocations: 184.3 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.867e-05/0.6717, allocations: 0 / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.857e-05/0.6717, allocations: 3.938 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.046e-05/0.6718, allocations: 7.984 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.6721, allocations: 39.89 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.962e-05/0.6722, allocations: 35.92 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.047e-05/0.6723, allocations: 12 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.944e-05/0.6723, allocations: 19.92 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.189e-05/0.6724, allocations: 19.91 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.363e-05/0.6724, allocations: 4 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.6725, allocations: 47.97 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.422e-05/0.6725, allocations: 7.984 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.473e-05/0.6726, allocations: 15.88 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.6727, allocations: 67.83 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.6727, allocations: 0 / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6727, allocations: 0 / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.6727, allocations: 0 / 1.019 GB, free: 0.6523 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.0004579/0.6732, allocations: 357.4 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.6732, allocations: 8.031 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.755e-05/0.6733, allocations: 8.844 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.6734, allocations: 164.3 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.6734, allocations: 8.375 kB / 1.019 GB, free: 32 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.6734, allocations: 384 / 1.019 GB, free: 32 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.6736, allocations: 70.23 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.6737, allocations: 192 / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.6737, allocations: 11.88 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.6737, allocations: 0 / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001871/0.6739, allocations: 43.95 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004139/0.6743, allocations: 280.7 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.6746, allocations: 62.55 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.51e-05/0.6748, allocations: 24.83 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002185/0.675, allocations: 166.2 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.675, allocations: 30.56 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.675, allocations: 3.938 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003862/0.6754, allocations: 105.8 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.6755, allocations: 51.41 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.382e-05/0.6755, allocations: 113.7 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.6756, allocations: 25.7 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.794e-05/0.6756, allocations: 92.12 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.6756, allocations: 3.906 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.6757, allocations: 17.72 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.6758, allocations: 322.8 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.88e-05/0.6759, allocations: 19.98 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.146e-05/0.676, allocations: 23.97 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.6761, allocations: 40.83 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.6762, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000199/0.6764, allocations: 77.64 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.6764, allocations: 8 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.6764, allocations: 7.938 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.6764, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.375e-05/0.6765, allocations: 11.98 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.6765, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.886e-05/0.6766, allocations: 11.94 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.6766, allocations: 3.984 kB / 1.021 GB, free: 14.26 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.807e-05/0.6767, allocations: 118.3 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.6767, allocations: 3.906 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002467/0.677, allocations: 85.55 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.677, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.677, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.677, allocations: 3.938 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.6771, allocations: 165.6 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.6772, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.502e-05/0.6772, allocations: 19.92 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.6772, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.6773, allocations: 4 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.6773, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6773, allocations: 4 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002437/0.6775, allocations: 171.4 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.474e-05/0.6776, allocations: 81.02 kB / 1.021 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.6776, allocations: 4 kB / 1.021 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.544e-05/0.6777, allocations: 7.984 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.305e-05/0.6777, allocations: 8 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-06/0.6778, allocations: 3.984 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.831e-05/0.6778, allocations: 87.28 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6778, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002545/0.6781, allocations: 19.94 kB / 1.022 GB, free: 13.39 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.0001934/0.6783, allocations: 119.2 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002341/0.6785, allocations: 44.19 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.6785, allocations: 4 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.47e-05/0.6786, allocations: 24.06 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.679, allocations: 8.578 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003022/0.6793, allocations: 133.5 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.6795, allocations: 0.6846 MB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.292e-05/0.6796, allocations: 4 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.743e-05/0.6796, allocations: 7.438 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6796, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of Templates: time 0.003036/0.6826, allocations: 0.9003 MB / 1.023 GB, free: 11.4 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