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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, 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.001484/0.001484, 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.531 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.321/2.321, allocations: 390.2 MB / 0.6643 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7401/0.7413, allocations: 140.4 MB / 0.949 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002388/0.7437, allocations: 1.594 MB / 0.9506 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004328/0.7442, allocations: 185.4 kB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.756e-05/0.7442, allocations: 1.438 kB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.7442, allocations: 3.938 kB / 0.9508 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.69e-05/0.7443, allocations: 0 / 0.9508 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002461/0.7445, allocations: 43.05 kB / 0.9508 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.302e-05/0.7446, allocations: 30.58 kB / 0.9509 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.373e-05/0.7447, allocations: 12.67 kB / 0.9509 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.504e-05/0.7447, allocations: 17.81 kB / 0.9509 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.632e-05/0.7447, allocations: 20.75 kB / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.7448, allocations: 2.438 kB / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.969e-05/0.7449, allocations: 48.77 kB / 0.951 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.26e-05/0.7449, allocations: 2.406 kB / 0.951 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.477e-05/0.7449, allocations: 19.52 kB / 0.951 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.745, allocations: 61.16 kB / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.7451, allocations: 4 kB / 0.951 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.11e-07/0.7451, allocations: 0 / 0.951 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.7451, allocations: 2.125 kB / 0.951 GB, free: 7.602 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.0003476/0.7454, allocations: 351.5 kB / 0.9514 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.7455, allocations: 9.281 kB / 0.9514 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.268e-05/0.7455, allocations: 36.31 kB / 0.9514 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.159e-05/0.7455, allocations: 15.25 kB / 0.9514 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.617e-05/0.7456, allocations: 169.8 kB / 0.9516 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.7456, allocations: 5.969 kB / 0.9516 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.7456, allocations: 2.719 kB / 0.9516 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.7458, allocations: 64.11 kB / 0.9517 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.7458, allocations: 7.875 kB / 0.9517 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.7458, allocations: 0 / 0.9517 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.7458, allocations: 5.391 kB / 0.9517 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.746, allocations: 44.14 kB / 0.9517 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002823/0.7463, allocations: 278.4 kB / 0.952 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.7466, allocations: 66.58 kB / 0.952 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.046e-05/0.7467, allocations: 25.44 kB / 0.9521 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001661/0.7469, allocations: 168.5 kB / 0.9522 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.7469, allocations: 31.78 kB / 0.9523 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.7469, allocations: 0 / 0.9523 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003419/0.7473, allocations: 94.84 kB / 0.9524 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.74e-05/0.7473, allocations: 51.41 kB / 0.9524 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.531e-05/0.7474, allocations: 115.3 kB / 0.9525 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.7474, allocations: 30.98 kB / 0.9525 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.635e-05/0.7474, allocations: 85.59 kB / 0.9526 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.7474, allocations: 17.12 kB / 0.9526 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.043e-05/0.7475, allocations: 13.91 kB / 0.9527 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.318e-05/0.7475, allocations: 320.2 kB / 0.953 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.682e-05/0.7476, allocations: 17.59 kB / 0.953 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.962e-05/0.7477, allocations: 19.48 kB / 0.953 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.7479, allocations: 50.5 kB / 0.953 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.7479, allocations: 0 / 0.953 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001951/0.7481, allocations: 73.81 kB / 0.9531 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.7481, allocations: 5.438 kB / 0.9531 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.7481, allocations: 0 / 0.9531 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.7481, allocations: 3.938 kB / 0.9531 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.717e-05/0.7482, allocations: 16.14 kB / 0.9531 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.7482, allocations: 0 / 0.9531 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.563e-05/0.7483, allocations: 11.55 kB / 0.9531 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.7483, allocations: 1.312 kB / 0.9531 GB, free: 5.449 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 4.979e-05/0.7483, allocations: 112.4 kB / 0.9533 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.712e-05/0.7484, allocations: 10.38 kB / 0.9533 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002288/0.7486, allocations: 83.52 kB / 0.9533 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.7486, allocations: 0 / 0.9533 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.7486, allocations: 5.406 kB / 0.9533 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.7486, allocations: 3.984 kB / 0.9534 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.7487, allocations: 170.1 kB / 0.9535 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.7487, allocations: 3.938 kB / 0.9535 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.203e-05/0.7488, allocations: 14.7 kB / 0.9535 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.7488, allocations: 5 kB / 0.9535 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.7488, allocations: 0 / 0.9535 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.7488, allocations: 1.094 kB / 0.9535 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.7488, allocations: 0 / 0.9535 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002118/0.7491, allocations: 173 kB / 0.9537 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2e-05/0.7491, allocations: 90.72 kB / 0.9538 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.7491, allocations: 0 / 0.9538 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.7492, allocations: 6.875 kB / 0.9538 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.29e-05/0.7492, allocations: 7.234 kB / 0.9538 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.7493, allocations: 5.531 kB / 0.9538 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.752e-05/0.7493, allocations: 89.77 kB / 0.9539 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7493, allocations: 0 / 0.9539 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002328/0.7495, allocations: 18 kB / 0.9539 GB, free: 4.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.0004306/0.75, allocations: 0.7207 MB / 0.9546 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001991/0.7502, allocations: 50.28 kB / 0.9547 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.7502, allocations: 0 / 0.9547 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.21e-05/0.7503, allocations: 26.95 kB / 0.9547 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.7505, allocations: 2.562 kB / 0.9547 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.7516, allocations: 1.296 MB / 0.956 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.167e-05/0.7517, allocations: 0.6788 MB / 0.9566 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.058e-05/0.7518, allocations: 3.875 kB / 0.9566 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.426e-05/0.7518, allocations: 18.03 kB / 0.9566 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of SimCode: time 6.91e-07/0.7518, allocations: 96 / 0.9566 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.007/1.759, allocations: 1.696 MB / 0.9583 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001289/1.759, allocations: 194.7 kB / 0.9585 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.232/3.991, allocations: 3.938 kB / 0.9585 GB, free: 0.8242 MB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Binomial.fmu > 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