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.001201/0.001201, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001494/0.001494, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.416/1.416, allocations: 222.9 MB / 239.8 MB, free: 4.527 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.589/2.589, allocations: 437 MB / 0.7099 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 0.8685 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8005/0.8019, allocations: 151.6 MB / 1.017 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003209/0.8052, allocations: 1.598 MB / 1.018 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005755/0.8058, allocations: 196.2 kB / 1.018 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.821e-05/0.8058, allocations: 0 / 1.018 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.049e-05/0.8059, allocations: 0 / 1.018 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.211e-05/0.806, allocations: 3.938 kB / 1.018 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.8063, allocations: 39.95 kB / 1.018 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.228e-05/0.8064, allocations: 27.92 kB / 1.018 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.8065, allocations: 19.98 kB / 1.018 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.143e-05/0.8065, allocations: 11.94 kB / 1.018 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.587e-05/0.8066, allocations: 19.91 kB / 1.018 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.8066, allocations: 4 kB / 1.018 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.8068, allocations: 43.95 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.803e-05/0.8068, allocations: 7.938 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.268e-05/0.8068, allocations: 15.92 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.807, allocations: 55.86 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.807, allocations: 0 / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.505e-06/0.807, allocations: 7.984 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.807, allocations: 0 / 1.019 GB, free: 0.7031 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.0005652/0.8076, allocations: 361.3 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.8076, allocations: 8.031 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.406e-05/0.8077, allocations: 4.938 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.8078, allocations: 176.2 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.8078, allocations: 4.375 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.8079, allocations: 4.375 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.8081, allocations: 66.23 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.8081, allocations: 192 / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.8082, allocations: 4.141 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.8082, allocations: 0 / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000211/0.8084, allocations: 43.95 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004784/0.8089, allocations: 288.7 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.8092, allocations: 58.53 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.8094, allocations: 20.91 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002478/0.8096, allocations: 166.2 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.8096, allocations: 34.56 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 2.675e-06/0.8097, allocations: 4 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004056/0.8101, allocations: 105.6 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.8101, allocations: 51.41 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.416e-05/0.8102, allocations: 109.8 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.8102, allocations: 25.7 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.8103, allocations: 84.14 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.8103, allocations: 7.906 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.316e-05/0.8103, allocations: 25.64 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.8105, allocations: 314.8 kB / 1.02 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.8106, allocations: 19.97 kB / 1.02 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.153e-05/0.8107, allocations: 19.98 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.8108, allocations: 52.69 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.8108, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002188/0.8111, allocations: 69.66 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.8111, allocations: 8 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.8111, allocations: 0 / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.8111, allocations: 0 / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.55e-05/0.8112, allocations: 15.92 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.8112, allocations: 320 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.233e-05/0.8113, allocations: 11.92 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.8113, allocations: 4 kB / 1.021 GB, free: 14.31 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.804e-05/0.8114, allocations: 118.3 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.8114, allocations: 3.906 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002691/0.8117, allocations: 89.48 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.8117, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.8117, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.8117, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.8119, allocations: 181.6 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.8119, allocations: 0 / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.764e-05/0.812, allocations: 8 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.812, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.812, allocations: 3.984 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.812, allocations: 4 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.812, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.8123, allocations: 179.4 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.8124, allocations: 81.02 kB / 1.021 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.8124, allocations: 3.984 kB / 1.021 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.545e-05/0.8125, allocations: 4 kB / 1.021 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.8125, allocations: 7.984 kB / 1.021 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.8125, allocations: 0 / 1.021 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.372e-05/0.8126, allocations: 95.25 kB / 1.021 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8126, allocations: 0 / 1.021 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002514/0.8129, allocations: 20 kB / 1.021 GB, free: 13.43 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.000179/0.8131, allocations: 111.2 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002386/0.8133, allocations: 48.19 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.8133, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.8134, allocations: 27.95 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.8138, allocations: 15.95 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003367/0.8141, allocations: 127.3 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.8144, allocations: 0.6809 MB / 1.022 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.929e-05/0.8144, allocations: 4 kB / 1.022 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.8144, allocations: 7.438 kB / 1.022 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.8144, allocations: 4 kB / 1.022 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of Templates: time 0.003432/0.8179, allocations: 0.8844 MB / 1.023 GB, free: 11.46 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