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.008308/0.008308, allocations: 98.2 kB / 15.73 MB, free: 6.445 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.001747/0.001747, allocations: 194.3 kB / 16.67 MB, free: 6.348 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.767/2.767, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 63.91 kB / 1.019 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3429, allocations: 151.6 MB / 1.167 GB, free: 6.848 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002619/0.3456, allocations: 1.528 MB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0004651/0.3461, allocations: 184.3 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.591e-05/0.3461, allocations: 0 / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.246e-05/0.3462, allocations: 3.938 kB / 1.168 GB, free: 5.113 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.726e-05/0.3462, allocations: 7.922 kB / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.3466, allocations: 51.88 kB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.994e-05/0.3467, allocations: 35.86 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.3468, allocations: 15.98 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.486e-05/0.3468, allocations: 15.92 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.842e-05/0.3469, allocations: 23.92 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.3469, allocations: 4 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.347, allocations: 47.94 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.805e-05/0.347, allocations: 8 kB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.844e-05/0.3471, allocations: 19.86 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.3472, allocations: 63.73 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3473, allocations: 0 / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.687e-06/0.3473, allocations: 3.984 kB / 1.169 GB, free: 4.82 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.3473, allocations: 0 / 1.169 GB, free: 4.82 MB / 0.92 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.0005771/0.3479, allocations: 359.3 kB / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3479, allocations: 12.03 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.3479, allocations: 0.9375 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.3481, allocations: 172.3 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.3481, allocations: 4.375 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.3481, allocations: 4.375 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.3483, allocations: 62.22 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.3483, allocations: 192 / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.3484, allocations: 3.938 kB / 1.169 GB, free: 4.121 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/0.3484, allocations: 4 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.3486, allocations: 43.95 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004006/0.349, allocations: 288.7 kB / 1.169 GB, free: 3.742 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.3493, allocations: 58.53 kB / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.677e-05/0.3494, allocations: 32.89 kB / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000231/0.3497, allocations: 170.1 kB / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.3497, allocations: 30.56 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 2.454e-06/0.3497, allocations: 0 / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003873/0.3501, allocations: 105.5 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.3501, allocations: 51.41 kB / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.817e-05/0.3502, allocations: 109.8 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.3502, allocations: 25.7 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.329e-05/0.3503, allocations: 84.14 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.538e-05/0.3503, allocations: 7.953 kB / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.3503, allocations: 17.7 kB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3505, allocations: 318.8 kB / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.913e-05/0.3506, allocations: 23.97 kB / 1.17 GB, free: 2.617 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.675e-05/0.3506, allocations: 19.98 kB / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.3508, allocations: 52.75 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3508, allocations: 0 / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002041/0.351, allocations: 73.61 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3511, allocations: 9.875 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3511, allocations: 0 / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.3511, allocations: 0 / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.682e-05/0.3512, allocations: 11.98 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.3512, allocations: 0 / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.197e-05/0.3512, allocations: 11.98 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-06/0.3513, allocations: 4 kB / 1.171 GB, free: 2.43 MB / 0.92 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.57e-05/0.3513, allocations: 117.7 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/0.3514, allocations: 8 kB / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002881/0.3517, allocations: 85.48 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3517, allocations: 0 / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3517, allocations: 0 / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3517, allocations: 4 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.3519, allocations: 165.6 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3519, allocations: 4 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.007e-05/0.3519, allocations: 4 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.177e-06/0.352, allocations: 11.98 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.352, allocations: 4 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.352, allocations: 3.938 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.352, allocations: 320 / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.3522, allocations: 175.7 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.256e-05/0.3523, allocations: 77.11 kB / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.3523, allocations: 7.984 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.899e-05/0.3524, allocations: 4 kB / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.857e-05/0.3525, allocations: 16.02 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.3525, allocations: 0 / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.249e-05/0.3525, allocations: 95.33 kB / 1.171 GB, free: 1.559 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3525, allocations: 0 / 1.171 GB, free: 1.559 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002349/0.3528, allocations: 15.94 kB / 1.171 GB, free: 1.543 MB / 0.92 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.0001765/0.3529, allocations: 115.2 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000238/0.3532, allocations: 51.95 kB / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.3532, allocations: 0 / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.643e-05/0.3533, allocations: 27.92 kB / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.3536, allocations: 3.938 kB / 1.172 GB, free: 1.34 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00029/0.3539, allocations: 129.3 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.3541, allocations: 0.6807 MB / 1.172 GB, free: 492 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.939e-05/0.3541, allocations: 4 kB / 1.172 GB, free: 488 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.691e-05/0.3542, allocations: 11.44 kB / 1.172 GB, free: 476 kB / 0.92 GB Notification: Performance of SimCode: time 2.7e-07/0.3542, allocations: 0 / 1.172 GB, free: 476 kB / 0.92 GB Notification: Performance of Templates: time 0.003227/0.3574, allocations: 0.9872 MB / 1.173 GB, free: 15.48 MB / 0.9356 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