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.001537/0.001538, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001827/0.001826, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.417/1.417, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.324/2.324, allocations: 390.2 MB / 0.6653 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 65.53 kB / 0.8132 GB, free: 33.1 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3093, allocations: 140.4 MB / 0.9503 GB, free: 8.914 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.00371/0.3131, allocations: 1.53 MB / 0.9518 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005863/0.3137, allocations: 184.2 kB / 0.9519 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.792e-05/0.3138, allocations: 4 kB / 0.9519 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.847e-05/0.3138, allocations: 3.938 kB / 0.9519 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.116e-05/0.314, allocations: 7.922 kB / 0.9519 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004279/0.3144, allocations: 47.89 kB / 0.952 GB, free: 7.121 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.424e-05/0.3145, allocations: 39.91 kB / 0.952 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.3146, allocations: 12 kB / 0.952 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.516e-05/0.3147, allocations: 15.92 kB / 0.9521 GB, free: 7.055 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.962e-05/0.3147, allocations: 19.92 kB / 0.9521 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.749e-05/0.3148, allocations: 4 kB / 0.9521 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.3149, allocations: 51.95 kB / 0.9521 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.974e-05/0.3149, allocations: 7.984 kB / 0.9521 GB, free: 6.973 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.3151, allocations: 15.88 kB / 0.9521 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.3152, allocations: 63.84 kB / 0.9522 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3153, allocations: 0 / 0.9522 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3153, allocations: 0 / 0.9522 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.3153, allocations: 0 / 0.9522 GB, free: 6.895 MB / 0.7325 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.0005464/0.3158, allocations: 360.7 kB / 0.9526 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.3159, allocations: 8.031 kB / 0.9526 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.3159, allocations: 8.844 kB / 0.9526 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.3161, allocations: 164.4 kB / 0.9527 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/0.3161, allocations: 4.375 kB / 0.9527 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.3161, allocations: 4.375 kB / 0.9527 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.3164, allocations: 66.16 kB / 0.9528 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.3164, allocations: 192 / 0.9528 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.3164, allocations: 7.938 kB / 0.9528 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3164, allocations: 0 / 0.9528 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.3166, allocations: 47.95 kB / 0.9528 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.3171, allocations: 276.7 kB / 0.9531 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003449/0.3174, allocations: 66.41 kB / 0.9532 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.3176, allocations: 36.84 kB / 0.9532 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002589/0.3178, allocations: 170.2 kB / 0.9534 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.3179, allocations: 30.56 kB / 0.9534 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3179, allocations: 0 / 0.9534 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0004072/0.3183, allocations: 97.64 kB / 0.9535 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.3183, allocations: 55.34 kB / 0.9535 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.847e-05/0.3184, allocations: 109.8 kB / 0.9537 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.3185, allocations: 25.7 kB / 0.9537 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.77e-05/0.3185, allocations: 92.12 kB / 0.9538 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.3185, allocations: 3.906 kB / 0.9538 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.3186, allocations: 17.72 kB / 0.9538 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3187, allocations: 318.8 kB / 0.9541 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.327e-05/0.3188, allocations: 23.98 kB / 0.9541 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.264e-05/0.3189, allocations: 19.98 kB / 0.9541 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.3191, allocations: 44.81 kB / 0.9542 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3191, allocations: 0 / 0.9542 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000233/0.3193, allocations: 69.66 kB / 0.9542 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3194, allocations: 17.8 kB / 0.9543 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.3194, allocations: 0 / 0.9543 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3194, allocations: 4 kB / 0.9543 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.247e-05/0.3195, allocations: 7.984 kB / 0.9543 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3195, allocations: 8 kB / 0.9543 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.005e-05/0.3196, allocations: 8 kB / 0.9543 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.3196, allocations: 0 / 0.9543 GB, free: 4.504 MB / 0.7325 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.087e-05/0.3197, allocations: 113.8 kB / 0.9544 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.3197, allocations: 12.23 kB / 0.9544 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002802/0.32, allocations: 89.53 kB / 0.9545 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.32, allocations: 0 / 0.9545 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.32, allocations: 0 / 0.9545 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.32, allocations: 0 / 0.9545 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.3202, allocations: 169.7 kB / 0.9547 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3202, allocations: 3.938 kB / 0.9547 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.229e-05/0.3203, allocations: 15.98 kB / 0.9547 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3203, allocations: 4 kB / 0.9547 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.3203, allocations: 3.938 kB / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3204, allocations: 0 / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3204, allocations: 0 / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002773/0.3206, allocations: 171.4 kB / 0.9548 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.718e-05/0.3207, allocations: 85.02 kB / 0.9549 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.3207, allocations: 0 / 0.9549 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.624e-05/0.3208, allocations: 11.98 kB / 0.9549 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.447e-05/0.3209, allocations: 11.94 kB / 0.9549 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.3209, allocations: 0 / 0.9549 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.034e-05/0.321, allocations: 87.27 kB / 0.955 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.321, allocations: 0 / 0.955 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002533/0.3212, allocations: 20 kB / 0.955 GB, free: 3.617 MB / 0.7325 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.0001946/0.3214, allocations: 115.2 kB / 0.9552 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002581/0.3217, allocations: 47.95 kB / 0.9552 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3217, allocations: 0 / 0.9552 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.3218, allocations: 27.97 kB / 0.9552 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.3221, allocations: 7.875 kB / 0.9552 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003677/0.3225, allocations: 155.2 kB / 0.9554 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3228, allocations: 0.6805 MB / 0.9561 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.3228, allocations: 15.42 kB / 0.9561 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of SimCode: time 2e-07/0.3228, allocations: 0 / 0.9561 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of Templates: time 0.002839/0.3257, allocations: 0.9786 MB / 0.957 GB, free: 1.531 MB / 0.7325 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches