Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_9_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.009489/0.009489, allocations: 100.6 kB / 15.73 MB, free: 6 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.002199/0.002199, allocations: 200.5 kB / 16.67 MB, free: 5.926 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.599/2.599, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 68.05 kB / 0.9508 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3742, allocations: 140.4 MB / 1.088 GB, free: 1.645 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003009/0.3773, allocations: 1.541 MB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0005452/0.3778, allocations: 172.3 kB / 1.09 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.666e-05/0.3779, allocations: 3.938 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.796e-05/0.3779, allocations: 4 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.1e-05/0.378, allocations: 7.938 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003756/0.3784, allocations: 51.88 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.75e-05/0.3785, allocations: 35.91 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.3786, allocations: 12 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.347e-05/0.3786, allocations: 15.92 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.752e-05/0.3787, allocations: 19.91 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.3787, allocations: 4 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.3788, allocations: 47.95 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.987e-05/0.3789, allocations: 11.94 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.43e-05/0.3789, allocations: 23.91 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.3791, allocations: 63.8 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3791, allocations: 0 / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3791, allocations: 0 / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.3791, allocations: 0 / 1.09 GB, free: 15.62 MB / 0.8575 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.0005751/0.3797, allocations: 363.3 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3797, allocations: 8.031 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.458e-05/0.3798, allocations: 4.938 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.3799, allocations: 172.3 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.38, allocations: 8.312 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.38, allocations: 4.359 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.3802, allocations: 62.23 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.3802, allocations: 192 / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.3802, allocations: 3.938 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.3802, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001751/0.3804, allocations: 47.89 kB / 1.091 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004419/0.3808, allocations: 284.8 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.3812, allocations: 54.55 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.081e-05/0.3813, allocations: 34.25 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002422/0.3815, allocations: 166.2 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.3816, allocations: 38.56 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3816, allocations: 0 / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003694/0.3819, allocations: 93.53 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.382, allocations: 51.41 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.09e-05/0.3821, allocations: 113.9 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.3821, allocations: 33.7 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.983e-05/0.3822, allocations: 80.14 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.52e-05/0.3822, allocations: 7.906 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.3822, allocations: 17.7 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.3824, allocations: 326.7 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.814e-05/0.3824, allocations: 11.98 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.101e-05/0.3825, allocations: 23.97 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.3827, allocations: 53.08 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3827, allocations: 4 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001884/0.3829, allocations: 69.66 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.3829, allocations: 11.94 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3829, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3829, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.626e-05/0.383, allocations: 15.98 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.383, allocations: 3.938 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.712e-05/0.3831, allocations: 11.89 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.3831, allocations: 0 / 1.092 GB, free: 13.22 MB / 0.8575 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 9.456e-05/0.3832, allocations: 117.8 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.223e-05/0.3832, allocations: 0 / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002464/0.3835, allocations: 81.55 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.3835, allocations: 4 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3835, allocations: 0 / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3835, allocations: 0 / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.3837, allocations: 169.6 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3837, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.133e-05/0.3838, allocations: 11.98 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3838, allocations: 3.938 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.3838, allocations: 3.984 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.3838, allocations: 11.94 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3838, allocations: 0 / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.3841, allocations: 175.4 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.452e-05/0.3841, allocations: 81.05 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.3841, allocations: 3.984 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.842e-05/0.3842, allocations: 8 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.866e-05/0.3843, allocations: 7.984 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.3843, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.769e-05/0.3844, allocations: 91.59 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3844, allocations: 0 / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002446/0.3846, allocations: 19.98 kB / 1.093 GB, free: 12.34 MB / 0.8575 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.0002122/0.3848, allocations: 117.1 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002533/0.3851, allocations: 47.88 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3851, allocations: 4 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.087e-05/0.3852, allocations: 23.98 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.3855, allocations: 11.94 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003456/0.3859, allocations: 121.6 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.3862, allocations: 0.6807 MB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.985e-05/0.3863, allocations: 4 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.3863, allocations: 15.44 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of SimCode: time 3e-07/0.3863, allocations: 0 / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of Templates: time 0.003943/0.3903, allocations: 0.9881 MB / 1.095 GB, free: 10.29 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches