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.001276/0.001276, allocations: 108 kB / 15.61 MB, free: 152 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.001395/0.001395, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.516/2.516, allocations: 437.1 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.91 kB / 0.8693 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6444/0.6456, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002767/0.6484, allocations: 1.535 MB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004746/0.6489, allocations: 180.3 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.972e-05/0.6489, allocations: 4 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.353e-05/0.649, allocations: 3.938 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.3e-05/0.649, allocations: 3.938 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.6494, allocations: 55.88 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.719e-05/0.6495, allocations: 31.92 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.6496, allocations: 12 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.261e-05/0.6496, allocations: 15.92 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.553e-05/0.6497, allocations: 23.91 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.6497, allocations: 8 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.6499, allocations: 43.95 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.215e-05/0.6499, allocations: 4 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.373e-05/0.65, allocations: 23.86 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.6501, allocations: 63.84 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.6501, allocations: 0 / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.232e-06/0.6501, allocations: 0 / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.161e-06/0.6501, allocations: 0 / 1.019 GB, free: 484 kB / 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.0004988/0.6506, allocations: 357.7 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.6507, allocations: 12.03 kB / 1.02 GB, free: 64 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.562e-05/0.6507, allocations: 30.75 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.6508, allocations: 12.84 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.6509, allocations: 172.2 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.6509, allocations: 4.375 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.651, allocations: 4.375 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002006/0.6512, allocations: 66.17 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.6512, allocations: 3.938 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.6512, allocations: 0 / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.6512, allocations: 4 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.6514, allocations: 47.94 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003887/0.6518, allocations: 284.7 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.6521, allocations: 58.55 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.6522, allocations: 28.89 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002213/0.6525, allocations: 162.2 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.6525, allocations: 34.56 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.413e-06/0.6525, allocations: 0 / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004011/0.6529, allocations: 101.6 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.653, allocations: 51.41 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.689e-05/0.6531, allocations: 117.8 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.6531, allocations: 25.7 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.998e-05/0.6531, allocations: 84.14 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.6531, allocations: 3.906 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/0.6532, allocations: 21.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.728e-05/0.6533, allocations: 322.7 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.234e-05/0.6534, allocations: 23.97 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.335e-05/0.6535, allocations: 19.98 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.6536, allocations: 44.81 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6537, allocations: 3.938 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002112/0.6539, allocations: 73.66 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.6539, allocations: 9.562 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.6539, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.6539, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.016e-05/0.654, allocations: 11.98 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.654, allocations: 0 / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.078e-05/0.6541, allocations: 11.92 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.6541, allocations: 0 / 1.021 GB, free: 14.04 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.573e-05/0.6542, allocations: 117.8 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.6542, allocations: 7.906 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002521/0.6545, allocations: 85.48 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.6545, allocations: 3.938 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.6545, allocations: 0 / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.6545, allocations: 0 / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001552/0.6547, allocations: 169.6 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.6547, allocations: 3.984 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.399e-05/0.6547, allocations: 12 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.6548, allocations: 4.375 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.6548, allocations: 7.984 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.6548, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.6548, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.655, allocations: 179.4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.6551, allocations: 81.02 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.6551, allocations: 7.984 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.328e-05/0.6552, allocations: 4 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.6552, allocations: 11.98 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.6553, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.02e-05/0.6553, allocations: 83.28 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6553, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002443/0.6556, allocations: 19.98 kB / 1.022 GB, free: 13.16 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.0005815/0.6561, allocations: 0.7241 MB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002238/0.6564, allocations: 43.89 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.6564, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.6565, allocations: 31.97 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.6568, allocations: 11.94 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.6581, allocations: 1.276 MB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.6584, allocations: 0.6885 MB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.944e-05/0.6584, allocations: 0 / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.728e-05/0.6584, allocations: 15.44 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6584, allocations: 0 / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06845/0.7269, allocations: 1.898 MB / 1.027 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.22/7.947, allocations: 7.984 kB / 1.027 GB, free: 8.379 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