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: "" <> 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.00111/0.00111, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001153/0.001153, allocations: 190.4 kB / 16.25 MB, free: 6.621 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.389/1.389, allocations: 222.9 MB / 239.9 MB, free: 4.566 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.425/2.425, allocations: 437 MB / 0.7101 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001449, allocations: 67.91 kB / 0.8689 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6438/0.6453, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002713/0.648, allocations: 1.602 MB / 1.018 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004392/0.6485, allocations: 188.3 kB / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.536e-05/0.6485, allocations: 0 / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.841e-05/0.6486, allocations: 3.938 kB / 1.019 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.307e-05/0.6486, allocations: 0 / 1.019 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002997/0.6489, allocations: 43.89 kB / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.899e-05/0.649, allocations: 35.92 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.756e-05/0.6491, allocations: 11.98 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.312e-05/0.6492, allocations: 19.92 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.056e-05/0.6492, allocations: 19.92 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.6492, allocations: 4 kB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.6493, allocations: 47.95 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.46e-05/0.6494, allocations: 7.984 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.764e-05/0.6494, allocations: 23.86 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.6495, allocations: 55.86 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.6495, allocations: 0 / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.312e-06/0.6495, allocations: 0 / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.6496, allocations: 0 / 1.019 GB, free: 0.75 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.0004658/0.65, allocations: 361.7 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.6501, allocations: 12.03 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.654e-05/0.6501, allocations: 30.75 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.844e-05/0.6501, allocations: 8.844 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.755e-05/0.6503, allocations: 168.3 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.6503, allocations: 4.375 kB / 1.019 GB, free: 84 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.6503, allocations: 8.312 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.6505, allocations: 66.16 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.6505, allocations: 3.938 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.6505, allocations: 8.047 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.6505, allocations: 0 / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.6507, allocations: 47.89 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003563/0.6511, allocations: 276.7 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.6514, allocations: 66.47 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.578e-05/0.6515, allocations: 24.91 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002087/0.6517, allocations: 166.2 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.6518, allocations: 30.56 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.6518, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003623/0.6521, allocations: 101.6 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.6522, allocations: 55.34 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.974e-05/0.6522, allocations: 113.7 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.6523, allocations: 25.7 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.787e-05/0.6523, allocations: 88.14 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.6523, allocations: 7.891 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.6524, allocations: 17.72 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.809e-05/0.6525, allocations: 318.8 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.417e-05/0.6526, allocations: 23.97 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-05/0.6527, allocations: 19.98 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.6528, allocations: 48.84 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6528, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002024/0.653, allocations: 77.59 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.6531, allocations: 4 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.6531, allocations: 0 / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.6531, allocations: 4 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.868e-05/0.6532, allocations: 11.98 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.6532, allocations: 4 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.948e-05/0.6532, allocations: 15.92 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.77e-06/0.6533, allocations: 0 / 1.021 GB, free: 14.3 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.12e-05/0.6533, allocations: 114.3 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.6534, allocations: 7.906 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002437/0.6536, allocations: 85.48 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.6536, allocations: 4 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.6536, allocations: 7.922 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.6536, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/0.6538, allocations: 165.6 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.6538, allocations: 0 / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.606e-05/0.6539, allocations: 19.98 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.6539, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.6539, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.6539, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.6539, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.6542, allocations: 167.5 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.6542, allocations: 89 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.6542, allocations: 7.938 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.595e-05/0.6543, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.602e-05/0.6544, allocations: 7.984 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.6544, allocations: 4 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.765e-05/0.6544, allocations: 87.27 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6544, allocations: 3.938 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000236/0.6547, allocations: 16 kB / 1.022 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.0005389/0.6552, allocations: 0.7163 MB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002246/0.6555, allocations: 51.94 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.6555, allocations: 3.938 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.359e-05/0.6556, allocations: 23.98 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.6558, allocations: 6.75 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.6571, allocations: 1.296 MB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.6574, allocations: 0.6846 MB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.048e-05/0.6574, allocations: 0 / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.922e-05/0.6574, allocations: 15.44 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.6574, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.689/2.347, allocations: 1.765 MB / 1.026 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/2.347, allocations: 187.4 kB / 1.026 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/4.184, allocations: 0 / 1.026 GB, free: 8.578 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