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.001649/0.001649, 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.002214/0.002214, allocations: 197 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.609 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.53/2.53, allocations: 437 MB / 0.7099 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 67.84 kB / 0.8686 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5511/0.5525, allocations: 151.6 MB / 1.017 GB, free: 2.902 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002422/0.555, allocations: 1.606 MB / 1.018 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004503/0.5555, allocations: 184.3 kB / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.341e-05/0.5555, allocations: 0 / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.256e-05/0.5555, allocations: 3.984 kB / 1.018 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.702e-05/0.5556, allocations: 3.938 kB / 1.018 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.5558, allocations: 39.95 kB / 1.019 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.585e-05/0.5559, allocations: 27.92 kB / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.45e-05/0.556, allocations: 19.98 kB / 1.019 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.561e-05/0.556, allocations: 15.92 kB / 1.019 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.041e-05/0.5561, allocations: 15.92 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.5561, allocations: 4 kB / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.5562, allocations: 47.89 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.644e-05/0.5562, allocations: 11.92 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.448e-05/0.5562, allocations: 7.938 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.5564, allocations: 71.78 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.5564, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of FrontEnd: time 6.31e-07/0.5564, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.577e-06/0.5564, allocations: 4 kB / 1.019 GB, free: 0.832 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.0004114/0.5568, allocations: 361.6 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.5569, allocations: 8.031 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.241e-05/0.5569, allocations: 38.75 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.5569, allocations: 0.9375 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.189e-05/0.557, allocations: 168.3 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.557, allocations: 384 / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.5571, allocations: 4.375 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001813/0.5572, allocations: 66.22 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.485e-06/0.5573, allocations: 3.938 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.5573, allocations: 0 / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.5573, allocations: 0 / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.5575, allocations: 51.88 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003541/0.5578, allocations: 284.7 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.5582, allocations: 58.55 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.995e-05/0.5583, allocations: 32.83 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001967/0.5585, allocations: 166.2 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.5585, allocations: 38.56 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.5585, allocations: 4 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003769/0.5589, allocations: 93.53 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/0.5589, allocations: 51.41 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.202e-05/0.559, allocations: 113.8 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.559, allocations: 25.7 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.5591, allocations: 80.14 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.5591, allocations: 11.91 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.5591, allocations: 21.7 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.473e-05/0.5592, allocations: 322.7 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.5594, allocations: 15.98 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.815e-05/0.5594, allocations: 19.97 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.5596, allocations: 48.81 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.5596, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002129/0.5599, allocations: 73.66 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.5599, allocations: 4 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.5599, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.317e-06/0.5599, allocations: 3.938 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.551e-05/0.56, allocations: 11.98 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.56, allocations: 7.875 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.271e-05/0.5601, allocations: 11.92 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.5601, allocations: 4 kB / 1.021 GB, free: 14.39 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.647e-05/0.5602, allocations: 118.3 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.933e-05/0.5602, allocations: 7.906 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002537/0.5604, allocations: 77.55 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.5605, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.5605, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.5605, allocations: 4 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.5606, allocations: 169.6 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5606, allocations: 4 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.705e-05/0.5607, allocations: 7.984 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.5607, allocations: 4 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.5607, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.5608, allocations: 3.938 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.5608, allocations: 4.359 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002555/0.561, allocations: 175.4 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.606e-05/0.5611, allocations: 81.02 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.5611, allocations: 4 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.103e-05/0.5612, allocations: 7.984 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.5612, allocations: 7.984 kB / 1.021 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.5612, allocations: 4 kB / 1.021 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.779e-05/0.5613, allocations: 87.28 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5613, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002513/0.5616, allocations: 23.98 kB / 1.022 GB, free: 13.52 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.000542/0.5621, allocations: 0.7241 MB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002278/0.5623, allocations: 47.95 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5623, allocations: 3.938 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.5625, allocations: 27.97 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.5627, allocations: 7.938 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.564, allocations: 1.282 MB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.5642, allocations: 0.6848 MB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.233e-05/0.5643, allocations: 4 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.673e-05/0.5643, allocations: 15.44 kB / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.5643, allocations: 0 / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01041/0.5748, allocations: 1.699 MB / 1.026 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/0.5749, allocations: 190.4 kB / 1.026 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.273, allocations: 0 / 1.026 GB, free: 8.715 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