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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001003/0.001002, allocations: 92.7 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 180.2 kB / 16.92 MB, free: 6.652 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.437/1.437, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.451/2.451, allocations: 390.9 MB / 0.667 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003541, allocations: 12 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6246/0.625, allocations: 142.4 MB / 0.9557 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.001426/0.6265, allocations: 1.248 MB / 0.9569 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004325/0.6269, allocations: 191.4 kB / 0.9571 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.494e-05/0.627, allocations: 1.344 kB / 0.9571 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.627, allocations: 3.938 kB / 0.9571 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.395e-05/0.627, allocations: 1.281 kB / 0.9571 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.6273, allocations: 41.8 kB / 0.9571 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.809e-05/0.6273, allocations: 34.69 kB / 0.9572 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.27e-05/0.6274, allocations: 9.344 kB / 0.9572 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.88e-05/0.6275, allocations: 20.88 kB / 0.9572 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.785e-05/0.6275, allocations: 16.98 kB / 0.9572 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.6275, allocations: 5.375 kB / 0.9572 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.589e-05/0.6276, allocations: 36.09 kB / 0.9573 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.298e-05/0.6277, allocations: 9.453 kB / 0.9573 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.696e-05/0.6277, allocations: 41.62 kB / 0.9573 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.559e-05/0.6278, allocations: 47.98 kB / 0.9574 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.6278, allocations: 0 / 0.9574 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6278, allocations: 0 / 0.9574 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.6278, allocations: 0 / 0.9574 GB, free: 6.559 MB / 0.7169 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.0003552/0.6282, allocations: 351.4 kB / 0.9577 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.6282, allocations: 8.875 kB / 0.9577 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.708e-05/0.6282, allocations: 7.344 kB / 0.9577 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.584e-05/0.6283, allocations: 171.2 kB / 0.9579 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.6283, allocations: 9.781 kB / 0.9579 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.6284, allocations: 1.594 kB / 0.9579 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.6285, allocations: 64.42 kB / 0.9579 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.6286, allocations: 1.531 kB / 0.9579 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.6286, allocations: 3.938 kB / 0.9579 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.6286, allocations: 1.531 kB / 0.958 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.6288, allocations: 64.55 kB / 0.958 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003087/0.6291, allocations: 279.5 kB / 0.9583 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.6294, allocations: 66.84 kB / 0.9583 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.6296, allocations: 37.8 kB / 0.9584 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001648/0.6297, allocations: 165.6 kB / 0.9585 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.421e-05/0.6298, allocations: 36.28 kB / 0.9586 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.6298, allocations: 0 / 0.9586 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003877/0.6301, allocations: 113.2 kB / 0.9587 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.053e-05/0.6302, allocations: 53.06 kB / 0.9587 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.261e-05/0.6302, allocations: 110.1 kB / 0.9588 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.426e-06/0.6303, allocations: 30.86 kB / 0.9589 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.329e-05/0.6303, allocations: 81.52 kB / 0.9589 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.34e-05/0.6303, allocations: 12.97 kB / 0.959 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/0.6303, allocations: 16.05 kB / 0.959 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.991e-05/0.6304, allocations: 319.9 kB / 0.9593 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.895e-05/0.6305, allocations: 26.89 kB / 0.9593 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.725e-05/0.6306, allocations: 28.38 kB / 0.9593 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.6308, allocations: 61.47 kB / 0.9594 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6308, allocations: 0 / 0.9594 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002168/0.631, allocations: 81.75 kB / 0.9595 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.631, allocations: 5.375 kB / 0.9595 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.631, allocations: 4 kB / 0.9595 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.631, allocations: 1.781 kB / 0.9595 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.127e-05/0.6311, allocations: 13.36 kB / 0.9595 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.6311, allocations: 3.938 kB / 0.9595 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.226e-05/0.6312, allocations: 19.23 kB / 0.9595 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.6312, allocations: 0 / 0.9595 GB, free: 4.445 MB / 0.7169 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 5.021e-05/0.6313, allocations: 112.4 kB / 0.9596 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.6313, allocations: 5.375 kB / 0.9596 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002538/0.6316, allocations: 94.05 kB / 0.9597 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.6316, allocations: 1.438 kB / 0.9597 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.6316, allocations: 0 / 0.9597 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.6316, allocations: 0 / 0.9597 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.6317, allocations: 173.5 kB / 0.9599 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.6317, allocations: 3.938 kB / 0.9599 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.808e-05/0.6318, allocations: 13.89 kB / 0.9599 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.6318, allocations: 1.094 kB / 0.9599 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.6318, allocations: 4 kB / 0.9599 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.6318, allocations: 9.297 kB / 0.9599 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6318, allocations: 320 / 0.9599 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002403/0.6321, allocations: 182.2 kB / 0.9601 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.6321, allocations: 78.33 kB / 0.9602 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.6321, allocations: 0 / 0.9602 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.824e-05/0.6322, allocations: 14.58 kB / 0.9602 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.191e-05/0.6323, allocations: 18.42 kB / 0.9602 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.6323, allocations: 1.188 kB / 0.9602 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.717e-05/0.6323, allocations: 90.11 kB / 0.9603 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6323, allocations: 0 / 0.9603 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002451/0.6326, allocations: 18.48 kB / 0.9603 GB, free: 3.668 MB / 0.7169 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.0001453/0.6327, allocations: 113.7 kB / 0.9604 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002352/0.6329, allocations: 62.73 kB / 0.9605 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.633, allocations: 5 kB / 0.9605 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.6331, allocations: 26.52 kB / 0.9605 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.6333, allocations: 7.875 kB / 0.9605 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002615/0.6336, allocations: 164 kB / 0.9607 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.998e-05/0.6337, allocations: 0.6832 MB / 0.9613 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.697e-05/0.6337, allocations: 10.22 kB / 0.9613 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6338, allocations: 0 / 0.9613 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of Templates: time 0.002044/0.6358, allocations: 0.9613 MB / 0.9623 GB, free: 2.168 MB / 0.7169 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