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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_10_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.0009558/0.0009562, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.006054/0.006054, allocations: 172.8 kB / 16.26 MB, free: 6.613 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.326/1.326, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.554/2.554, allocations: 437.8 MB / 0.7121 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003765, allocations: 12 kB / 0.8729 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5712/0.5716, allocations: 153.8 MB / 1.023 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.00168/0.5733, allocations: 1.252 MB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0004895/0.5739, allocations: 188.3 kB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.884e-05/0.5739, allocations: 0 / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.772e-05/0.5739, allocations: 0 / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.835e-05/0.574, allocations: 7.938 kB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.5743, allocations: 35.95 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.227e-05/0.5744, allocations: 35.92 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.621e-05/0.5745, allocations: 11.98 kB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.923e-05/0.5746, allocations: 7.938 kB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.485e-05/0.5746, allocations: 31.84 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.5747, allocations: 0 / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.5748, allocations: 39.97 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.767e-05/0.5748, allocations: 3.984 kB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.127e-05/0.5749, allocations: 45.56 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001568/0.575, allocations: 59.84 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.5751, allocations: 0 / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5751, allocations: 0 / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.5751, allocations: 0 / 1.025 GB, free: 14.17 MB / 0.7794 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.0004689/0.5755, allocations: 361.7 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.5756, allocations: 12.03 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.612e-05/0.5756, allocations: 34.75 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.596e-05/0.5757, allocations: 4.844 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.5758, allocations: 168.3 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.5758, allocations: 4.359 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.5758, allocations: 8.312 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.576, allocations: 66.23 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.576, allocations: 3.938 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.5761, allocations: 8 kB / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.5761, allocations: 0 / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.5763, allocations: 59.89 kB / 1.026 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004286/0.5767, allocations: 280.7 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.5771, allocations: 58.55 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.5772, allocations: 36.89 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002359/0.5775, allocations: 174.2 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.5775, allocations: 34.56 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.332e-06/0.5775, allocations: 0 / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004181/0.5779, allocations: 113.8 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.578, allocations: 55.41 kB / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.269e-05/0.578, allocations: 109.8 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.5781, allocations: 25.7 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.131e-05/0.5781, allocations: 92.05 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.5781, allocations: 7.906 kB / 1.026 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.5782, allocations: 13.7 kB / 1.026 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.5783, allocations: 322.8 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.5784, allocations: 15.98 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.042e-05/0.5785, allocations: 35.91 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.5787, allocations: 52.83 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5787, allocations: 0 / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002368/0.5789, allocations: 93.64 kB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.5789, allocations: 4 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.579, allocations: 0 / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.579, allocations: 3.938 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.355e-05/0.5791, allocations: 15.98 kB / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.5791, allocations: 0 / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.417e-05/0.5791, allocations: 15.92 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.5792, allocations: 4 kB / 1.027 GB, free: 11.65 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 6.872e-05/0.5792, allocations: 114.2 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.5793, allocations: 7.906 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003362/0.5796, allocations: 101.5 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.5796, allocations: 0 / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5796, allocations: 0 / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.5796, allocations: 0 / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.5798, allocations: 169.6 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.5798, allocations: 0 / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.58, allocations: 15.98 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.58, allocations: 4 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.58, allocations: 0 / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.58, allocations: 0 / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.58, allocations: 320 / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.5803, allocations: 191.4 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.988e-05/0.5804, allocations: 81.02 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.5804, allocations: 0 / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.119e-05/0.5805, allocations: 11.98 kB / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.797e-05/0.5805, allocations: 7.984 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.5805, allocations: 8 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.115e-05/0.5806, allocations: 87.27 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5806, allocations: 0 / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002469/0.5808, allocations: 23.98 kB / 1.028 GB, free: 10.75 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.000659/0.5815, allocations: 0.7322 MB / 1.028 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000227/0.5817, allocations: 55.94 kB / 1.029 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.5818, allocations: 0 / 1.029 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.5819, allocations: 31.97 kB / 1.029 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.5821, allocations: 8 kB / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.5837, allocations: 1.33 MB / 1.03 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.5841, allocations: 0.677 MB / 1.031 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.408e-05/0.5841, allocations: 8 kB / 1.031 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.5842, allocations: 19.42 kB / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of SimCode: time 3.4e-07/0.5842, allocations: 0 / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01525/0.5994, allocations: 1.63 MB / 1.032 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002249/0.5997, allocations: 200.7 kB / 1.032 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.382, allocations: 0 / 1.032 GB, free: 5.965 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Binomial.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches